How do you fix "Android license status unknown" in flutter doctor?

← Flutter answers

Run flutter doctor --android-licenses and accept each prompt. If the command fails, install the Android SDK command-line tools and make sure Flutter can find the SDK.

flutter doctor --android-licenses
 
# If it reports missing cmdline-tools or an unknown SDK location:
# 1. Android Studio > Settings > Languages & Frameworks > Android SDK > SDK Tools
#    and install "Android SDK Command-line Tools (latest)"
# 2. Tell Flutter where the SDK lives
flutter config --android-sdk /path/to/Android/sdk
flutter doctor -v

Java problems cause the same message. The licenses tool needs a working JDK, so check that java -version runs and that flutter doctor -v shows the JDK Android Studio uses. After the licenses are accepted, flutter doctor should list the Android toolchain as ready.

Related questions

Start debugging smarter today

Try Bugsee for free — no commitments, no hidden fees.

Free sign upLive demoNo credit card required