Android SDK location
Do you have a screen of the content of your folder? This is my setup:
I hope these screenshots can help you out.
Where is the Android SDK folder located?
You can find the path in the Android SDK Manager.
On the top it lists the path, the default path in Windows is
C:\Users\%USERNAME%\AppData\Local\Android\sdk
and on Linux
/home/YourName/Android/Sdk/
Android Studio SDK location
Download the SDK from here: http://developer.android.com/sdk/ to C:\android-sdk\.
Then when you launch Android Studio again, it will prompt you for the SDK path just point it to: C:\android-sdk\.
Update: new download location, https://developer.android.com/studio/#command-tools
What is the default Android SDK path used by Android Studio?
From searching in the web it seems to be:
- Linux:
~/Android/Sdk
- Mac:
~/Library/Android/sdk
- Windows:
%LOCALAPPDATA%\Android\sdk
I find it odd to have inconsistent paths and even the lower/upper case for Linux and Mac ("Sdk" vs "sdk"), but it seems to be this way...
Flutter does not find android sdk
Flutter provides a command to update the Android SDK path:
Use :
flutter config --android-sdk <path-to-your-android-sdk-path>
Finding Android SDK on Mac and adding to PATH
1. How to find it
- Open Android studio, go to Android Studio > Preferences
- Search for
sdk
- Something similar to this (this is a Windows box as you can see) will show
You can see the location there – most of the time it is:
/Users/<name>/Library/Android/sdk
2. How to install it, if not there
- Go to Android standalone SDK download page
- Download the zip file for macOS
- Extract it to a directory
3. How to add it to the path
Open your Terminal edit your ~/.bash_profile
file in nano by typing:
nano ~/.bash_profile
If you use Zsh, edit ~/.zshrc
instead.
Go to the end of the file and add the directory path to your $PATH
:
export PATH="${HOME}/Library/Android/sdk/tools:${HOME}/Library/Android/sdk/platform-tools:${PATH}"
- Save it by pressing
Ctrl+X
- Restart the Terminal
- To see if it is working or not, type in the name of any file or binary which are inside the directories that you've added (e.g.
adb
) and verify it is opened/executed
Your SDK location contains non-ASCII characters - no Android in Tools Menu
As a matter of fact at the moment there is no other way than to re-install Android Studio to some other directory with no non-ASCII characters and blank spaces, like С:\Android\SDK
Android SDK location should not contain whitespace, as this cause problems with NDK tools
As the warning message states, the SDK location should not contain whitespace.
Your SDK is at C:\Users\Giacomo B\AppData\Local\Android\sdk
. There is a whitespace character in Giacomo B
.
The easiest solution is to move the SDK somewhere else, where there is no space or other whitespace character in the path, such as C:\Android\sdk
. You can point both Android Studio installations to the new location.
Android SDK Ubuntu default path
The Path will be like,
Linux /home/AccountName/Android/Sdk
- For Linux: ~/Android/Sdk
- For Mac: ~/Library/Android/sdk
- For Windows: %LOCALAPPDATA%\Android\sdk
Related Topics
How to Implement Drag and Drop in Android 2.2
Difference Between Android-Support-V7-Appcompat and Android-Support-V4
Disconnect a Bluetooth Socket in Android
How to Use Getsharedpreferences in Android
Android Material: Status Bar Color Won't Change
How to Access Fragment's Child Views Inside Fragment's Parent Activity
Launch Skype from an App Programmatically & Pass Number - Android
Handle Button Click Inside a Row in Recyclerview
How to Get Response as String Using Retrofit Without Using Gson or Any Other Library in Android
Android, How to Not Destroy the Activity When I Rotate the Device
Refresh Fragment UI from Fragmentactivity
How to Export Library to Jar in Android Studio
Android, Make an Image at a Url Equal to Imageview's Image
Causing Outofmemoryerror in Frame by Frame Animation in Android
How to Limit the Height of Spinner Drop Down View in Android
How to Change the Size of a Switch Widget