FLUTTER DOCTOR [X] Android toolchain

Viewed 12097

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

enter image description here

enter image description here

MY SDK FOLDER enter image description here

3 Answers

This error means your "Android SDK Command-line Tools are missing"

  1. Open Android Studio
  2. In the Menu bar , click Tools(4th last)
  3. choose SDK Tools panel
  4. Tick Android SDK Command-line Tools
  5. Click Apply at bottom of the window

IT WILL START DOWNLOADING the missing component

Try running this command it works for me.I hope this will work for you as well.

flutter doctor --android-licenses
Related