can't accept android licenses in flutter

429

Solution 1

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

Solution 2

  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

Share:
429
Lior Madav
Author by

Lior Madav

Updated on January 03, 2023

Comments

  • Lior Madav
    Lior Madav over 1 year

    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 ?

    • Rohith Nambiar
      Rohith Nambiar about 2 years
      Did you install android-studio
    • Lior Madav
      Lior Madav about 2 years
      yes @RohithNambiar
    • Rohith Nambiar
      Rohith Nambiar about 2 years
      did you install android-sdk
    • Lior Madav
      Lior Madav about 2 years
      no, how can I install it? @RohithNambiar
    • Rohith Nambiar
      Rohith Nambiar about 2 years
      Check my answer