Flutter run error : You have not accepted the license agreements

前端 未结 12 2175
面向向阳花
面向向阳花 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:43

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

    flutter doctor --android-licenses
    

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

提交回复
热议问题