Repository navigation
Commit 4170a2d
deps android: Upgrade AGP to 9.3.3, Gradle to 9.5.0, Kotlin to 2.4.20
Flutter's recent change
https://github.com/flutter/flutter/pull/ 193813
made Android Gradle Plugin 9.1.1 the minimum. Flutter's Gradle plugin
is compiled against the AGP 9 DSL interfaces, so with our AGP 8.12.0
the build crashes while applying it:
NoSuchMethodError: 'ApplicationDefaultConfig
ApplicationExtension.getDefaultConfig()'
at com.flutter.gradle.FlutterPlugin$Companion.configureAbiWithoutSplits
Move to the versions in Flutter's current app template, except for
AGP. The template has AGP 9.3.1, but lint in AGP 9.3.1 crashes when
Gradle runs on JDK 17, as it does in our CI:
NoSuchMethodError: 'java.lang.Object java.util.List.removeLast()'
(`List.removeLast` is new in Java 21.) AGP 9.3.3 doesn't have that
problem. Flutter's minimums are AGP 9.1.1, Gradle 9.3.1, and Kotlin
Gradle plugin 2.4.10.
We keep `android.builtInKotlin=false` and `android.newDsl=false`, as
several plugins we depend on still apply the Kotlin Gradle plugin.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent d06ad54 commit 4170a2d
2 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
0 commit comments