Flutter run error : You have not accepted the license agreements

前端 未结 12 2129
面向向阳花
面向向阳花 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:19
    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
    
    0 讨论(0)
  • 2020-12-03 17:20

    please to tools-->sdk manager--> install the android os we have select for the emulator. and install

    0 讨论(0)
  • 2020-12-03 17:22

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

    0 讨论(0)
  • 2020-12-03 17:34

    try these:

    1. Open your terminal
    2. type flutter doctor --android-licenses
    3. press y to accept every license.
    0 讨论(0)
  • 2020-12-03 17:35

    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.

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题