-
Notifications
You must be signed in to change notification settings - Fork 97
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
Mapbox_maps_flutter does not work with Gradle 8.x #217
Comments
I get the same issue. Error is: "A problem occurred configuring project ':mapbox_maps_flutter'.
|
Facing the same issue -BUMP |
Any updates on this? |
Most of the first-party flutter plugins (like package_info_plus, device_info_plus, connectivity_plus) now require the usage of Java 17, compileSDK 34 and Gradle 8.4. Having a flutter app with mapbox_maps_flutter: 1.1.0 in pubspec and with the following build.gradle config
results in
|
Hi all, thank you for raising this, I've created an internal ticket to track this https://mapbox.atlassian.net/browse/MAPSFLT-204 |
Gradle 8 compatibility should improve in #524 |
Hi, I'm working with Mapbox 1.1.0, and a similar setup to @lemonderon, and achieve a similar error:
My error is:
This is my current Gradle android plugin:
Also just for context my general Flutter Doctor -v:
My key setup is probably correct, since I've been extensively using the package for the last month, it definetly seems to be something with Gradle vs Mapbox specifically, since it still runs normally on IOS. |
@gustavolramos You could try 2.0.0-rc.1 the latest build. They have fixed this issue, yet I encountered a new dealbreaker for me #552 which is specific for iOS builds. If I use 728fc8d commit from main branch directly I do not have the #552 and the gradle issues are gone for me for android builds. |
I upgraded my project to Gradle 8 and my project stopped compiling on namespace and Kotlin issues. I fixed the namespace issue but I was never able to get the Mapbox code to compile until I downgraded back to Gradle 7.4.2
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.10.6, on Microsoft Windows [Version 10.0.19045.3208], locale en-US)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
[√] Android Studio (version 2022.3)
[√] Connected device (1 available)
[√] Network resources
The text was updated successfully, but these errors were encountered: