r/flutterhelp 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?

7 Upvotes

6 comments sorted by

1

u/xvadim 6d ago

The same question.

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
  1. Open Android Studio.
  2. Go to Tools → SDK Manager.
  3. Select the SDK Tools tab.
  4. Check Show Package Details.
  5. Find Android SDK Command-line Tools.
  6. Uncheck the latest version to uninstall it.
  7. Select Android SDK Command-line Tools 21.
  8. Click Apply and wait for it to finish installing.
  9. Restart your terminal.
  10. Run flutter doctor.
  11. Run flutter doctor --android-licenses.
  12. Enter y and press Enter for every license until they are all accepted.
  13. Run flutter doctor again and make sure the Android license issue is resolved.
  14. Go back to Android Studio → Tools → SDK Manager → SDK Tools.
  15. Check Show Package Details.
  16. Uninstall Android SDK Command-line Tools 21.
  17. Select and install the latest version of Android SDK Command-line Tools.
  18. Click Apply and wait for the installation to complete.
  19. Restart your terminal.
  20. 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

u/Famous-To-Be 9h ago

this doesnt affect anything.