close

[Solved] Flutter run error: You have not accepted the license agreements

Hello Guys How are you all? Hope You all are fine. When I Run flutter app I got a Flutter run error: You have not accepted the license agreements in a flutter. So today Here I come with all possible solutions for this error.

We are providing you all possible solutions to solve this error. let’s start this article without wasting your time.

How Flutter run error: You have not accepted the license agreements Error Occurs ?

When I Run the flutter app I got a Flutter run error: You have not accepted the license agreements in a flutter. here is an error.

  • What went wrong: A problem occurred configuring project ‘:shared_preferences’.
    You have not accepted the license agreements of the following SDK components: [Android SDK Platform 27].

Here is my flutter doctor output.

How to Solve Flutter run error: You have not accepted the license agreements Error?

Question: How to Solve Flutter run error: You have not accepted the license agreements Error?
Answer: To solve this error you just have to accept an android license. Just apply all the below commands. Open your terminal type flutter doctor –android-licenses press y to accept every license. If You are facing a java error then just read our article flutter doctor –android-licenses gives a java error.

Solution 1

You have to accept an android license. Just apply all the below commands.

  1. Open your terminal
  2. type flutter doctor --android-licenses
  3. press y to accept every license.

If You are facing java error then just read our article flutter doctor –android-licenses gives a java error

If you face above error then just follow below step.

Just Install Android SDK Command-line tools from Android SDK Manager is solved my error. This solution is worked for me.

  1. Open Tools > SDK Manager
  2. From the left choose, Appearance & Behavior > System Settings > Android SDK
  3. Select SDK Tools from the top menu
  4. Check Android SDK Command-line tools and click ‘apply’.
Flutter run error: You have not accepted the license agreements,
You have not accepted the license agreements,
accepted the license agreements error,
Flutter run error: You have not accepted the license,
accepted the license agreements

After Android Studio completed the installation, you can accept the licenses as expected:

After choosing “yes” for all licenses, the android licenses are accepted. To confirm:

Solution 2

If you are in windows open command prompt as admin and run the following command.

Then enter y for all (y/n) to accept agreement.

Solution 3

First make sure Android SDK is installed on your device. Also see if 2 Android SDK’s are not Installed!

Then just simply type on Terminal or CMD flutter doctor --android-licenses Then press y until it acquires all permissions.

Summery

So, It’s All About Flutter run error: You have not accepted the license agreements Error. I hope this tutorial helps you to solve your error. Please Comment Below if You stucks anywhere with my code.

Also Check Out Below Tutorials

Leave a Comment

%d bloggers like this: