How to Find Your Android SDK Path (macOS, Windows, Ubuntu)
Some tools (Flutter included) need your Android SDK path.
Instead of guessing defaults, it’s better to explicitly locate it on your system.
This post shows the fastest ways on:
- macOS
- Windows
- Ubuntu
macOS
Android Studio (best method)
- Open Android Studio
- Preferences
- Appearance & Behavior → System Settings → Android SDK
At the top you’ll see:
Text
Android SDK LocationExample:
Text
/Users/<your-user>/Library/Android/sdkThat is your SDK path.
Terminal fallback
Try:
Bash
ls ~/Library/Android/sdkIf it exists, that’s it.
Or:
Bash
which adbExample:
Text
/Users/<your-user>/Library/Android/sdk/platform-tools/adbRemove /platform-tools/adb.
Windows
Android Studio
- Open Android Studio
- File → Settings
- Appearance & Behavior → System Settings → Android SDK
Typical path:
Text
C:\Users\<your-user>\AppData\Local\Android\SdkQuick check
Paste into File Explorer:
Text
%LOCALAPPDATA%\Android\SdkIf it opens, that’s your SDK.
Or:
where adb
Remove \platform-tools\adb.exe.
Ubuntu
Android Studio
- Open Android Studio
- File → Settings
- Appearance & Behavior → System Settings → Android SDK
Common result:
Text
/home/<your-user>/Android/SdkTerminal fallback
Bash
ls ~/Android/SdkOr:
Bash
which adbThat’s all.
This post only helps you locate the Android SDK.
Go back to the environment variables article to finish wiring everything together.