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:
how can I accept the android licenses ?
CodePudding user response:
Install the Android SDK
- Click Tools in android-studio, SDK Manager.
- In the SDK Platforms tab, select Android 12.
- In the SDK Tools tab, select Android SDK Build-Tools 31.
- 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:
- Open Android Studio
- SDK Manager
- install android-licenses open cmd run flutter doctor --android-licenses then y enter y enter....