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:
- The licenses were never accepted. Common on a fresh install or a new SDK folder.
- The Android SDK Command-line Tools package is missing, so there is no
sdkmanagerfor Flutter to ask. This often comes with the messagecmdline-tools component is missing. - Command-line Tools 23.0 changed the license check. From version 23.0,
sdkmanageris deprecated in favour of a newandroidCLI, andsdkmanager --licensesonly prints a notice. Flutter 3.47.1 and earlier read that output, find no license counts and report "unknown", even though builds still work. This is the cause behind most new reports since late August 2026. - Flutter is looking at the wrong SDK or Java. A second SDK folder, a wrong
ANDROID_HOMEor an old JDK can make the check fail.
How to fix Android license status unknown
- Run
flutter doctor --android-licensesand accept every license.
Read each license and typeflutter doctor --android-licensesy. When it ends withAll SDK package licenses accepted., runflutter doctoragain. 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. - Install Android SDK Command-line Tools. Flutter checks licenses through the
sdkmanagertool, 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. Ifflutter doctorsaidcmdline-tools component is missing, this step fixes that message too. - 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:
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:WARNING: The SDK Manager CLI tool (sdkmanager) is deprecated. Android CLI will be used instead. Warning: The --licenses option is no longer needed.flutter channel stable flutter upgrade flutter --version flutter doctor -v - Check that the license files exist. The licenses you accept are stored as files in a
licensesfolder inside your Android SDK. On macOS or Linux you can check with:
On Windows, openls "$ANDROID_HOME/licenses" cat "$ANDROID_HOME/licenses/android-sdk-license"%LOCALAPPDATA%\Android\Sdk\licensesin File Explorer. You should seeandroid-sdk-licensewith 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. - Point Flutter at the right SDK and JDK. Run
flutter doctor -vand read the Android toolchain lines. They show the SDK path,ANDROID_HOMEand the Java binary Flutter uses. If the SDK path is wrong, or you seeUnable 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's troubleshooting page also covers a related failure:flutter config --android-sdk "/path/to/Android/Sdk" flutter config --jdk-dir "/path/to/jdk"flutter doctor --android-licensescrashes withjava.lang.UnsupportedClassVersionErrorbecause an old JDK is installed. If you do not need that JDK, uninstall it and Flutter uses the one inside Android Studio. - 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
- Flutter docs: Troubleshooting installation (Android license status unknown, cmdline-tools missing, Java version)
- Flutter docs: Set up Android development (SDK tools and licenses)
- GitHub flutter/flutter issue 191487: Android license status unknown with Command-line Tools 23.0
- GitHub flutter/flutter pull request 192133: [CP-stable] Fix Android license detection for cmdline-tools 23.0+
- Start Debugging: fixing flutter doctor --android-licenses with cmdline-tools 23 (workarounds)
- Android Developers: sdkmanager
Last checked December 6, 2026. Menu names can differ slightly between Android Studio versions.