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)

  1. Open Android Studio
  2. Preferences
  3. Appearance & Behavior → System Settings → Android SDK

At the top you’ll see:

Text
Android SDK Location

Example:

Text
/Users/<your-user>/Library/Android/sdk

That is your SDK path.

Terminal fallback

Try:

Bash
ls ~/Library/Android/sdk

If it exists, that’s it.

Or:

Bash
which adb

Example:

Text
/Users/<your-user>/Library/Android/sdk/platform-tools/adb

Remove /platform-tools/adb.

Windows

Android Studio

  1. Open Android Studio
  2. File → Settings
  3. Appearance & Behavior → System Settings → Android SDK

Typical path:

Text
C:\Users\<your-user>\AppData\Local\Android\Sdk

Quick check

Paste into File Explorer:

Text
%LOCALAPPDATA%\Android\Sdk

If it opens, that’s your SDK.

Or:

where adb

Remove \platform-tools\adb.exe.

Ubuntu

Android Studio

  1. Open Android Studio
  2. File → Settings
  3. Appearance & Behavior → System Settings → Android SDK

Common result:

Text
/home/<your-user>/Android/Sdk

Terminal fallback

Bash
ls ~/Android/Sdk

Or:

Bash
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.