How to fix "Android license status unknown" in flutter
Install
Android SDK Command-line Tools
on android studio using the SDK managerRun
flutter doctor --android-licenses
I solved this problem by installing the command line tool.
And then rerun
flutter doctor --android-licenses
I have followed these steps. It worked for me.
went to Environment variables and added
ANDROID_HOME
with a variable value of:C:\Users\%username%\AppData\Local\Android\Sdk
then my
JAVA_HOME
with this variable value:C:\Program Files\Android\Android Studio\jre
then my Path with this variable value:
C:\Users\%username%\flutter\bin
then I ran the following command
flutter doctor
Got the output of Doctor summary (to see all details, run
flutter doctor -v
):[√] Flutter (Channel beta, v0.2.3, on Microsoft Windows [Version 10.0.16299.309], locale en-US) [!] Android toolchain - develop for Android devices (Android SDK 27.0.3) ! Some Android licenses not accepted. To resolve this, run: flutter doctor -- android-licenses [√] Android Studio (version 3.1) [√] Connected devices (1 available) ! Doctor found issues in 1 category.
- Then I ran
and accepted all Terms & Conditions with (y)flutter doctor --android-licenses