You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While trying to build 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 ':karte_core'.
> defaultConfig contains custom BuildConfig fields, but the feature is disabled.
To enable the feature, add the following to your module-level build.gradle:
`android.buildFeatures.buildConfig true`
* 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.
Possible Solution
In plugin's android/build.gradle file, you have to add:
android {
buildFeatures {
buildConfig = true
}
}
Steps to Reproduce
flutter pub add karte_core@^1.3.0
flutter run
Context (Environment)
run flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.27.1, on macOS 15.2 24C101 darwin-arm64, locale ja-JP)
[!] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[✓] Xcode - develop for iOS and macOS (Xcode 16.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.1)
[✓] VS Code (version 1.95.0)
[✓] Connected device (3 available)
[✓] Network resources
The text was updated successfully, but these errors were encountered:
mizutani-wataru
changed the title
🐛 KARTE Core don't fully support AGP 8
🐛 [Android] KARTE Core don't fully support AGP 8
Jan 15, 2025
Expected Behavior
App can be built with AGP8.
Current Behavior
While trying to build our app to AGP 8, we were getting error logs like this:
Possible Solution
In plugin's
android/build.gradle
file, you have to add:Steps to Reproduce
flutter pub add karte_core@^1.3.0
flutter run
Context (Environment)
run
flutter doctor
The text was updated successfully, but these errors were encountered: