I try to install Flutter following official doc but when I run flutter doctor I have the following issue (which is my title):
In Android studio I have the following SDK installed:
I checked these links but none helped me:
Someone have an idea ?
Before you can use Flutter, you must agree to the licenses of the Android SDK platform. This step should be done after you have installed the tools listed above. Make sure that you have a version of Java 8 installed and that your JAVA_HOME environment variable is set to the JDK's folder.
Flutter is a mobile app SDK to help developers and designers build modern mobile apps for iOS and Android. Android SDK belongs to "Frameworks (Full Stack)" category of the tech stack, while Flutter can be primarily classified under "Cross-Platform Mobile Development".
If the adb is not present, installing the platform-tools resolves the problem. For this, open Android Studio, click on SDK Manager in the toolbar or click Tools > SDK Manager, click on SDK Tools, then check-mark '✓' Android-SDK Platform-Tools (as shown below).
Open the Preferences window by clicking File > Settings (on Mac, Android Studio > Preferences). In the left panel, click Appearance & Behavior > System Settings > Updates. Be sure that Automatically check for updates is checked, then select a channel from the drop-down list (see figure 1). Click Apply or OK.
I have tried to install all the required versions via SDK Manager but had little luck.
The thing that helped me was installing SDK via command line with sdkmanager
utility.
Running this line fixed all problems:
sdkmanager "platform-tools" "platforms;android-29"
Android Studio SDK Manager
SDK Components Setup
Go to Android Studio SDK Manager, then click on EDIT (as shown in pic above).
Next, tick the API 31 setup to update (as shown in pic above). That's all. Hope it helps^^
Installing Android 10.0(Q) worked for me.
You can find it in SDK Manager -> Android SDK -> SDK platforms
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With