Flutter run error : You have not accepted the license agreements

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

    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

提交回复
热议问题