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
"One or more plugins require a higher Android SDK/NDK version" – tell me what these plugins are #147806
Comments
Hi @bartekpacia, this change makes sense but I couldn't reproduce the issue. In the first build, I faced ...
e: /Users/huynq/.pub-cache/hosted/pub.dev/location-6.0.1/android/src/main/java/com/lyokone/location/FlutterLocationService.kt: (294, 17): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1.
... Then when I built the project again, it was successful without NDK version issue. I wonder if there is any more step to reproduce this? |
Yes, it's obvious through that test. Marking this as a proposal for this improvement. |
This PR resolves #147806 - List plugin that want to be compiled against a higher Android SDK version - List plugins that depend on a different NDK version (we don't have a way to compare them) - Small formatting and wording improvements - Update syntax to work for both Groovy and Kotlin - If project uses `build.gradle.kts`, then it is mentioned in the warning message (previously always `build.gradle` was mentioned) <img width="1209" alt="demo" src="https://github.com/flutter/flutter/assets/40357511/be3522b5-d1b4-4983-9fed-8aaa0f0bc7f7">
Steps to reproduce
This error message could've been more helpful, i.e. mention specifically which plugins require higher NDK version:
Expected results
Reproduction
I'm using Flutter from master branch (~May 3rd, 2024):
flutter create --platforms=android example
Add some plugins to
pubspec.yaml
:flutter build apk --debug
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: