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:
Android SDK Location
Example:
/Users/<your-user>/Library/Android/sdk
That is your SDK path.
Terminal fallback
Try:
ls ~/Library/Android/sdk
If it exists, that’s it.
Or:
which adb
Example:
/Users/<your-user>/Library/Android/sdk/platform-tools/adb
Remove /platform-tools/adb.
Windows
Android Studio
- Open Android Studio
- File → Settings
- Appearance & Behavior → System Settings → Android SDK
Typical path:
C:\Users\<your-user>\AppData\Local\Android\Sdk
Quick check
Paste into File Explorer:
%LOCALAPPDATA%\Android\Sdk
If 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:
/home/<your-user>/Android/Sdk
Terminal fallback
ls ~/Android/Sdk
Or:
which adb
That’s all.
This post only helps you locate the Android SDK.
Go back to the environment variables article to finish wiring everything together.









