Android license status unknown / licenses not accepted Flutter / Dart Origin: On your device Last updated 4 Nov 2026

flutter doctor: Android license status unknown. Run `flutter doctor --android-licenses` to accept the SDK licenses

The Android SDK licenses have not been accepted, so builds cannot download or use SDK components.

Exact message you may see Android license status unknownRun `flutter doctor --android-licenses` to accept the SDK licensesSome Android licenses not accepted[!] Android toolchain - develop for Android devicesYou have not accepted the license agreements of the following SDK components
Seen on: Flutter Android

Meaning

Run flutter doctor --android-licenses and answer y to each. If it fails, the command-line tools or a compatible Java version are missing; install "Android SDK Command-line Tools (latest)" in Android Studio's SDK Manager and set JAVA_HOME to JDK 17.

Common causes

  • Licenses never accepted on this machine
  • cmdline-tools component missing
  • Wrong Java version for sdkmanager
  • ANDROID_HOME/ANDROID_SDK_ROOT not set
  • SDK installed under another user

⚡ Quick fix

  1. Install cmdline-tools in the SDK Manager
  2. Run flutter doctor --android-licenses and accept all
  3. Set JAVA_HOME to JDK 17

Detailed fix by platform

Flutter

  1. flutter doctor --android-licenses && flutter doctor -v

How to diagnose

  1. Tools — cmdline-tools installed?
  2. Java — Version 17?
  3. Path — ANDROID_HOME set?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: On your device. Errors that are often confused with or caused by this one (click to open):

A Ticker was active when the State was disposed — Flutter: _HomeState#abc(ticker active) was disposed with an active Ticker. State.dispose() implementations must call dispose() on all their AnimationControllers (Flutter / Dart)A Ticker was active w…A Timer is still pending even after the widget tree was disposed — Flutter test: A Timer is still pending even after the widget tree was disposed (Flutter / Dart)A Timer is still pend…adb server version doesn't match — adb server version (41) doesn't match this client (39); killing... (Android)adb server version do…BoxConstraints forces an infinite width — Flutter: BoxConstraints forces an infinite width. These invalid constraints were provided to RenderStack's layout() function (TextField in a Row) (Flutter / Dart)BoxConstraints forces…Cleartext HTTP traffic not permitted — Flutter (Android): java.io.IOException: Cleartext HTTP traffic to api.example.com not permitted (Flutter / Dart)Cleartext HTTP traffi…cmdline-tools component is missing — flutter doctor: Android SDK is missing command-line tools; download from https://goo.gl/XxQghQ — cmdline-tools component is missing (Flutter / Dart)cmdline-tools compone…CocoaPods: pod install failed / not installed — Flutter iOS: Error running pod install — CocoaPods not installed or out of date / [!] CocoaPods could not find compatible versions for pod (Flutter / Dart)CocoaPods: pod instal…Default FirebaseApp is not initialized — IllegalStateException: Default FirebaseApp is not initialized in this process (Android)Default FirebaseApp i…Android l…

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.