How to accept Android licenses

As it says in the message:

To resolve this, run: flutter doctor --android-licenses


In your flutter folder you can find flutter_console.bat.

enter image description here

Open it and write the following:

  • flutter doctor --android-licensesenter image description here

You have to run an elevated command prompt in order to accept the license. Go to the windows start menu, type CMD then right click the Command Prompt and select Run as Administrator. This will start the command line with elevated priviliges.

enter image description here


In my case flutter doctor command didn't help me, Flutter used default project SDK in enter image description here C Drive: C:\Users\PC\AppData\Local\Android\Sdk which is missing licenses folder, But I use different SDK for building application which has licenses folder I copied that to C Drive SDK then the problem has solved then Flutter app got installed in the mobile.

Tags:

Flutter