From 188a806125f0fbc56dd85416d85c1a6cb1dd51d7 Mon Sep 17 00:00:00 2001 From: Matt Boetger Date: Mon, 17 Nov 2025 15:05:41 -0800 Subject: [PATCH 1/2] Upgrade AGP to 8.9.1 --- .ci/legacy_project/all_packages/android/settings.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ci/legacy_project/all_packages/android/settings.gradle b/.ci/legacy_project/all_packages/android/settings.gradle index 8fa693a89a0..400520e3df9 100644 --- a/.ci/legacy_project/all_packages/android/settings.gradle +++ b/.ci/legacy_project/all_packages/android/settings.gradle @@ -19,7 +19,7 @@ pluginManagement { // See https://github.com/flutter/flutter/blob/master/docs/ecosystem/Plugins-and-Packages-repository-structure.md#gradle-structure for more info. plugins { id "dev.flutter.flutter-plugin-loader" version "1.0.0" - id "com.android.application" version "8.6.0" apply false + id "com.android.application" version "8.9.1" apply false id "org.jetbrains.kotlin.android" version "2.1.0" apply false } From e8ff07077c73fc9ca4de95b95cab874ac556aa70 Mon Sep 17 00:00:00 2001 From: Matt Boetger Date: Tue, 18 Nov 2025 15:35:57 -0800 Subject: [PATCH 2/2] update project settings and gradle wrapper distribution --- .ci/legacy_project/README.md | 4 ++-- .../android/gradle/wrapper/gradle-wrapper.properties | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.ci/legacy_project/README.md b/.ci/legacy_project/README.md index ff859c3b369..ea3b4faaaba 100644 --- a/.ci/legacy_project/README.md +++ b/.ci/legacy_project/README.md @@ -41,12 +41,12 @@ and then deleting everything but `android/` from it: `build.gradle` to maintain compatibility with plugins that use Flutter's most recently supported API version. - Modifies `gradle-wrapper.properties` to upgrade the Gradle version - from 8.4 to 8.7. If a user runs into an error with the Gradle + from 8.4 to 8.11.1. If a user runs into an error with the Gradle version, the warning is clear on how to upgrade the version to one that we support. - Modifies `settings.gradle` to upgrade the Android Gradle Plugin (AGP) from version 8.3.0 (originally set in `build.gradle`; see bullet below) - to 8.6.0. If a user runs into an error with the AGP version, the warning + to 8.9.1. If a user runs into an error with the AGP version, the warning is clear on how to upgrade the version to one that we support. - Refactor plugin to use declarative Gradle apply instead of the imperative apply (this includes moving where the Android Gradle diff --git a/.ci/legacy_project/all_packages/android/gradle/wrapper/gradle-wrapper.properties b/.ci/legacy_project/all_packages/android/gradle/wrapper/gradle-wrapper.properties index 7aeeb11c6ee..9162f1008ac 100644 --- a/.ci/legacy_project/all_packages/android/gradle/wrapper/gradle-wrapper.properties +++ b/.ci/legacy_project/all_packages/android/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-all.zip