From 67fc3e5de21ca2d03c235696dda9380d56ddfabf Mon Sep 17 00:00:00 2001 From: zarzet Date: Sat, 7 Feb 2026 20:36:25 +0700 Subject: [PATCH] fix: revert AGP 9 to 8.13.2 - Flutter plugins not yet compatible with AGP 9 --- android/app/build.gradle.kts | 1 + android/gradle.properties | 1 - android/settings.gradle.kts | 3 ++- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/android/app/build.gradle.kts b/android/app/build.gradle.kts index e4cf41f..290b26f 100644 --- a/android/app/build.gradle.kts +++ b/android/app/build.gradle.kts @@ -3,6 +3,7 @@ import java.io.FileInputStream plugins { id("com.android.application") + id("kotlin-android") // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins. id("dev.flutter.flutter-gradle-plugin") } diff --git a/android/gradle.properties b/android/gradle.properties index 19ce8f4..68dd758 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -1,3 +1,2 @@ org.gradle.jvmargs=-Xmx4G -XX:MaxMetaspaceSize=2G -XX:ReservedCodeCacheSize=256m -XX:+HeapDumpOnOutOfMemoryError android.useAndroidX=true -android.newDsl=false diff --git a/android/settings.gradle.kts b/android/settings.gradle.kts index 9009b1e..a310ef6 100644 --- a/android/settings.gradle.kts +++ b/android/settings.gradle.kts @@ -19,7 +19,8 @@ pluginManagement { plugins { id("dev.flutter.flutter-plugin-loader") version "1.0.0" - id("com.android.application") version "9.0.0" apply false + id("com.android.application") version "8.13.2" apply false + id("org.jetbrains.kotlin.android") version "2.2.21" apply false } include(":app")