alexcmgit

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:

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

  1. Open Android Studio
  2. File → Settings
  3. 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

  1. Open Android Studio
  2. File → Settings
  3. 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.

Other posts

you reached the end
CC BY-NC-SA 4.0 v35865c4 2021-2026 @alexcmgit