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?
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.
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.
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).
As it says in the message:
To resolve this, run: flutter doctor --android-licenses
In your flutter folder you can find flutter_console.bat.
Open it and write the following:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With