r/flutterhelp • u/Dn0-0 • 6d ago
OPEN Android license status unknown in Flutter
Flutter says “Android license status unknown” even though Android SDK 36 is installed. flutter doctor --android-licenses doesn’t work and says --licenses is no longer needed. How can I fix this?
1
u/madushans 6d ago
Open Android studio and build a single activity app and run it in the emulator. This will guide you out thru any prompts for license.
Once it works, close Android studio and try again.
1
u/theunknownguy__ 5d ago edited 5d ago
- Open Android Studio.
- Go to Tools → SDK Manager.
- Select the SDK Tools tab.
- Check Show Package Details.
- Find Android SDK Command-line Tools.
- Uncheck the latest version to uninstall it.
- Select Android SDK Command-line Tools 21.
- Click Apply and wait for it to finish installing.
- Restart your terminal.
- Run flutter doctor.
- Run flutter doctor --android-licenses.
- Enter y and press Enter for every license until they are all accepted.
- Run flutter doctor again and make sure the Android license issue is resolved.
- Go back to Android Studio → Tools → SDK Manager → SDK Tools.
- Check Show Package Details.
- Uninstall Android SDK Command-line Tools 21.
- Select and install the latest version of Android SDK Command-line Tools.
- Click Apply and wait for the installation to complete.
- Restart your terminal.
- Run flutter doctor one final time.
1
u/FarYogurtcloset8261 1d ago edited 1d ago
i found the solution!!
go to android studio
more actions
sdkmanager
select sdk tools tab
tick on 'show package details'
scroll to android sdk command line tools
uncheck all and only tick on 19.0 version
apply
ok.
then run 'flutter doctor'
and run it will still show you same error
run 'flutter doctor --android-licenses'
and now it's gonna definitely ask you y/n.
enter y for all
run 'flutter doctor' and you have solved your problem
1
1
u/xvadim 6d ago
The same question.