-
Notifications
You must be signed in to change notification settings - Fork 247
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
flutter build apk
results in "Module was compiled with an incompatible version of Kotlin..."
#4771
Comments
@michaelokonji I think those may be warnings. The command seems to complete as it finishes with Do you see an apk in that directory? You should be able to install it on your device with |
@Jordan-Nelson You're correct, the build completes and app-release.apk is in the specified path but I'm uncertain if I can safely ignore these and move forward with with my release. |
@michaelokonji - Thanks for the update. We will take a look at warnings and get back to you. |
When I run flutter build appbundle --release FAILURE: Build failed with an exception.
My pubspec.yml dependencies: settings.gradle plugins { |
thank you for providing these details. we will look into this issue and get back to you with any updates. |
flutter build apk
results in "Module was compiled with an incompatible version of Kotlin..."
@harini18 - Do you mind opening a separate issue so that we can keep this issue focused on the "incompatible version of kotlin" warning? |
@michaelokonji I was able to reproduce this following the set up for Android in the docs. I think this is caused by using Android Gradle Plugin (AGP) v7 and Kotlin 1.9. If you update AGP to v8.1 and gradle to v8.0, the issue should go away. Here are the steps you would take to do that (Note: if your app was created prior to Flutter 3.16 follow these steps first):
Let me know if you have any issues. I am going to mark this as a docs issue since our docs currently recommend using a lower version of AGP and gradle |
The documentation has been updated. Please refer to https://docs.amplify.aws/flutter/start/platform-setup/#android and let use know if you have any questions. Thanks. |
Description
flutter run
works, butflutter build apk
returns error for amplify kotlin module versions incompatibility.Please help.
Categories
Steps to Reproduce
Screenshots
No response
Platforms
Flutter Version
3.19.6
Amplify Flutter Version
1.8.0
Deployment Method
Amplify CLI
Schema
No response
The text was updated successfully, but these errors were encountered: