-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Description
Issue Link
#135710 has a description of the problem (I don't have one but I can open one if needed)
Commit Hash
Target
beta
PR Link
Changelog Description
Corrects the range of Java versions that flutter create will show if your Java version is incompatible with Flutter's template AGP & Gradle versions and/or is too new/old a version to be recognized by Flutter's tooling.
The range currently printed suggests that the upper bound is inclusive, whereas it is exclusive, so it may confuse developers.
Impacted Users
All Flutter devs running flutter create for something running on Android
Impact Description
They will see a range of Java versions that is confusing. It can easily be found out as incorrect by following documentation linked in the warning, but we can't guarantee devs will look there to confirm the range of Java versions that we suggest.
Workaround
Following the documentation linked in the warning to check the Java versions.
Risk
low
Test Coverage
yes
Validation Steps
There are many tests that prove that the range is exclusive (
flutter/packages/flutter_tools/test/general.shard/android/gradle_utils_test.dart
Line 945 in a047358
| testWithoutContext('getJavaVersionFor returns expected Java version range', () { |