skip to Main Content

hey’ I’m new to flutter and I’ve tried to run it on visual studio code but when I tried to accept the android licenses I got this error: enter image description here

how can I accept the android licenses ?

2

Answers


  1. You have to install the Android SDK

    1. Click Tools in android-studio, SDK Manager.
    2. In the SDK Platforms tab, select API 32.
    3. In the SDK Tools tab, select Android SDK Command-line Tools(latest).
    4. Click Apply and then OK to install the SDK.

    Then install cmd-line tools
    from android-studio -> sdk-manager -> appearence and behaviour -> system settings -> android sdk -> Android SDK command line tools

    To install android-licenses
    run flutter doctor --android-licenses in your terminal

    enter image description here

    Login or Signup to reply.
    1. Open Android Studio
    2. SDK Manager
    3. install android-licenses open cmd run flutter doctor –android-licenses
      then y enter y enter….

    enter image description here

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search