Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to accept Android licenses

Tags:

flutter

Android toolchain - develop for Android devices (Android SDK 26.0.2) ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses

It gives error reading dependency file and then flutter crashes. Is it something to do with dart to or am i missing something here?

like image 335
Sachihiro Avatar asked Jun 05 '18 18:06

Sachihiro


People also ask

How do I agree to Android licenses?

Open a terminal 2. Write: "cd $ANDROID_HOME/tools/bin (this path can be /home/your-user/Android/Sdk/tools/bin)" 3. Write: "./sdkmanager --licenses" 4. To accept All licenses listed, write: "y" 5.

How do I accept flutters licenses?

After Installing SDK Command line tool just run flutter doctor –android-licenses command in terminal: flutter doctor –android-licenses and type Y when needed to accept the licenses. That's It.

How do I fix Android SDK is missing or corrupted?

Quick fix: Go to the Tools –> SDK manager –> SDK tools. Deselect Hide obsolete packages option on the right bottom and further install Android SDK Tools(obsolete).


2 Answers

As it says in the message:

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

like image 94
Pacane Avatar answered Sep 25 '22 13:09

Pacane


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
like image 35
DomingoMG Avatar answered Sep 26 '22 13:09

DomingoMG