Skip to content

Migrate flutter owned packages to use jvm version 17 (away from jvm 11) #176027

@reidbaker

Description

@reidbaker

Java less than 17 support for gradle stopped at gradle 8.14. https://docs.gradle.org/current/userguide/compatibility.html

Useful links
flutter/packages#3715
#124839
flutter/packages#3712 (comment)

Plugins will need need to set a minimum flutter version to 3.35. see packages/file_selector/file_selector_android/pubspec.yaml

Logic:
AGP 8.0 was the first AGP version to require java 17. https://developer.android.com/build/releases/past-releases/agp-8-0-0-release-notes
3.32 has a warn AGP version set to 8.3 but an error version set to 7.0 https://github.com/flutter/flutter/blob/3.32.8/packages/flutter_tools/gradle/src/main/kotlin/DependencyVersionChecker.kt#L94
3.35 has a error version of AGP set to 8.1.1 https://github.com/flutter/flutter/blob/3.35.4/packages/flutter_tools/gradle/src/main/kotlin/DependencyVersionChecker.kt#L103

Dart version updates also happen at the same time as flutter updates and the newer dart version has formatting changes.
Format changes can be made in the same pr that updates java compile options and sets the minimum flutter version.

Metadata

Metadata

Labels

P1High-priority issues at the top of the work listfyi-ecosystemFor the attention of Ecosystem teamteam-androidOwned by Android platform team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions