Android Build failing on :app:mergeExtDexDevDebug

What was going on
Issue RevenueCat/react-native-purchases#1266 (closed, 14 comments): - [x] I have updated Purchases SDK to the latest version - [x] I have read the [Contribution Guidelines](https://github.com/RevenueCat/react-native-purchases/blob/main/CONTRIBUTING.md) - [x] I have searched the [Community](https://community.revenuecat.com) - [x] I have read [docs.revenuecat.com](https://docs.revenuecat.com/) - [x] I have searched for [existing Github issues](https://github.com/RevenueCat/react-native-purchases/issues) **Describe the bug** A clear and concise description of what the bug is.

The fix
If your Android build fails at :app:mergeExtDexDevDebug after adding react-native-purchases-ui, it is an Android Gradle Plugin 7 bug (a null pointer exception that was only fixed in AGP 8). The reporter's fix, confirmed by the maintainer: apply the buildscript workaround from Google issue tracker 342522142 comment 8 to your root build.gradle. Upgrading the SDK alone will not help, since your React Native version pins AGP 7.