Fix · Flutter · Android

    Flutter 3.50 Android build fails: Android Gradle Plugin below 9.1.1

    Nathan Claiborne
    Flutter 3.50.0 became the stable release on November 11, 2026, and it stops any Android build whose android/ folder pins an Android Gradle Plugin older than 9.1.1. Our own public test app, made with flutter create on Flutter 3.47.7, pins 9.1.0: it built on November 7 and failed on November 14 with the same code. Here is the error, the one-line fix, and two ways to unblock a release today.

    The error

    The build stops while Gradle applies Flutter’s plugin, before anything compiles. This is the log from our test app’s failed release build:

    FAILURE: Build failed with an exception.
    
    * Where:
    Build file '.../android/app/build.gradle.kts' line: 1
    
    * What went wrong:
    An exception occurred applying plugin request [id: 'dev.flutter.flutter-gradle-plugin']
    > Failed to apply plugin 'dev.flutter.flutter-gradle-plugin'.
       > 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.

    The same run also printed a warning that is not an error yet: Flutter support for your project's Gradle version (9.3.1) will soon be dropped. Please upgrade your Gradle version to a version of at least 9.5.0 soon.

    Why it started without a change to your code

    • Flutter raised the floor. Flutter 3.50 checks the Android Gradle Plugin (AGP) version your project declares and refuses anything below 9.1.1. A project created by flutter create on 3.47.7 declares 9.1.0, and projects created on older Flutter declare older versions.
    • Your CI moved to 3.50 by itself. A workflow that installs the newest stable Flutter, such as subosito/flutter-action with channel: stable, picked up 3.50 on its first run after November 11.
    • Your laptop may still be on 3.47. That is why a build can pass locally and fail in CI. Run flutter --version in both places.
    • iOS builds are not affected. The check is part of Flutter’s Gradle plugin, which only Android builds use.

    Find the version your project pins

    From the root of your Flutter project:

    grep -rn "com.android.application\|com.android.tools.build:gradle" android/

    In a project made by a recent flutter create it is in the plugins block of android/settings.gradle.kts (or android/settings.gradle). In older projects with no plugins block, it is the classpath line in android/build.gradle.

    Fix 1: raise the plugin to 9.1.1 (the real fix)

    Change the version on the com.android.application line, and only that line:

    // android/settings.gradle.kts
    id("com.android.application") version "9.1.1" apply false
    
    // android/settings.gradle (Groovy)
    id "com.android.application" version "9.1.1" apply false
    
    // android/build.gradle, older projects without a plugins block
    classpath 'com.android.tools.build:gradle:9.1.1'

    9.1.1 is a patch release of the 9.1 line you already use, so it is the smallest change Flutter 3.50 accepts, and it is published on Google’s Maven repository. Newer lines exist (9.5.1 was the newest stable release on November 14, 2026), but a bigger jump can also ask for a newer Gradle. When you do upgrade Gradle, for the warning above, the version is the distributionUrl in android/gradle/wrapper/gradle-wrapper.properties.

    Fix 2: skip the check for this build

    When you need a release out today, pass the flag Flutter names in the error:

    flutter build apk --release --android-skip-build-dependency-validation
    flutter build appbundle --release --android-skip-build-dependency-validation

    The check only compares version numbers; Gradle still has to build your project. For our test app (plugin 9.1.0, Flutter 3.50.0) that worked: the same code built and signed a release APK with the flag. Still make fix 1 when you can: the flag turns the check off, it doesn’t change what the check is about, and a later Flutter can need something only newer plugin versions have.

    Fix 3: pin Flutter in CI until you have upgraded

    If your workflow uses subosito/flutter-action, a fixed version keeps every run on the Flutter you tested with. 3.47.9 was the last stable release before 3.50:

    - uses: subosito/flutter-action@v2
      with:
        channel: stable
        flutter-version: 3.47.9

    The cost is that you now upgrade Flutter by hand. It is a good way to stop a broken pipeline while you test fix 1, and a poor place to stay.

    How Corenna handles it

    Corenna builds Flutter apps on GitHub Actions in your own repo, with the newest stable Flutter. Since November 14, 2026, its Android builds pass --android-skip-build-dependency-validation whenever the installed Flutter accepts the flag, so a repo that pins 9.1.0 builds on Flutter 3.50 without a change to your android/ folder. Corenna doesn’t change the Gradle files in your repo (the signing settings it needs are added on the build machine only), so raising the plugin version stays your call.

    Our test app’s first build on Flutter 3.50 is public: the GitHub Actions run and the repo. Building your Android app is free. Downloading it needs a plan: $1 for your first month.

    Keep reading