-
Notifications
You must be signed in to change notification settings - Fork 117
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
[BUG] Strange errors after upgrading a few versions #456
Comments
Thank you for this bug report @ianthetechie.
After that your build should succeed because you're using flutter v3.22, the latest version. (If not, run
Alternativly, you can adjust the minimum flutter version in your example app here:
Let me know if these steps help, then I can update the docs with it. (: |
Why do we require Kotlin |
@kuhnroyal It got increased in #270 about a year ago. |
Some research:
A new created flutter project uses kotlin 1.7.10 by default. |
Oof. I think you're right. Will test when I'm back at my computer. I feel pretty stupid 😅 But uh seriously I'm actually shocked that 1) the Android templates for Flutter are this out of date, and 2) that there aren't any lints or other ways of detecting this situation. It seems like it would be fairly common since my impression is that language and tooling updates take a LOT longer in the JVM ecosystem. In swift we assume you're using latest or maybe -1 release. As you say this is fixable with docs / FAQ. |
That was indeed the fix. Thanks a bunch for the quick + detailed reply @josxha! |
I guess we should just update the docs. |
Platforms
android
Version of flutter maplibre_gl
0.20
Bug Description
I've been having some issues getting Android builds to work after upgrading (from a rather old release on the m0nac0 repo). The deprecation errors and renames were easy to fix. Everything works on iOS, but I still can't get the simple demo project to build for Android.
The project is essentially a reproduction of the MapLibre cluster demo with earthquake data.
Steps to Reproduce
Option 1: Check out this repo and try to run on Android (emulator in my case). NOTE: Check out the
upgrade-to-0.20
branch!Option 2: Create a new flutter project targeting iOS and Android. Then copy/replace the following files with the versions from my repo:
Expected Results
It runs like on iOS.
Actual Results
Build failures. Usually the first build after clean (and nuking
$HOME/.pub-cache/hosted/pub.dev/
and$HOME/.gradle/caches/
yields the following:Gradle being gradle, trying to run a second time never yields the same failure as the first run (wtf?). It usually fails like this:
For reference, here is my flutter doctor output:
Code Sample
See repo and steps to reproduce above.
The text was updated successfully, but these errors were encountered: