-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed
Labels
platform: androidIssues / PRs which are specifically for Android.Issues / PRs which are specifically for Android.resolution: fixedA fix has been merged or is pending merge from a PR.A fix has been merged or is pending merge from a PR.type: bugSomething isn't workingSomething isn't workingtype: infrastructureImprovements to the codebaseImprovements to the codebase
Description
🐛 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
}
}sed1ka
Metadata
Metadata
Assignees
Labels
platform: androidIssues / PRs which are specifically for Android.Issues / PRs which are specifically for Android.resolution: fixedA fix has been merged or is pending merge from a PR.A fix has been merged or is pending merge from a PR.type: bugSomething isn't workingSomething isn't workingtype: infrastructureImprovements to the codebaseImprovements to the codebase