-
Notifications
You must be signed in to change notification settings - Fork 243
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
Android build fails with Flutter 2.10.0 because of incompatible Kotlin plug-in #1335
Comments
Hello @alod2019 - Thanks for opening the issue. I am actively working on a fix. |
@alod2019 Did you try change in Android/build.gradle ? |
@alod2019 Which value did you have for |
@alod2019 (or anyone else facing this issue) - see below for a suggested fix, and some context on the issue. Suggested FixIf your Below is an example of the changes you will need to make: + ext.kotlin_version = '1.6.10' // needs to be 1.5.31 or higher for flutter 2.10.0
- ext.kotlin_version = '1.3.50' For anyone using the ContextAs you noted in the issue description, kotlin
The amplify_flutter packages specify kotlin Additionally, we have run our integration test suite with amplify_flutter As noted by @joaohenriquesouza80, you may find that kotlin |
I have pinned this issue since flutter 2.10.0 became stable a few days ago and others may run into this as well. |
I've did this changes, and works for me. Thanks. |
The suggested fix works but only if the app. project was created with Kotlin enabled. So I guess that module-level fix(es) would be appreciated anyway. |
@alod2019 - Thanks for following up. If you do not have Kotlin as a dependency, then you are right that this will not work. I had noticed that |
One year ago. It was created with '-a java' so it never had Kotlin enabled. |
@alod2019 Thanks. I tested
We do plan to make this change. We held off on pushing out a new version with this change because it will be a breaking change for apps that are still using flutter 2.8.1 and have Thanks for working through this with us. |
@alod2019 - We are planning to include the kotlin version bump in amplify_flutter 0.4.x since it will be breaking for those on older versions. We are aiming to have a release-candidate of 0.4.x out in the next day or so. I will update this issue when it is available. |
@alod2019 - version 0.4.0-rc.1 of amplify flutter was just released. It includes the kotlin version bump. Would you be willing to try this out and confirm it resolves your issue? If you use amplify_api, there was one breaking change in this release. The response from graphql mutations is now nullable. You can read more about that here. |
At a moment I can only confirm that there are no errors caused by amplify 0.4.0-rc.1 dependencies in my build log. |
Had this too, followed this website that told me to change the version in |
Hi guys. I recently upgraded all packages.
And i keep getting this error. My plugin and gradle dependencies seems to be good as shown in the documentation link. I am currently at:
I have even tried reverting the pubspec.yaml to an old version that worked just fine.. But I can't seem to build. Would really appreciate any help. Notes of dev environment:
|
@abasu0713 - Hello! Can you please submit another Github issue regarding this, please use our Github issue template. It has been a while since we have talked, I hope your project has been going well! |
@abdallahshaban557 Hiya! It's so good to read from you. It is.. Thank you. :) |
Closing this issue out as it was resolved in 0.4.0. You can see this comment for a work around that doesn't require upgrading to 0.4.0. |
Describe the bug
Android build fails with a bunch of error messages like
To Reproduce
Just build a project with Amplify 0.3.2
Expected behavior
No build errors
Platform
Amplify Flutter current supports iOS and Android. This issue is reproducible in (check all that apply):
[x] Android
[] iOS
Additional context
The root cause is this Flutter 2.10.0 breaking change
The text was updated successfully, but these errors were encountered: