Skip to content

Commit 5a7190c

Browse files
chrisbobbeclaude
andcommitted
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. With our AGP 8.12.0, the build crashes while applying Flutter's Gradle plugin: 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()' AGP 9.3.3 doesn't have that problem. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent df9070f commit 5a7190c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎android/gradle/wrapper/gradle-wrapper.properties‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# the wrapper is the one from the new Gradle too.)
77
distributionBase=GRADLE_USER_HOME
88
distributionPath=wrapper/dists
9-
distributionUrl=https\://services.gradle.org/distributions/gradle-9.0.0-all.zip
9+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.0-all.zip
1010
networkTimeout=10000
1111
validateDistributionUrl=true
1212
zipStoreBase=GRADLE_USER_HOME

‎android/settings.gradle.kts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ pluginManagement {
1919

2020
plugins {
2121
id("dev.flutter.flutter-plugin-loader") version "1.0.0"
22-
id("com.android.application") version "8.12.0" apply false
22+
id("com.android.application") version "9.3.3" apply false
2323
// Generally update this to the version found in recent releases
2424
// of Android Studio, as listed in this table:
2525
// https://kotlinlang.org/docs/releases.html#release-details
2626
// A helpful discussion is at:
2727
// https://stackoverflow.com/a/74425347
28-
id("org.jetbrains.kotlin.android") version "2.2.20" apply false
28+
id("org.jetbrains.kotlin.android") version "2.4.20" apply false
2929
}
3030

3131
include(":app")

0 commit comments

Comments
 (0)