What Flutter 3.50 checks on every Android build
| Build stops below | Warns below | New 3.50 projects | |
|---|---|---|---|
| Android Gradle Plugin | 9.1.1 | 9.3.1 | 9.3.1 |
| Gradle | 9.3.1 | 9.5.0 | 9.5.0 |
| Kotlin Gradle plugin | 2.4.10 | 2.4.20 | 2.4.20 |
| Java (JDK) | 17 | 17 | 17 |
| minSdk | 23 | 24 | 24 (flutter.minSdkVersion) |
Source: DependencyVersionChecker.kt and gradle_utils.dart in the Flutter 3.50.1 SDK. compileSdk and targetSdk are both 36 through flutter.compileSdkVersion and flutter.targetSdkVersion.
The two gradle.properties flags
AGP 9 compiles Kotlin itself (“built-in Kotlin”) and uses a new DSL. Most Flutter plugins, and Flutter’s own Gradle plugin, aren’t ready for either, so Flutter 3.50 keeps both off:
android.builtInKotlin=false
android.newDsl=falseflutter run and flutter build add these lines if they’re missing. An Android Studio Gradle sync or ./gradlew doesn’t, which is why the build often fails in Android Studio first with “kotlin.android plugin is no longer required since AGP 9.0”. Without android.newDsl=false, applying the Flutter Gradle plugin fails with java.lang.NullPointerException (no error message).
Warnings you’ll see even when it builds
- Your app applies the Kotlin Gradle Plugin. On AGP 9, Flutter 3.50 logs that this “will cause build failures in future versions of Flutter”. It’s safe for now with
android.builtInKotlin=false; removekotlin-androidfrom the app module when you migrate. - Plugins that apply KGP. Flutter lists them by name. Check each plugin’s changelog for a version that supports built-in Kotlin.
- Versions below the recommended ones. AGP below 9.3.1, Gradle below 9.5.0 or Kotlin below 2.4.20 build, but with a warning.
Old projects: apply from flutter.gradle
If your android/app/build.gradle still has apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle", Flutter 3.50 stops with: “You are applying Flutter’s main Gradle plugin imperatively using the apply script method, which is not possible anymore.” Move to the declarative plugins block in settings.gradle first; the checker writes that block for you.
The whole upgrade, including the Dart side (dart fix --apply for material_ui) and iOS, is in the Flutter 3.50 upgrade guide. To check Google Play’s target API rule instead, use the target API and Gradle checker.
Questions
What Gradle and AGP versions does Flutter 3.50 need?
Flutter 3.50 stops the build below AGP 9.1.1, Gradle 9.3.1 or Kotlin 2.4.10, and warns below AGP 9.3.1, Gradle 9.5.0 or Kotlin 2.4.20. New 3.50 projects use AGP 9.3.1, Gradle 9.5.0 and Kotlin 2.4.20, with Java 17.
Do I need android.builtInKotlin=false on Flutter 3.50?
Yes, unless your app and every plugin it uses have migrated to built-in Kotlin. New Flutter 3.50 projects ship with android.builtInKotlin=false and android.newDsl=false, and flutter build adds them to older projects.
Why does my project build with flutter run but fail in Android Studio?
flutter run adds the built-in Kotlin and new DSL flags to gradle.properties before building. An Android Studio Gradle sync doesn't run that migration, so AGP 9 turns built-in Kotlin on and the kotlin-android plugin fails.
Does this tool upload my Gradle files?
No. Everything runs in your browser. The files you paste never leave your computer.
Upgrade stuck on a Gradle error? I’m Muhammad Naeem, a Flutter developer who keeps client apps on current Flutter and store rules. Send me the error and I’ll take a look.