Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 [Android] KARTE Core don't fully support AGP 8 #46

Open
mizutani-wataru opened this issue Jan 15, 2025 · 1 comment
Open

🐛 [Android] KARTE Core don't fully support AGP 8 #46

mizutani-wataru opened this issue Jan 15, 2025 · 1 comment

Comments

@mizutani-wataru
Copy link

mizutani-wataru commented 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:

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

  1. flutter pub add karte_core@^1.3.0
  2. 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
@mizutani-wataru 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
@TakayukiCho
Copy link

Hi, we appreciate your posting the issue.

We are currently upgrading the AGP version, starting from https://github.com/plaidev/karte-android-sdk .
If it's urgent, please contact the customer success for discussing any possible workarounds!

Sorry for the inconvenience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants