-
-
Notifications
You must be signed in to change notification settings - Fork 878
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]: Android build failures #2251
Comments
@nohli FYI |
Have you tried the changes I had to make in this PR? Idk what's better - reproduce the fix, and write it in a migration guide, including a breaking change, or just downgrade to kotlin 1.8.20. Either way, retracting the latest versions would make sense. |
You mean to try them in that project with problem? It is already using everything latest, including targeting Java 17 for a few months already. These changes have nothing to do with I have already retracted versions, will open a PR with rollback of Kotlin updates and will release updates tomorrow with rollback as some plugins had other changes which are useful to users of plugins. But I really hate what Google and Jetbrains did in their latest Kotlin and AGP releases - too many problems. Earlier it was much safer to update. |
downgrading kotlin to 1.8.10 would have been enough imo |
Platform
Android
Plugin
share_plus, device_info_plus
Version
8.0.0 for share_plus and 10.0.0 for device_info_plus
Flutter SDK
3.13.4
Steps to reproduce
Tried to just update plugins in one of projects I work on.
Project uses fresh dependencies and has Kotlin 1.8.20 and AGP 7.4.2, so it is not an issue with some old Android native dependencies.
flutter clean
didn't help.Tried to find something similar and found that
mobile_scanner
also has a similar issue juliansteenbakker/mobile_scanner#729 and it is also related to Kotlin 1.9.xNot sure about the solution, but I also found this page where it is stated that for Kotlin 1.9 project needs to have AGP 8.0.
Based on this fact I am thinking about retracting latest versions of plugins that have Kotlin 1.9.10 and would like to revert Kotlin to older version to not have such unexpected failures that can't be reproduced by building available example apps.
Code Sample
No response
Logs
Flutter Doctor
Checklist before submitting a bug
flutter pub upgrade
flutter clean
The text was updated successfully, but these errors were encountered: