-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Description
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.