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

failed to install the following android sdk packages as some licences have not been accepted solved

Table Of Contents

  • 1:18 min

  • 0 comments
  • 23 Jun 2024
  • Mark Swist

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:srcflutterflutterbin

 

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.

 

Share this post:

03

Dec

Why-Businesses-Fail-to-Drive-Traffic-Online

Driving online traffic is one of the most critical aspects of business marketing today. Yet, many businesses struggle to get the results they need, wasting…

23

Jun

Are Facebook and Adwords high bid or high relevance algorithms

Are Facebook and Adwords High Bid or High Relevance Algorithms? Based on how much they charge, you’d think it’s high bid. The number one priority…

23

Jun

My goal this year is to write more. In doing so, I figured the best thing I can do is to start writing simple things…

Leave the first comment