Home > OS >  can't accept android licenses in flutter
can't accept android licenses in flutter

Time:02-26

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 ?

CodePudding user response:

Install the Android SDK

  1. Click Tools in android-studio, SDK Manager.
  2. In the SDK Platforms tab, select Android 12.
  3. In the SDK Tools tab, select Android SDK Build-Tools 31.
  4. Click 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

CodePudding user response:

  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

  • Related