Flutter run error : You have not accepted the license agreements

前端 未结 12 2203
面向向阳花
面向向阳花 2020-12-03 17:04

I\'m developing android and ios app with Google flutter.
when I add a new dependency like shared_preferences to pubspec.yaml and then execute

12条回答
  •  醉话见心
    2020-12-03 17:37

    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.

提交回复
热议问题