To add platform-tools to your system path, follow these steps:
Finding the SDK Location
First, you need to locate the Android SDK. In Android Studio, navigate to Settings > Languages & Frameworks > Android SDK. The path will be displayed next to Android SDK Location.
<ContentSpotlight
alt=»Android SDK location in Android Studio Settings.»
src=»/static/images/android-studio/windows-android-sdk-location.png»
className=»max-w-[400px]»
/>
Verifying Environment Variables
To ensure that the new environment variable is loaded, open PowerShell and run the following command:
<Terminal cmd={[‘$ Get-ChildItem -Path Env: ‘]} />
This command will list all user environment variables. Check if ANDROID_HOME
is included in this list.
Adding Platform-Tools to the Path
Next, to add platform-tools to the Path, follow these steps:
- Open Windows Control Panel.
- Navigate to User Accounts > User Accounts (again) > Change my environment variables.
- In the Path variable, click Edit > New and add the path to the platform-tools. The default installation path is:
%LOCALAPPDATA%\Android\Sdk\platform-tools
<ContentSpotlight
alt=»Setting up platform-tools user variable.»
src=»/static/images/android-studio/windows-platform-tools-path.png»
className=»max-w-[480px]»
/>
Configuring Environment Variables on macOS or Linux
If you are using macOS or Linux, you need to set an environment variable pointing to the Android SDK location. Open your terminal and edit your ~/.bash_profile or ~/.zshrc file, adding the following lines:
<Terminal
cmd={[
‘$ export ANDROID_HOME=/your/path/here’,
‘$ export PATH=$PATH:$ANDROID_HOME/emulator’,
‘$ export PATH=$PATH:$ANDROID_HOME/platform-tools’
]}
cmdCopy=»export ANDROID_HOME=/your/path/here && export PATH=$PATH:$ANDROID_HOME/emulator && export PATH=$PATH:$ANDROID_HOME/platform-tools»
/>
Reloading the Shell
After updating your configuration file, reload the path environment variables in your current shell:
<Terminal
cmd={[‘# for zsh’, ‘$ source $HOME/.zshrc’, », ‘# for bash’, ‘$ source $HOME/.bashrc’]}/>
Testing the Setup
Finally, ensure that you can run adb
from your terminal. This confirms that platform-tools have been successfully added to your system path.

The Android Software Development Kit (SDK) is a collection of developments using which you can develop apps to be used on the Android platform. You need to install this tool on your computer to do advanced things like rooting your phone or updating the software. However, what happens if you can’t locate the Android SDK folder?
If you’re into tech and writing apps, this is an issue you might have experienced at some point in time. Fortunately, you can locate this tool by following the steps detailed below and finding the exact location of the Android SDK folder.
You’ll also be taken through some of the most frequently asked questions related to the Android SDK folder. Let’s jump ahead and get right ahead and see where you can find the SDK folder.
- Method #1: Open the Run Window
- Method #2: Use Android Studio
- Summary
- Frequently Asked Questions
Method #1: Open the Run Window
The easiest way to locate the Android SDK folder in Windows is by opening the Run window, and here are the steps to follow:
- Click
Windows key + R
. - Paste
%localappdata%\Android\Sdk
, which is Android SDK’s default location in Windows. - Press “OK”.
Doing this will immediately take you to the location of the Android SDK folder on your Windows computer. The %localappdata%\Android\Sdk
used to help you find the Android SDK folder is a Windows environment variable in your user directory plotted on the Local App Data folder (C:\Users\Username\AppData\Local
).
Method #2: Use Android Studio
Another method of locating the SDK folder is by using Android Studio. The steps you should follow to pinpoint this folder’s exact location are;
- Launch Android Studio by double-clicking on its desktop icon or entering Android Studio in the Start menu.
- Once Android Studio is open, tap on the “Configure” button.
- Click on the “SDK Manager” option.
- When inside the Android IDE, click on the “File” > “Settings” option, after which Android Studio will launch the Settings window.
- The precise location of the Android SDK location will appear on the “Android SDK Location” field.
- If you still don’t see the Android SDK folder, go to “Appearance & Behavior” > “System Settings” > “Android SDK” page.
- Double-click on the location after locating the Android SDK location and press the
Ctrl + C
shortcut.
After following these simple steps, you’ll locate the precise location of the SDK folder in your Android Studio. Therefore, you can manage it by updating parts of the SDK if updates are available by installing new APIs or SDK tools.
Summary
For many, finding the precise location of the Android SDK folder might appear to be quite complicated. However, this isn’t the case, as you can easily locate the Android SDK folder regardless of where it is on your computer.
This guide has better illustrated this by taking you through the steps you need to follow to pinpoint where the Android SDK folder’s location. After this, you can proceed to use ADB commands or other Android platform tools you can find on the command line. But without knowing where the Android SDK folder is located, you can’t perform this ADB command.
Frequently Asked Questions
Yes, Android SDK can be found integrated into Android Studio, the integrated development environment (IDE) authorized by Google.
The Android SDK path is C: Users<username>AppDataLocalAndroidsdk. You can find this path by opening the Android SDK manager, after which you’ll see the SDK path evidently on your status bar. Remember not to use the Program Files path when installing the Android Studio because of the space in this path.
Хотел посмотреть пример с github.com через file-import samples в Android Studio. И тут программа начала ругаться на то что путь к sdk не указан. Да я могу укзаать на свой старый sdk, но там нет нужного API, а скачивать через 32 кб/с модем долговато.
(Саму студию качал три дня)
Где по дефолту хранится sdk?
-
Вопрос задан
-
20195 просмотров
Пригласить эксперта
если не ошибаюсь, AppData/Local/Android
для проекта sdk можно посмотреть File -> Project Structure -> SDK Location
А по умолчанию в Android Studio в sdk api не подгружены
Windows:
C:\Users\user\AppData\Local\Android\Sdk
или:
%LOCALAPPDATA%\Android\sdk
Для Linux: ~/Android/Sdk
Для Mac: ~/Library/Android/sdk
Войдите, чтобы написать ответ
-
Показать ещё
Загружается…
Минуточку внимания
After you installed android studio, you still need to configure some android SDK environment variables then you can use them easily. This article will tell you how to correctly configure Android SDK environment variables such as ANDROID_HOME, PATH on both Windows and macOS.
1. Configure Android SDK Variable In Windows.
1.1 Get Android SDK Install Directory Path.
- Before you can configure it, you should first get the android SDK install directory following the steps below.
- Open android studio, click File —> Settings menu item in the top menu bar.
- Expand Appearance & Behavior —> System Settings —> Android SDK menu item on the left side of the popup window. Then you can find the Android SDK Location directory path on the right side ( in this example, the Android SDK location path is C:\Users\Jerry\AppData\Local\Android\Sdk ), remember it.
1.2 Set %ANDROID_HOME% and %Path% System Environment Variable.
- Right-click the computer icon in Windows file explorer left side, click Properties menu item in the popup menu list. This will open the windows system configuration window.
- Click the Advanced system settings link on the left panel, it will popup the System Properties window, click the Environment Variables button to open the Environment Variables window.
- Click the New… button to add a new system variable, input ANDROID_HOME as the variable name, and input the Android SDK location directory path ( such as C:\Users\Administrator\AppData\Local\Android\Sdk ) as the variable value.
- Select variable Path and click Edit button and add ;%ANDROID_HOME%\tools;%ANDROID_HOME%\tools\bin;%ANDROID_HOME%\platform-tools at the end of its value. Please note the ; must be English character otherwise, it will not take effect.
- Click OK to close the system environment variables settings window, open a dos window, type command adb in it. If you see output like below that means the android SDK path variable has been configured successfully.
C:\Users\Administrator>adb Android Debug Bridge version 1.0.39 Version 0.0.1-4500957 Installed as C:\Users\Administrator\AppData\Local\Android\Sdk\platform-tools\adb .exe
2. Configure Android SDK Variable In macOS.
- Open Android Studio on macOS, then click Android Studio —> Preferences menu item at the left top toolbar.
- Input search keyword sdk in the search box of the popup Preferences dialog window left side.
- It will focus on the Android SDK menu item on the left side, and you can get the Android SDK Location directory path value on the right side Android SDK Location text box.
- Generally, the Android SDK is installed in the /Users/user-name/Library/Android/sdk folder on macOS.
- If you can not find the above folder in macOS finder or terminal, this is because the Library folder is a hidden folder by default, you should make the hidden folder visible by executing the command
$ defaults write com.apple.finder AppleShowAllFiles TRUE
in a macOS terminal window ( please read article How To Show Hidden Files In Mac OS Finder And Select Hidden Files In Html Upload File Form ). - You can also see the hidden Library folder by opening a macOS Finder window, then click Go —> Go to Folder… menu item, and input ~/Library in the popup dialog input text box, then click Go button.
- This is also another method to show the hidden Library folder, open a macOS Finder window, click Go —> Home menu item. Right-click the home folder, then click the Show View Options menu item in the popup menu list. Check the Show Library Folder checkbox.
- Use nano to create or edit user bash profile in user home directory.
$ nano .bash_profile.
- Add ANDROID_HOME and PATH environment variable in user bash profile.
export ANDROID_HOME=/Users/Jerry/Library/Android/sdk export PATH=$PATH:$ANDROID_HOME/tools export PATH=$PATH:$ANDROID_HOME/tools/bin export PATH=$PATH/:$ANDROID_HOME/platform-tools
- Make the added system environment take effect.
$ source .bash_profile
- Now open a terminal and run adb, you should also see something output like in windows.
3. How To Download And Install Android SDK Command Line Tool Manually.
- If you do not need Android Studio, and you just want to use android SDK command-line tools only, it is very easy also.
- Go to the android SDK command-line tools download page and download the related zip files.
- Unzip the zip file to a local folder for example C:\android-sdk.
- Now when you start the Android Studio for the next time, it will let you select the android SDK location folder, just select the above folder.
- You can also change the android SDK location folder in the Android Studio Settings dialog.
- For Windows, start Android Studio, then click File —> Settings menu item.
- For macOS, start Android Studio, then click Android Studio —> Preferences menu item.
- Select Appearance & Behavior —> System Settings —> Android SDK menu item in the popup window left side.
- On the window right side, click the Edit link after the Android SDK Location text box, it will open the SDK Setup dialog.
- At the bottom of the SDK Setup dialog, there is an Android SDK Location text box, you can browse the new Android SDK folder to use it.
Don’t know where the Android SDK folder is in Windows? Here are simple steps to find the Android SDK folder location no matter where it is in your system.
When you install Android Studio, it automatically installs the Android SDK so that you can develop and run apps directly on your computer. By default, in Windows, Google installs the Android SDK folder in the User directory. However, that might not be the case at all times. For example, if you install the Android Studio in some other directory, then the Android SDK location will be different. This is also true if you are using a portable version of Android Studio.
If you want to use ADB commands or any other Android platform-tools from the command line, you need to know the Android SDK platform. For example, recently I wanted to install an APK file in the emulator with an ADB command. To do that, I needed to know the Android SDK location in Windows. Without knowing the exact location, I could not execute the ADB command.
The good thing is, it is pretty easy to locate where the Android SDK folder is.
In this quick and straightforward guide, let me show you the steps to find the Android SDK folder location no matter where it is.
Android SDK folder location in Windows
The default Android SDK location in Windows is “%localappdata%\Android\Sdk“. Just open the Run window (Windows key + R), paste the given path, and click “Ok”. This will open the Android SDK folder instantly.
In case you are wondering, %localappdata% is a Windows environment variable mapped to the Local App Data folder (C:\Users\Username\AppData\Local) in your user directory.
Find SDK location in Android Studio
The SDK Manager in Android Studio gives you the exact location of the SDK folder. Here’s how you can open the SDK Manager to find the location.
1. First, open the Android Studio. If you are using Windows, you can search for “Android Studio” in the Start menu or double-click on the desktop icon.
2. After opening the Android Studio, click on the “Configure” button and select the “SDK Manager” option. If you are inside the Android IDE, select the “File → Settings” option.
3. As soon as you click on the option, Android Studio will open the Settings window. Here, you will see the Android SDK location on the right panel in the “Android SDK Location” field. If you are not seeing it, make you are on the “Appearance & behavior → System settings → Android SDK” page.
Once you found the location, you can copy it by double-clicking on the location and pressing the “Ctrl + C” shortcut.
That is all. It is that simple to find the SDK location in Android Studio. The good thing about this method is that it allows you to manage the SDK to install new APIs, SDK tools, and even update sections of SDK as and when the updates are available. If you don’t need a specific API, you can simply uninstall it by unchecking it in the SDK manager.
I hope that helps. If you need any help, comment below and I will try to help as much as possible.