Skip to content

[desktop] android gradle version #350

@boyan01

Description

@boyan01

A few things to consider:

  • I would suggest using ./gradlew wrapper --gradle-version=8.8 instead of changing the number directly in gradle/wrapper/gradle-wrapper.properties as this will update gradlew, gradlew.bat and the JAR file gradle/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 using 1.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 the android 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions