Raised minimum Android build tool versions
Flutter 3.50 requires Android Gradle Plugin 9.1.1, Gradle 9.3.1, and Kotlin Gradle Plugin 2.4.10 (when applied) or later to build for Android. Android Gradle Plugin 10 isn't supported.
Summary
#Flutter 3.50 raises the minimum versions for Android build tools compared to Flutter 3.47. Builds configured below these minimums, or with Android Gradle Plugin (AGP) 10 or later, fail dependency validation.
The following table compares the minimum, warning, and template default versions between Flutter 3.47 and Flutter 3.50:
| Dependency | Flutter 3.47 minimum | Flutter 3.50 minimum | Warns below (3.50) | Template default (3.50) |
|---|---|---|---|---|
| Android Gradle Plugin (AGP) | 8.11.1 | 9.1.1 | 9.3.1 | 9.3.1 |
| Gradle | 8.14.0 | 9.3.1 | 9.5.0 | 9.5.0 |
| Kotlin Gradle Plugin (KGP, when applied) | 2.2.20 | 2.4.10 | 2.4.20 | 2.4.20 |
| Java (JDK) | 17 | 17 | 17 | — |
Two version rules apply alongside the minimums in the table:
-
KGP validation: Flutter skips the KGP check when built-in Kotlin
(
android.builtInKotlin=true) is active. Withandroid.builtInKotlin=false, the Flutter Gradle Plugin (FGP) depends on KGP2.4.10. FGP applieskotlin-androidwhenever KGP is on the classpath, even without Kotlin source files. Gradle dependency resolution upgrades lower KGP versions insettings.gradle(.kts)plugins {}(such as2.4.0) to2.4.10, and Flutter logs a warning. Only a strict KGP version constraint below2.4.10fails validation. For details, refer to Built-in Kotlin and the new AGP DSL. - AGP 10 upper bound: Flutter 3.50 doesn't support AGP 10 or later, and builds configured with AGP 10 fail validation.
Check your versions to determine what your project needs:
-
Projects meeting the minimums: No changes are needed
if your Android project already uses AGP
9.1.1through9.x, Gradle9.3.1or later, Java 17 or later, and built-in Kotlin (or KGP2.4.10or later). Updating to AGP9.3.1, Gradle9.5.0, and built-in Kotlin (or KGP2.4.20) is optional and clears build warnings. -
Projects below the minimums: In your Flutter app or add-to-app host
project (including unmodified apps created with Flutter 3.47 or earlier),
update AGP, Gradle, and
(when
android.builtInKotlin=false) KGP. Standalone Flutter modules regenerate.android/automatically when you runflutter pub get. -
Android plugins: Consuming apps set the toolchain versions.
To validate your plugin's
example/app, refer to Test Flutter plugins.
Background
#Flutter checks your Gradle, Java, AGP, and KGP versions on every Android build and enforces a support policy for these tools. Flutter 3.50 raises the minimum versions for two reasons:
- Requiring AGP 9 provides the public AGP 9 APIs on every build, so FGP doesn't maintain separate AGP 8 and AGP 9 code paths.
-
AGP
9.1.1and later supportcompileSdk37 (Android 17), preparing Flutter to target Android 17 without raising the minimum version again.
The AGP migration timeline
schedules the removal of the legacy DSL,
the legacy variant APIs, and the android.newDsl=false opt-out for AGP 10.
Because Flutter hasn't validated AGP 10,
Flutter 3.50 rejects AGP 10 or later during dependency validation:
Error: Your project's Android Gradle Plugin version (10.0.0) is not yet
supported. Flutter does not support Android Gradle Plugin 10, and support
will be added in a future Flutter release. Please downgrade your
Android Gradle Plugin version to a version below 10.0.0 to continue.
Alternatively, use the flag "--android-skip-build-dependency-validation"
to bypass this check (unsupported; your build may fail).
When a dependency version falls below the minimum, the build fails with a validation error naming the required version:
Error: Your project's Android Gradle Plugin version (Android Gradle Plugin
version 9.1.0) is lower than Flutter's minimum supported version of
Android Gradle Plugin version 9.1.1. Please upgrade your Android Gradle
Plugin version.
Alternatively, use the flag "--android-skip-build-dependency-validation"
to bypass this check.
Migration guide
#Check your versions
#Inspect the build files and toolchain settings in your Flutter app (or in the host Android project for add-to-app builds):
-
AGP and KGP: Check
plugins {}inandroid/settings.gradle.kts(orandroid/settings.gradle), or checkgradle/libs.versions.toml. Refer to Update the Android Gradle Plugin and Update the Kotlin Gradle Plugin. -
Gradle: Check the
distributionUrlproperty inandroid/gradle/wrapper/gradle-wrapper.properties. Refer to Update Gradle. -
Java (JDK): Run
flutter doctor -vand check theJava versionline under Android toolchain.
For a standalone Flutter module, running flutter pub get regenerates the
ephemeral .android/ directory with the Flutter 3.50 defaults.
Update the Android Gradle Plugin
#Before updating AGP, check two compatibility requirements:
-
AGP
9.3.1requires Gradle9.5.0or later (refer to Update Gradle). AGP9.1.1works with Gradle9.3.1or later. - If you're upgrading from AGP 8, also review Built-in Kotlin and the new AGP DSL.
Update AGP to 9.3.1 (the Flutter 3.50 template default) to clear warnings,
or to at least 9.1.1.
Set the com.android.application version in the plugins {}
block of
android/settings.gradle.kts (or android/settings.gradle).
Code before migration:
plugins {
id("dev.flutter.flutter-plugin-loader") version "1.0.0"
id("com.android.application") version "9.1.0" apply false
// ...
}
Code after migration:
plugins {
id("dev.flutter.flutter-plugin-loader") version "1.0.0"
// Minimum in 3.50 is 9.1.1; 9.3.1 clears warnings (requires Gradle 9.5.0+).
id("com.android.application") version "9.3.1" apply false
// ...
}
Update Gradle
#Before updating the Gradle wrapper, check your Java and AGP versions:
-
Gradle 9 requires Java 17 or later.
If Flutter uses an older JDK, run
flutter config --jdk-dir=JDK_DIR, replacingJDK_DIRwith your Java 17 or later path. -
Each AGP release requires a minimum Gradle version.
AGP
9.1requires at least Gradle9.3.1, and AGP9.3requires at least Gradle9.5.0. For other combinations, consult the AGP and Gradle compatibility table.
Set distributionUrl in android/gradle/wrapper/gradle-wrapper.properties
to Gradle 9.5.0 (or 9.3.1 with AGP 9.1.1).
Code before migration:
distributionUrl=https\://services.gradle.org/distributions/gradle-9.1.0-all.zip
Code after migration:
# Minimum in 3.50 is 9.3.1; AGP 9.3.1 requires Gradle 9.5.0 or later.
distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.0-all.zip
Update the Kotlin Gradle Plugin
#
Skip this step if your project uses built-in Kotlin
(android.builtInKotlin=true).
With android.builtInKotlin=false, update KGP to 2.4.20 to clear warnings,
or to at least 2.4.10.
Set the org.jetbrains.kotlin.android version in the plugins {}
block of
android/settings.gradle.kts (or android/settings.gradle).
Code before migration:
plugins {
// ...
id("org.jetbrains.kotlin.android") version "2.4.0" apply false
}
Code after migration:
plugins {
// ...
// Minimum when applied is 2.4.10; 2.4.20 clears warnings.
id("org.jetbrains.kotlin.android") version "2.4.20" apply false
}
Applying KGP is deprecated on AGP 9, and Flutter logs a warning when your app or a plugin applies it (Issue 184837). To migrate off KGP instead of updating its version, follow the built-in Kotlin guide for app developers.
Test Flutter plugins
#
Flutter plugins compile with the AGP, Gradle, and KGP versions configured by
the consuming app.
Test your plugin's example/ app with AGP 9.3.1 and Gradle
9.5.0,
the Flutter 3.50 template defaults.
If your example app can't use those versions, test with at least
AGP 9.1.1 and Gradle 9.3.1, the Flutter 3.50 minimums.
Then test both values of android.builtInKotlin in
example/android/gradle.properties:
android.builtInKotlin=falseconfirms that the example app builds as-is.-
android.builtInKotlin=trueconfirms that the plugin is ready for built-in Kotlin. If the build fails, migrate your plugin by following the built-in Kotlin guide for plugin authors.
Built-in Kotlin and the new AGP DSL
#
AGP 9 enables built-in Kotlin by default (rejecting the
kotlin-android
plugin) and exposes only the new AGP DSL.
Flutter keeps existing build scripts and plugins compatible across those
defaults with two Gradle properties in android/gradle.properties:
-
flutter createwritesandroid.builtInKotlin=falseandandroid.newDsl=falseto new projects. -
If either property is missing, the Flutter tool adds it the next time you
run
flutter runorflutter build. This includes running the Flutter project from an IDE such as Android Studio or VS Code with the Flutter plugin, which callsflutter run. -
Building with Gradle directly doesn't add the properties.
This includes
./gradlew, opening theandroid/directory as an Android Studio project,flutter build aar, and add-to-app host app builds.
If you are building with Gradle directly, confirm that
<flutter-project>/android/gradle.properties sets both properties:
# Keep legacy KGP and DSL compatibility until your app and plugins migrate.
android.builtInKotlin=false
android.newDsl=false
Use the following guides when you're ready to adopt the AGP 9 defaults:
-
To prepare for
android.builtInKotlin=true, migrate to built-in Kotlin by following Migrating Flutter Android projects to built-in Kotlin, which contains the migration guides for app developers and for plugin authors. That migration applies only to apps and plugins that apply KGP (kotlin-androidororg.jetbrains.kotlin.android) inbuild.gradleorbuild.gradle.kts. If your project doesn't apply KGP, don't migrate to built-in Kotlin. -
To prepare custom build scripts for
android.newDsl=true, consult Extend the Android Gradle Plugin. Flutter 3.50 defaults toandroid.newDsl=false, keeping legacy AGPandroid {}types available until you enableandroid.newDsl=true(Issue 180137).
Timeline
#In stable release: 3.50
References
#- Android dependency versions support policy: Policy defining minimum, warning, and template default versions for Android build tools in Flutter.
- AGP and Gradle compatibility table: Official Android matrix for matching AGP, Gradle, and JDK versions.
- AGP DSL and API migration timeline: Official Android schedule for legacy DSL and Variant API removals.
-
Migrating Flutter Android projects to built-in Kotlin:
Guide to removing the deprecated
kotlin-androidplugin on AGP 9 and later. -
Issue 180137: Tracking issue for enabling
android.newDsl=trueby default in Flutter project templates. - Issue 184837: Tracking issue for removing legacy Kotlin Gradle Plugin support in a future Flutter release.
Unless stated otherwise, the documentation on this site reflects Flutter 3.50. Page last updated on 2026-12-01. View source or report an issue.