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:
- 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.
- 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
- First create a new environment variable called
ANDROID_HOME
- For me, who has installed Android Studio, the path was
C:\Users\Tim\AppData\Local\Android\sdk
or%LOCALAPPDATA%\Android\sdk
. - Then you need to add
tools
andplatform-tools
to yourPath
variable - Use you
%ANDROID_HOME%
variable to make it dynamic.

Solution 3 : Download Android SDK in android studio
- Open Android Studio.
- Go to File -> Project Structure OR Ctrl + Alt + Shift + S
- Then choose SDK platform.
- If there are download option then just download it.

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
- error: Struct ‘Utf8’ is empty. Support for empty structs is deprecated… Use Opaque instead in flutter
- Error: Only static members can be accessed in initializers
- AnimationController The named parameter ‘vsync’ isn’t defined
- Flutter App stuck at “Running Gradle task ‘assembleDebug’… ”
- Error: No named parameter with the name ‘keyboardDismissBehavior’
Leave a Reply