-
Notifications
You must be signed in to change notification settings - Fork 234
Closed
Description
A few things to consider:
- I would suggest using
./gradlew wrapper --gradle-version=8.8
instead of changing the number directly ingradle/wrapper/gradle-wrapper.properties
as this will updategradlew
,gradlew.bat
and the JAR filegradle/wrapper/gradle-wrapper.jar
- I would also suggest using the same Kotlin version and Android Gradle Plugin (AGP) as the latest one tested by the Flutter Team, updating Kotlin requires projects to the Kotlin version in the
android
platform project, we should consider using1.7.10
for compatibility in case we don't use Kotlin language features above this version, updating Android Gradle Plugin cause many unexpected issues in Release Build, I wasn't able to detect what caused the issues, crashes and startup issues until I removed theandroid
project, recreate it and move my changes, after some manual debugging it seems the issue that I updated Kotlin and AGP to the latest version, though I also did this in the blank Flutter project without any issues, so it might cause those issues with another plugin or more advance use cases, at the time of this PR, Flutter docs hasn't documented this common issue, in new releases (3.16 or 3.21), they will give you a warning when building the project to avoid such issues.
Originally posted by @EchoEllet in #155 (comment)
EchoEllet
Metadata
Metadata
Assignees
Labels
No labels