How To Install Android SDK Tools On Windows (2024)

It provides all the steps required to install Android Platform Tools and SDK Manager on Windows 10 without using Android Studio.

In this tutorial, we will discuss all the steps required to install Android Platform Tools and SDK Manager on Windows 10. This tutorial provides the steps for Windows 10, though the steps should be the same on other versions of Windows.

This post is useful for the developers using Android Platform Tools and SDK manager without installing Android Studio for the use cases including hybrid app development using Ionic. It also assumes that a valid JAVA_HOME environmentvariable exists pointing to the installation directory of Java.

You can follow How To Install Java 8 On Windows 10, How To Install Java 11 On Windows, How To Install Java 15 On Windows, or How To Install OpenJDK 15 On Windows to install Java on Windows. In case you are interested in developing Android applications using Android Studio, you can also follow How To Install Android Studio On Windows.

Step 1 - Download SDK Tools

Open the download tab of Android Studio and scroll down to the Command line tools only section. This section shows various options to download the SDK tools as shown in Fig 1.

How To Install Android SDK Tools On Windows (1)

Fig 1

Click the first link having the download option for Windows as highlighted in Fig 1. It will ask to accept to terms and conditions as shown in Fig 2.

How To Install Android SDK Tools On Windows (2)

Fig 2

Go through the details, agree on the terms and conditions and click the Download Button to start the download.

Step 2 - Install Command Line Tools

In this step, we will install the Android Command Line Tools on Windows 10. Create the directory android-sdk at your preferred location and extract the content of the downloaded SDK Tools zip to this directory. Make sure that the extracted content is available within the android-sdk directory created by us as shown in Fig 3.

How To Install Android SDK Tools On Windows (3)

Fig 3

Step 3 - Install Platform Tools

In this step, we will install the Android Platform Tools on Windows 10. Follow the same steps similar to Android SDK Tools to install Android Platform Tools using the download link as shown in Fig 4, Fig 5, and Fig 6.

How To Install Android SDK Tools On Windows (4)

Fig 4

How To Install Android SDK Tools On Windows (5)

Fig 5

Step 4 - Configure Environment Variable

Right-click the My Computer or This PC on the desktop and click the Properties Option. Now click the Advanced system settings. It will show the System Properties dialog having Advanced Tab options as shown in Fig 7.

How To Install Android SDK Tools On Windows (7)

Fig 7

Click the Environment Variables Button and click the New Button in the first section. Set the Variable Name field to ANDROID_HOME and Variable Value to the android-sdk directory created by us in the previous step.

Similarly, also configure the environment variable ANDROID_SDK_ROOT to the android-sdk directory.

Also, make sure that the JAVA_HOME environment variable is set to the JDK installation directory. It must not end with the bin as we do with the system path variable.

How To Install Android SDK Tools On Windows (8)

Fig 8

Step 5 - Configure Commands

In previous steps, we have downloaded and extracted the Command Line Tools and Platform Tools to the android-sdk directory. Both the tools provide several command-line utilities which we need to run by going to the appropriate directory having the executable files.

We can make these commands available at the system level without going to these directories by adding the path to tools, tools\bin, and platform-tools to the system path as shown in Fig 9. Make sure that these executables do not break other commands having the same name before adding these paths to the PATH environment variable.

How To Install Android SDK Tools On Windows (9)

Fig 9

Now open the Command Prompt and check the ADB and SDK Manager versions as shown in Fig 10. You might be required to restart the system to apply the environment variables set by us.

# Check adb version
adb --version

# It must show the installed adb version
Android Debug Bridge version 1.0.41
Version 31.0.0-7110759
Installed as E:\tools\java\android-sdk\platform-tools\adb.exe

# Check sdkmanager version
sdkmanager --version

# It will show the error as shown below
Error: Could not determine SDK root.
Error: Either specify it explicitly with --sdk_root= or move this package into its expected location: <sdk>\cmdline-tools\latest\

We can see that the ADB command works well and shows the version details, but the sdkmanager shows an error - "error: could not determine sdk root. error: either specify it explicitly with --sdk_root= or move this package into its expected location: <sdk>\cmdline-tools\latest\" since it expects the Command Line Tools in a version-specific directory. Now open the source.properties file from the cmdline-tools directory to check the version. It will show the version details as shown below.

Pkg.Revision=3.0
Pkg.Path=cmdline-tools;3.0
Pkg.Desc=Android SDK Command-line Tools

Now move all the files to the directory cmdline-tools/3.0 as shown in Fig 10.

How To Install Android SDK Tools On Windows (10)

Fig 10

Also, update the system path as shown in Fig 11.

How To Install Android SDK Tools On Windows (11)

Fig 11

Now close and open the Command Prompt. Also, check the ADB and SDK Manager versions as shown in Fig 12.

How To Install Android SDK Tools On Windows (12)

Fig 12

Step 6 - Using the SDK Manager

List - We can list the installed and available packages and images using the list command as shown below.

// List all the installed and available platforms, system images and other resources 
sdkmanager --list

// Output should look like
Installed packages:=====================] 100% Computing updates...
Path | Version | Description | Location
------- | ------- | ------- | -------
platform-tools | 31.0.0 | Android SDK Platform-Tools 31 | platform-tools\

Available Packages:
Path | Version | Description
------- | ------- | -------
add-ons;addon-google_apis-google-15 | 3 | Google APIs
...
...

// We can see that it shows the tools and platform-tools installed by us

Install Platform - Use the below-mentioned command to install the Android 10 (API level 30) using the SDK manager.

# Go to the SDK Tools bin directory to access sdkmanager
# Start download the most recent package
sdkmanager "platforms;android-30"

It will ask to accept the terms and conditions as shown in Fig 13. Enter y and hit Enter Key to accept the terms and conditions. This command creates the directory platforms within android-sdk and installs the package android-30 having all the required files to run the emulator for Android 10.

How To Install Android SDK Tools On Windows (13)

Fig 13

If we again check the installed packages, the list command shows the installed options as shown below.

sdkmanager --list
Installed packages:=====================] 100% Computing updates...
Path | Version | Description | Location
------- | ------- | ------- | -------
platform-tools | 31.0.0 | Android SDK Platform-Tools 31 | platform-tools\
platforms;android-30 | 3 | Android SDK Platform 30 | platforms\android-30\

Available Packages:
Path | Version | Description
------- | ------- | -------
add-ons;addon-google_apis-google-15 | 3 | Google APIs
add-ons;addon-google_apis-google-16 | 4 | Google APIs
...
...

Update SDK Manager - Update the SDK manager using the below-mentioned command.

sdkmanager --update

Add System Image - We can add system images from available images shown by the list command using the SDK manager as shown below. We are adding the most recent default 64-bit system image.

// Install default system image for platform android-30
sdkmanager "system-images;android-30;google_apis;x86_64"

Accept the License Agreement to complete the download.

There are several projects which need Google Play Services. We need system images specific to Google Play Services as shown below.

// Install Google Play Services system image
sdkmanager "system-images;android-30;google_apis_playstore;x86_64"

Accept the License Agreement to complete the download.

Install Emulator - We need to install the emulator before creating the AVD using SDK Manager.

// Install Emulator
sdkmanager --channel=3 emulator

Accept the License Agreement to complete the download.

Install Build Tools - Install the most recent build tool listed by the list command.

// Install Build Tools
sdkmanager "<build tools version>"

// Example
sdkmanager "build-tools;30.0.3"

Step 7 - Using the Emulator and AVD Manager

Create Android Emulator - Create the emulator using the system image downloaded in the previous step as shown below. Replace <emulator name> with the actual name preferred by you.

// Create the emulator using default system image
avdmanager create avd -n <emulator name> -k "system-images;android-30;google_apis;x86_64" -g "google_apis"

// Example:
avdmanager create avd -n emulator30 -k "system-images;android-30;google_apis;x86_64" -g "google_apis"

// Create emulator using Google Play Services system image
avdmanager create avd -n <emulator name> -k "system-images;android-30;google_apis_playstore;x86_64"

// Example:
avdmanager create avd -n emulator30ps -k "system-images;android-30;google_apis_playstore;x86_64"

The above commands ask a bunch of questions to configure the AVD if we choose the custom hardware profile option. We have excluded the details of these options from this tutorial since these configuration details depend on the actual needs. After completing all the configurations, it creates the AVD using the name provided by us while configuring it.

Similarly, we can also install the AVD of older versions as shown below.

// Create the emulator using default system image
avdmanager create avd -n <emulator name> -k "system-images;android-29;default;x86_64" -g "default"

// Example:
avdmanager create avd -n emulator29 -k "system-images;android-29;default;x86_64" -g "default"

// Create emulator using Google Play Services system image
avdmanager create avd -n <emulator name> -k "system-images;android-29;google_apis_playstore;x86_64"

// Example:
avdmanager create avd -n emulator29ps -k "system-images;android-29;google_apis_playstore;x86_64"

List Android Emulators - Now go to the tools directory on the command line and check the installed platform as shown below.

Notes: Add Emulator to the system path as shown in Fig 14.

How To Install Android SDK Tools On Windows (14)

Fig 14

Close and re-open the Command Prompt to check the AVDs created by us in the previous steps.

// List the available emulators
emulator -list-avds

// Output
default28
emulator30
emulator30ps

It will list all the AVDs installed by us.

Run Emulator - We can run the emulator created by us as shown below.

// Run Emulator
emulator -avd <emulator name>

// Example

emulator -avd emulator30

The emulator will take some time to completely launch the AVD. The final results should look similar to Fig 15.

How To Install Android SDK Tools On Windows (15)

Fig 15

Delete Emulator - We can also delete an existing emulator as shown below.

// Delete Emulator
avdmanager delete avd -n <emulator name>

Summary

This tutorial provided all the steps required to install Android Platform Tools and Android SDK Manager on Windows 10. It also provided the steps required to create and launch the AVDs using the Emulator.

How To Install Android SDK Tools On Windows (2024)

FAQs

How to install Android SDK tools in Windows? ›

How To Install Android SDK Tools On Windows
  1. Step 1 - Download SDK Tools. ...
  2. Step 2 - Install Command Line Tools. ...
  3. Step 3 - Install Platform Tools. ...
  4. Step 4 - Configure Environment Variable. ...
  5. Step 5 - Configure Commands. ...
  6. Step 6 - Using the SDK Manager. ...
  7. Step 7 - Using the Emulator and AVD Manager.
Mar 10, 2019

How to only install Android SDK? ›

Install the SDK

In the SDK Platforms tab, expand the Android 14.0 ("UpsideDownCake") section and select the Android SDK Platform 34 package. In the SDK Tools tab, expand the Android SDK Build-Tools 34 section and select the latest 34.x.x version. Click Apply > OK to download and install the selected packages.

How to install Android SDK in Windows without Android Studio? ›

Install Android SDK tools (without Android Studio) via command-line tools
  1. Basic sdkmanager commands: sdkmanager --list --sdk_root=C:\Apps\Android\sdk. List packages (summary) ...
  2. Quick install. .\sdkmanager.bat --install "cmdline-tools;latest" --sdk_root=C:\Apps\Android\sdk.
Dec 11, 2021

How to get Android SDK path in Windows 10? ›

The default location for each path is as follows:
  1. Java Development Kit Location: C:\Program Files\Java\jdk1.8.0_131.
  2. Android SDK Location: C:\Program Files (x86)\Android\android-sdk.
  3. Android NDK Location: C:\ProgramData\Microsoft\AndroidNDK64\android-ndk-r13b.
Jul 14, 2022

How to manually install Android SDK? ›

Install the SDK
  1. Click Tools > SDK Manager.
  2. In the SDK Platforms tab, expand the Android 13.0 ("Tiramisu") section and select the Android SDK Platform 33 package.
  3. In the SDK Tools tab, expand the Android SDK Build-Tools 34 section and select the latest 33. ...
  4. Click Apply > OK to download and install the selected packages.
Feb 8, 2024

Where is Android SDK path in Windows? ›

by default, the "Android Studio IDE" will be installed in " C:\Program Files\Android\Android Studio ", and the "Android SDK" in " c:\Users\username\AppData\Local\Android\Sdk ".

How do I know if Android SDK is installed? ›

To verify the version, make the following changes: In Android Studio, click Tools => Android => SDK Manager. If you have not installed the latest version of the SDK Platform, then click to install it. Make a note of the version number.

How to enable Android SDK? ›

Adding an Android SDK
  1. Select Tools > Options > Environment Options > SDK Manager.
  2. Click the Add button.
  3. On the Add a New SDK dialog box, select Android from the Select a platform drop-down list. ...
  4. Select an SDK from the Select an SDK version drop-down list.

How to download Android SDK using command line tools? ›

To use the SDK Manager to install a version of the command-line tools, follow these steps:
  1. Download the latest "command line tools only" package from the Android Studio downloads page and unzip the package.
  2. Move the unzipped cmdline-tools directory into a new directory of your choice, such as android_sdk .

How to install Android SDK command line tools without Android Studio? ›

Moving on, follow the Steps below to setup Android tools and install Android SDK.
  1. Step 1 — Download the Command Line Tools. ...
  2. Step 2 — Setting up the Android Tools (CLI) ...
  3. Step 3 — Adding tools to $PATH. ...
  4. Step 4 — Installing the Android SDK.
Mar 22, 2021

How to check Android SDK in Windows? ›

To open the SDK Manager from Android Studio, click Tools > SDK Manager or click SDK Manager in the toolbar. If you're not using Android Studio, you can download tools using the sdkmanager command-line tool.

Where is the root folder for Android SDK? ›

By default, the Android SDK root folder is located at ~/. katalon/tools/androidsdk. You can rename or move your Android SDK root folder to another location and use the ANDROIDHOME environment variable to point the path to that new location. See also: [Mobile] Android Setup.

How to install Android SDK command tools? ›

Download the latest "command line tools only" package from the Android Studio downloads page and unzip the package. Move the unzipped cmdline-tools directory into a new directory of your choice, such as android_sdk . This new directory is your Android SDK directory.

How do I know if Android SDK is installed on Windows? ›

(For Windows) Use "File Explorer" to check the SDK installed directory. Take note that the " AppData " is a hidden directory. You need to choose "View" ⇒ Uncheck "Hidden Items" to see this directory. (For macOS) Use "Finder" ⇒ "Go to Folder" to check the SDK installed directory.

Top Articles
Latest Posts
Article information

Author: Mr. See Jast

Last Updated:

Views: 5927

Rating: 4.4 / 5 (75 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Mr. See Jast

Birthday: 1999-07-30

Address: 8409 Megan Mountain, New Mathew, MT 44997-8193

Phone: +5023589614038

Job: Chief Executive

Hobby: Leather crafting, Flag Football, Candle making, Flying, Poi, Gunsmithing, Swimming

Introduction: My name is Mr. See Jast, I am a open, jolly, gorgeous, courageous, inexpensive, friendly, homely person who loves writing and wants to share my knowledge and understanding with you.