Flutter Run Error:You Have Not Accepted the License Agreements

Flutter doctor --android-licenses not working

Try these steps:

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

original link to the post is here

UPDATED ANSWER to this POST

Installing Android SDK Command-line tools from Android SDK Manager did the job.

  1. Open Android Studio
  2. Tools > SDK Manager
  3. From the left choose, Appearance & Behavior > System Settings > Android SDK Select SDK
  4. Tools from the top menu Check Android SDK Command-line tools and
  5. click 'apply'.

orignal link to the post here

How to accept Android licenses

As it says in the message:

To resolve this, run: flutter doctor --android-licenses

I have updated flutter sdk version to 2.10.0 but in terminal error coming saying : current version is 2.8.0

Check for version file in flutter SDK. Open the flutter SDK folder and open the version file. It use to have a version specified, also check for the flutter version in VS Code at the bottom bar. If both are 2.10.0, then just flutter clean the project and rebuild. IF 2.8.0 is still there, download 2.10.0 zip file and unzip and replace the flutter SDK path.



Related Topics



Leave a reply



Submit