Reputation: 365
Hi guys i have problem with android-SDK when i type on console "Flutter doctor" before show me this:
[√] Flutter (Channel stable, 2.2.1, on Microsoft Windows [Version 10.0.18363.1500],
locale pl-PL)
[X] Android toolchain - develop for Android devices
X Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.dev/docs/get-started/install/windows#android-setup
for detailed instructions).
If the Android SDK has been installed to a custom location, please use
`flutter config --android-sdk` to update to that location.
[√] Chrome - develop for the web
[√] Android Studio
[√] Connected device (1 available)
I checked if the platform-tools and I think I have everything I need for the installation
MY platform-tools screen
MY SDK FOLDER enter image description here
Upvotes: 4
Views: 45473
Reputation: 947
I have fixed this by installing the java. Follow the below steps.
flutter doctor
command.flutter doctor --android-licenses
Enjoy coding...
Upvotes: 0
Reputation: 3028
I managed to solve the problem by doing this: Open Android studio, then go to
After that, ran flutter doctor and if it shows that you have a problem with missing licenses, run the command it provides to fix it.
Upvotes: 1
Reputation: 180
This error means your "Android SDK Command-line Tools are missing"
IT WILL START DOWNLOADING the missing component
Upvotes: 18
Reputation: 96
X Unable to locate Android SDK.
Add the location of the Android SDK in "Environment Variables In Windows 10"
https://programsbuzz.com/article/how-set-android-environment-variable-path-windows-10
Upvotes: 0
Reputation: 64
Try running this command it works for me.I hope this will work for you as well.
flutter doctor --android-licenses
Upvotes: 5