Flutter run error : You have not accepted the license agreements

混江龙づ霸主 提交于 2019-12-05 02:29:57

try these:

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

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.

For me , flutter doctor --android-licenses didn't work for some reason.

The only cmd that worked & solved it all was this:

(your android_sdk folder exact path)\tools\bin\sdkmanager --licenses

I think is a little late to answer this question, but I think this can be useful for those who are starting in Flutter like me.

In my case (at my machine), I've executed the steps below:

  1. Execute command prompt as administrator;
  2. Run the command flutter doctor --android-licenses and accept all licenses;
  3. Run the command flutter doctor -v to check if the issue was solved;
  4. To make sure that is everything is ok, execute the command prompt as a regular user (your user) and execute flutter doctor -v again

I hope this helps.

Kipngetich Emmanuel R

Open the command prompt then run flutter doctor --android-licenses and accept all the licenses given.

Prince bansal
C:\Users\bansal>flutter doctor --android-licenses

A newer version of the Android SDK is required. To update, run:

D:\android SDK\tools\bin\sdkmanager --update
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!