Solved Failed To Install The Following Android SDK Packages As Some Licenses Have Not Been Accepted

Flutter Android Studio

Solved Failed to install the following android SDK packages as some licenses have not been accepted

You just started using flutter with android studio and you get the error Failed to install the following Android SDK packages as some licenses have not been accepted.

More than likely you are first running the test flutter_app on windows to make sure everything is working so you can start developing your android app with flutter.

Don’t worry I have the quickest solution for you! Follow me…

Okay, this is really simple.

First, open a command prompt.

Click Start, then type cmd.

We need to change the directory to the Flutterbin directory.

The Suggested setup is C:srcflutterflutterbinSolved Failed to install the following android SDK packages as some licenses have not been accepted

Change the directory to where you installed your flutter installation

use “cd C:srcflutterflutterbin”

Now, we just need to run the flutter doctor.

“flutter doctor -h” so you can see all the commands here.

flutter doctor will help you get everything installed correctly but all we need to do is run the command to solve the issue:

“flutter doctor –android-licenses”

Solved Failed to install the following android SDK packages as some licenses have not been accepted

This runs the android SDK manager tool to accept the SDK licenses.

Yours will ask you to accept the licenses.

Press “y” enter as many times as you need.

Now run “flutter doctor” and you should have all the checkmarks.

That should solve your issue with failure to install the following android SDK packages and some licenses have not been accepted.

Make sure you run your test flutter app to make sure everything is working properly.

PHNjcmlwdCB0eXBlPSJhcHBsaWNhdGlvbi9sZCtqc29uIj4KewogICJAY29udGV4dCI6ICJodHRwczovL3NjaGVtYS5vcmciLAogICJAdHlwZSI6ICJWaWRlb09iamVjdCIsCiAgIm5hbWUiOiAiU29sdmVkIEZhaWxlZCBUbyBJbnN0YWxsIFRoZSBGb2xsb3dpbmcgQW5kcm9pZCBTREsgUGFja2FnZXMgQXMgU29tZSBMaWNlbnNlcyBIYXZlIE5vdCBCZWVuIEFjY2VwdGVkIiwKICAiZGVzY3JpcHRpb24iOiAiRmx1dHRlciBBbmRyb2lkIFN0dWRpby4gU29sdmVkIEZhaWxlZCBUbyBJbnN0YWxsIFRoZSBGb2xsb3dpbmcgQW5kcm9pZCBTREsgUGFja2FnZXMgQXMgU29tZSBMaWNlbnNlcyBIYXZlIE5vdCBCZWVuIEFjY2VwdGVkIiwKICAidG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