Build Failure: defaultConfig contains custom BuildConfig fields issue in firebase_ml_model_downloader #16997
Unanswered
Quintessential-Maker
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Plugin: firebase_ml_model_downloader
Issue: Build fails when using the plugin in a Flutter project due to custom BuildConfig fields in defaultConfig. The error message suggests that the buildConfig feature is disabled and needs to be explicitly enabled in the build.gradle file.
Error Details:
vbnet
Copy
Edit
FAILURE: Build failed with an exception.
A problem occurred configuring project ':firebase_ml_model_downloader'.
Steps to Reproduce:
Add the firebase_ml_model_downloader plugin to a Flutter project.
Attempt to build the project using flutter build or flutter run.
The build fails with the above error.
Workaround:
Manually enable buildConfig in the build.gradle file as suggested in the error:
gradle
Copy
Edit
android {
buildFeatures {
buildConfig true
}
}
Request:
Please investigate and address this issue so that the plugin works without requiring manual intervention in the build.gradle file.
Environment:
Flutter SDK: 3.4.3
Plugin version: firebase_ml_model_downloader (latest as of this report)
Android Gradle Plugin version: 7.0.0+
Beta Was this translation helpful? Give feedback.
All reactions