'Android License issue during Flutter environment set up
I am having a problem while trying to set up the Flutter development environment. These are the steps I have performed:
- I downloaded flutter and extracted the folder to a desired location.
- I updated the environment variable in Path with "C:\flutter\bin" as value.
- I installed Android studio and in the settings tab "SDK Platforms" I installed Android 10,11 and 12; in the SDK Tools tab I installed both "Android SDK Tools" and "Android SDK Command-line Tools (latest)".
- I installed Java 8 and I created the environment variable "JAVA_HOME" giving as path "C:\Program Files\Java\jdk1.8.0_241".
Running the command flutter doctor
in the command prompt I have the results that are shown in the images.
This is the error I get:
Android sdkmanager tool was found, but failed to run (C:\Users\fabbr\AppData\Local\Android\Sdk\cmdline-tools\latest\bin\sdkmanager.bat):
"ProcessException: Parametro non corretto.
Command: C:\Users\fabbr\AppData\Local\Android\Sdk\cmdline-tools\latest\bin\sdkmanager.bat --licenses".
Try re-installing or updating your Android SDK,
visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions.
I searched the internet but, no solution posted worked.
cmd log:
Android Studio setup:
Environment variables paths:
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|