Fix Guide

"Android License Status Unknown" in Flutter Doctor: How to Fix It

RS
Raiyan Shahid Building ExamAI, FileForge, CodeCompiler & Party Rush under BrynFlow · Get in touch

Quick fix: "Android license status unknown" usually goes away when you run flutter doctor --android-licenses and type y for each license. If the command prints "The --licenses option is no longer needed", you have Android SDK Command-line Tools 23.0 and an older Flutter: run flutter upgrade (step 3). If it says the command-line tools are missing, install them from the SDK Manager first (step 2).

Type "android license status unknown" into Google and the suggestions add "flutter doctor", "flutter" and "android toolchain". It is one of the most common warnings in Flutter setup, and a change in the Android SDK tools has made it show up again on machines where everything used to be green. The full message looks like this:

[!] Android toolchain - develop for Android devices
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.

The fixes below are ordered from quickest and safest to most involved. Run flutter doctor after each one and stop when the Android toolchain line turns into a green tick.

Why Android license status unknown happens

Flutter's troubleshooting guide says the warning appears when you have not accepted the Android SDK licenses yet, or when flutter doctor cannot find the Android SDK command-line tools it needs to check them. In practice there are four causes:

How to fix Android license status unknown

  1. Run flutter doctor --android-licenses and accept every license.
    flutter doctor --android-licenses
    Read each license and type y. When it ends with All SDK package licenses accepted., run flutter doctor again. This is the fix Flutter's own troubleshooting page gives, and it works when you simply never accepted the licenses, for example on a new laptop.
  2. Install Android SDK Command-line Tools. Flutter checks licenses through the sdkmanager tool, which lives in the Android SDK Command-line Tools package. Android Studio does not always install it. Open Android Studio > Tools > SDK Manager (or More Actions > SDK Manager on the welcome screen), switch to the SDK Tools tab, tick Android SDK Command-line Tools (latest) and click Apply. Then repeat step 1. If flutter doctor said cmdline-tools component is missing, this step fixes that message too.
  3. Upgrade Flutter if you see "The --licenses option is no longer needed". Run step 1 again and read the output. If you see this, you have Command-line Tools 23.0:
    WARNING: The SDK Manager CLI tool (sdkmanager) is deprecated. Android CLI will be used instead.
    Warning: The --licenses option is no longer needed.
    Flutter versions released before the fix cannot parse this output, so they report the status as unknown even when the licenses are accepted. This is tracked in Flutter issue 191487, and the fix was cherry-picked to the 3.47 stable branch in pull request 192133. Upgrade:
    flutter channel stable
    flutter upgrade
    flutter --version
    flutter doctor -v
  4. Check that the license files exist. The licenses you accept are stored as files in a licenses folder inside your Android SDK. On macOS or Linux you can check with:
    ls "$ANDROID_HOME/licenses"
    cat "$ANDROID_HOME/licenses/android-sdk-license"
    On Windows, open %LOCALAPPDATA%\Android\Sdk\licenses in File Explorer. You should see android-sdk-license with a hash inside. If the folder is missing or the file is empty, install or update any package (for example Android SDK Platform-Tools) from the SDK Manager in Android Studio and accept the license dialog there; that writes the files.
  5. Point Flutter at the right SDK and JDK. Run flutter doctor -v and read the Android toolchain lines. They show the SDK path, ANDROID_HOME and the Java binary Flutter uses. If the SDK path is wrong, or you see Unable to locate Android SDK, point Flutter at the right folder; if the Java line shows an old JDK, point it at the JDK bundled with Android Studio:
    flutter config --android-sdk "/path/to/Android/Sdk"
    flutter config --jdk-dir "/path/to/jdk"
    Flutter's troubleshooting page also covers a related failure: flutter doctor --android-licenses crashes with java.lang.UnsupportedClassVersionError because an old JDK is installed. If you do not need that JDK, uninstall it and Flutter uses the one inside Android Studio.
  6. Temporarily pin cmdline-tools 22.0 on an old Flutter version. If a project is stuck on an older Flutter release for now, a community workaround is to go back to Command-line Tools 22.0, which still prints license counts. In the SDK Manager, tick Show Package Details under SDK Tools, install Android SDK Command-line Tools 22.0, move the 23.0 copy out of cmdline-tools/latest, and run step 1 again. An "update all" in the SDK Manager brings 23.0 back, so treat this as temporary and upgrade Flutter as soon as you can.

If nothing works

Copy the full output of flutter doctor -v, including the Flutter version and the Android toolchain section, and search the Flutter issue tracker for your exact message before opening a new issue. Google's sdkmanager documentation explains the command-line tools if you manage the SDK without Android Studio, for example on a CI server.

Once the toolchain is green, the next errors people hit are usually at build time. Our guides to "Gradle task assembleDebug failed" and "Please select Android SDK" cover them. New to Flutter? Start the free Flutter track.

Frequently asked questions

What does Android license status unknown mean in flutter doctor?

It means flutter doctor could not confirm that you accepted the Android SDK licenses. Either you have not accepted them yet, the Android SDK Command-line Tools are missing, or your Flutter version cannot read the output of a newer sdkmanager.

Why does flutter doctor --android-licenses say the --licenses option is no longer needed?

Android SDK Command-line Tools 23.0 deprecated sdkmanager in favour of the new android CLI and no longer lists licenses for --licenses. Flutter versions released before the fix then show the status as unknown. Upgrading Flutter on the stable channel fixes the check.

Can I still build Android apps while the license status is unknown?

Often yes. In the Flutter GitHub report about cmdline-tools 23.0, flutter build apk --debug still succeeded because the licenses were already accepted on disk. The warning is a detection problem in that case, but you should still fix it so that new SDK packages install cleanly.

How do I fix cmdline-tools component is missing?

Open Android Studio, go to Tools > SDK Manager > SDK Tools, tick Android SDK Command-line Tools (latest) and click Apply. Then run flutter doctor --android-licenses.

Do I need to reinstall Android Studio or Flutter?

No. Installing the command-line tools, accepting the licenses and upgrading Flutter fix the problem in almost every case. Reinstalling removes your settings and rarely helps.

Sources

Last checked December 6, 2026. Menu names can differ slightly between Android Studio versions.

Where to go next

Toolchain green? Build your first Flutter app

The free Flutter track takes you from widgets and state to complete apps, step by step.

Start the Flutter Track