Android Studio SDK Location Not Found
Workaround available Windows, macOS, Linux Updated November 13, 2026Based on 3 user reportsHow we research
Quick answer
'SDK location not found' means the project cannot find the Android SDK folder. Set it in Project Structure or add sdk.dir to local.properties.
Most likely fix: Set the SDK path in Android Studio
How to fix it
Try these in order — the most common fix is first.
1. Set the SDK path in Android Studio
- File > Settings > Appearance & Behavior > System Settings > Android SDK
- Check or change Android SDK Location (on Windows the default is %LOCALAPPDATA%\Android\Sdk)
- Apply, then sync
Did this fix it?2. Fix local.properties
- Open local.properties in the project root (do not commit it)
- Add sdk.dir=/path/to/Sdk; on Windows escape backslashes, for example sdk.dir=C\:\\Users\\you\\AppData\\Local\\Android\\Sdk
- Sync again
Did this fix it?3. Set ANDROID_HOME for CLI builds
- Set the ANDROID_HOME environment variable to your SDK folder
- Restart the terminal and IDE
Did this fix it?4. Install missing SDK components
- Tools > SDK Manager: install the SDK Platform and Build-Tools your project uses (compileSdk)
- Apply and wait for the download to finish
Did this fix it?
Symptoms
Sync or build fails with 'SDK location not found. Define a valid SDK location with an ANDROID_HOME environment variable or by setting the sdk.dir path in your project's local.properties file'.
Why it happens
- local.properties missing or deleted, for example after cloning a repo
- Wrong or old sdk.dir path after moving the SDK or changing computers
- ANDROID_HOME not set when building from the command line
- SDK not installed yet
This guide also covers
- sdk location not found android studio
- android studio sdk.dir local.properties
- android home not set
Still not working?
If Android Studio keeps failing, you're not alone. See every Android Studio problem users report or the alternatives people switch to.
Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.
Talk to usThe same problem in other apps
All not loading, error messages & connection guides →
- IntelliJ IDEA JDK Not Found or Invalid (JetBrains IntelliJ)
- Cursor High Load Error (ERROR_RESOURCE_EXHAUSTED) (Cursor)
Other Android Studio errors
- Android Studio Gradle Sync Failed
- Android Studio Emulator Not Starting
- Android Emulator HAXM / Hypervisor Error (VT-x, WHPX, AEHD)
- Android Studio Emulator Slow or Laggy
- Android Studio Device Offline or Not Detected (ADB)
- Android Studio Slow and Using Too Much RAM
- Android Studio Gradle Build Slow
- Android Studio Build Failed: JDK, Gradle or AGP Version Mismatch