Repository navigation
Commit 8e6c24d
committed
Migrate Android build to Gradle 9 / AGP 9.4.0
Flutter's tooling warns that support for Gradle 8.14.5, AGP 8.13.2 and
Kotlin 2.3.0 will soon be dropped. Bump Gradle to 9.6.0 and AGP to
9.4.0 (both current stable).
AGP 9 reads only its new declarative DSL by default, which the
Flutter Gradle plugin does not support yet: it throws an NPE in
getLegacyAndroidExtension against AGP 9 defaults (flutter/flutter#191703),
and the Flutter-side migration is still open (flutter/flutter#180137).
Flutter's own migrator tool works around this today by setting
android.newDsl=false and android.builtInKotlin=false, keeping the
existing legacy DSL and the explicit kotlin-android plugin - so this
does the same rather than rewriting build.gradle to the new DSL and
built-in Kotlin support prematurely. That follow-up migration should
happen once the Flutter Gradle plugin itself supports AGP 9's new DSL.
Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014gbNnPCT7nUxeWAQDiTzGR1 parent f5cf76b commit 8e6c24d
3 files changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
0 commit comments