close
Unable to locate android SDK flutter, unable to locate android sdk, locate android sdk flutter, locate android sdk, android sdk flutter

[Solved] Unable to locate android SDK flutter

Hello Guys How are you all? Hope You all are fine. I Just installed flutter SDK and android studio on my windows machine. When I run the flutter doctor command it gives me the following error in my terminal. Unable to locate android SDK flutter. So today Here I come with all possible solutions for this error.

We are providing you all possible solutions to solve this error. let’s start this article without wasting your time.

How Unable to locate android SDK flutter Occurs ?

I Just installed flutter SDK and android studio on my windows machine. When I run the flutter doctor command it gives me the following error in my terminal. Unable to locate android SDK flutter.

[✗] Android toolchain - develop for Android devices
    ✗ 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.io/setup/#android-setup for detailed instructions).
      If Android SDK has been installed to a custom location, set $ANDROID_HOME to that location.

How to Solve Unable to locate android SDK flutter?

Question:
Answer:

  1. How to Solve Unable to locate android SDK flutter?

    To solve Unable to locate android SDK flutter issue just give Android SDK that path to flutter config. In your terminal run both commands. flutter config –android-sdk /path/to/android/sdk. Or Set ANDROID_HOME Path. First, create a new environment variable called ANDROID_HOME.

  2. Unable to locate android SDK flutter

    To solve Unable to locate android SDK flutter issue just give Android SDK that path to flutter config. In your terminal run both commands. flutter config –android-sdk /path/to/android/sdk. Or Set ANDROID_HOME Path. First, create a new environment variable called ANDROID_HOME.

Solution 1 : Flutter Config

Your Problem Is very Clear. Flutter cant find Android SDK PATH that’s why you are facing this problem.

If you have already Downloaded Android SDK then just give that path to flutter config. In your terminal run both commands

flutter config --android-sdk /path/to/android/sdk

flutter config --android-studio-dir /path/to/android/studio

Solution 2 : Set ANDROID_HOME Path

  1. First create a new environment variable called ANDROID_HOME
  2. For me, who has installed Android Studio, the path was C:\Users\Tim\AppData\Local\Android\sdk or %LOCALAPPDATA%\Android\sdk.
  3. Then you need to add tools and platform-tools to your Path variable
  4. Use you %ANDROID_HOME% variable to make it dynamic.

Solution 3 : Download Android SDK in android studio

  1. Open Android Studio.
  2. Go to File -> Project Structure OR Ctrl + Alt + Shift + S
  3. Then choose SDK platform.
  4. If there are download option then just download it.
Unable to locate android SDK flutter,
unable to locate android sdk,
locate android sdk flutter,
locate android sdk,
android sdk flutter

Summery

So, It’s All About this error. I hope this tutorial helps you to solve your error. Please Comment Below if You stucks anywhere with my code.

Also Check Out Below Tutorials


Posted

in

by

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *