🐛 Bug report
While trying to upload our app to AGP 8, we were getting error logs like this:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':firebase_analytics'.
> defaultConfig contains custom BuildConfig fields, but the feature is disabled.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
BUILD FAILED in 914ms
The following code snippet fixed the issue for us when building locally. In each plugin's android/build.gradle file, you have to add:
android {
buildFeatures {
buildConfig = true
}
}
🐛 Bug report
While trying to upload our app to AGP 8, we were getting error logs like this:
The following code snippet fixed the issue for us when building locally. In each plugin's
android/build.gradlefile, you have to add: