-
Notifications
You must be signed in to change notification settings - Fork 839
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
on android latest version getting compile error #753
Comments
I have same the problem:
settings.gradle:
Did anyone find a solution? |
add
in scope allprojects {} |
I found an easier way to fix. The issue was caused by Android Studio Ladybug having bundled a version of Java that isn't fully backward compatible with Flutter's plugin ecosystem (source). Since I was using Java 11 before (installed separately using homebrew), all I need to do was to tell Flutter to use that java version, instead of the JRE bundled inside Android Studio. To do that I just have to execute this command:
And my flutter project was compiling correctly again without any change to the project itself. If you don't have any other Java on your machine, see the source above to install it. They say Java 17 is the last working version. |
Alternative here https://github.com/wizmea/qr_code_scanner |
What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
The text was updated successfully, but these errors were encountered: