Android license status unknown. Run `flutter doctor --android-licenses` to accept the SDK licenses. See https://flutter.dev/docs/get-started/install/windows#android-setup for more details. flutter installation error code example

Example: flutter doctor --android-licenses java error

Installing Android SDK Command-line tools from Android SDK Manager did the job for me.

Open Tools > SDK Manager
From the left choose, Appearance & Behavior > System Settings > Android SDK
Select SDK Tools from the top menu
Check Android SDK Command-line tools and click 'apply'.

Tags:

Java Example