Developing applications for Android begins with settings Android SDK โa set of tools, without which it is impossible to build, test or launch a project. Even if you don't plan to become a professional developer, the ability to work with an SDK will be useful for debugging applications, modifying firmware, or automating tasks on a smartphone. However, the process of installation and first launch often causes difficulties: from choosing the right version to setting up environment variables.
In this article we will analyze current ways to launch the Android SDK in 2026including installation via Android Studio and standalone command-line tools, and also look at typical errors that beginners encounter. We will pay special attention to setting up Windows 11, macOS Ventura i Ubuntu 22.04+, since the algorithms differ due to the characteristics of the operating systems. If you have already tried to launch the SDK and received an error like "Failed to install Android SDK" or "Java not found" , you will find solutions here.
What is the Android SDK and why do you need it
Android SDK (Software Development Kit) is a set of tools from Google, which includes:
- ๐ฆ Compilers and assemblers (for example,
d8for bytecode conversion) - ๐ง Command line utilities (
adb,fastboot,sdkmanager) - ๐ฑ Device emulators for testing without a physical device
- ๐ Libraries and APIs for interaction with Android functions (camera, GPS, sensors)
Without SDK you will not be able to:
- โ Build APK file from source code
- โ Launch the emulator Android Virtual Device (AVD)
- โ Debug the application via
Android Debug Bridge (ADB) - โ Update the smartphone firmware via
fastboot
At the same time, the SDK is not an independent application - it is a set of console utilities that are integrated into development environments (Android Studio, Visual Studio Code) or used separately through the terminal. For example, the command adb devices will show all Android devices connected to the PC, and sdkmanager --list will display packages available for installation.
โ ๏ธ Attention: Versions of the SDK and its components are updated regularly. If you are working with outdated instructions (for example, for Android SDK Tools 25.2.5 dated 2017), some commands may not work. Always check official documentation for the latest flags and syntax.
System requirements to run the Android SDK
Before installation, check if your PC meets the minimum requirements. The table below shows current data for Android SDK Command-Line Tools 11.0+ (2026):
| Component | Windows 10/11 | macOS (Ventura/Monterey) | Linux (Ubuntu 22.04+) |
|---|---|---|---|
| RAM | 8 GB (recommended 16 GB for the emulator) | 8 GB | 8 GB |
| Free disk space | 10 GB (SDK + emulator) | 10 GB | 10 GB |
| Java | OpenJDK 11 or 17 | OpenJDK 11 or 17 | OpenJDK 11 or 17 |
| OS bit size | 64-bit | 64-bit (Apple Silicon supported) | 64-bit |
| Additional | Hyper-V for the emulator | Xcode Command Line Tools | KVM to speed up the emulator |
It is critically important to install the correct version Java. For example, Android Studio Giraffe (2022.3.1) requires OpenJDK 17, and older versions of the SDK may work with JDK 8. You can check the current version with the command:
java -version
If Java is not installed, download it from OpenJDK official website or through a package manager (for example, sudo apt install openjdk-17-jdk for Ubuntu).
Ways to install the Android SDK
There are two main ways to install the SDK:
- Via Android Studio โan automated process with a graphical interface.
- Standalone
command-line toolsโ for experienced users who do not want to install a full-fledged IDE.
Let's consider both options in detail.
Method 1: Installation via Android Studio (recommended for beginners)
This is the simplest method, because it automatically downloads and configures the SDK. Follow the steps: Download the official one site Android Studio automatically downloads and configures the SDK. Follow the steps:
- Download Android Studio With official website (choose the version for your OS).
- Run the installer. On Windows leave all the default settings, including
Android SDKandAndroid Virtual Device. - After installation, open Android Studio and wait for the initial setup to complete.
- In the start window, select
More Actions โ SDK Manager.
In SDK Manager you will see three tabs:
- ๐ SDK Platforms โ Android versions (for example, Android 14.0 "Upside Down Cake").
- ๐ง SDK Tools โ utilities like
Android EmulatororNDK. - ๐ SDK Update Sites โ sources for downloading packages.
Tick the following boxes:
- Latest version Android (for example, Android 14)
Android SDK Command-line ToolsGoogle USB Driver(only for Windows)Android Emulator(if you plan to test on emulator)
Click Apply, confirm the license agreements and wait for the download. Default SDK installation path:
- Windows:
C:\Users\\AppData\Local\Android\Sdk - macOS/Linux:
~/Android/Sdk
Download the latest version of Android Studio|
Check for 10+ GB of free space|
Install OpenJDK 11 or 17|
Disable antivirus (may block file downloads)-->
Method 2: Installing stand-alone command-line tools
If you do not need Android Studio, you can install only the SDK through the terminal This method is suitable for:
- ๐ฅ๏ธ Servers without GUI
- ๐ง Linuxsystems. minimalistic environments
- ๐ง Automated scripts (CI/CD)
Steps for Windows/macOS/Linux:
- Download
commandlinetools--_latest.zipfrom download pages (section "Command line tools" only"). - Extract the archive into a folder, for example:
- Windows:
C:\Android\cmdline-tools - macOS/Linux:
~/Android/cmdline-tools
- Windows:
cmdline-tools in latest (this is important for correct operation sdkmanager).Now you can install the necessary packages via the terminal. For example, to install Android 14 i platform-tools:
./cmdline-tools/latest/bin/sdkmanager "platforms;android-34" "platform-tools"
โ ๏ธ Attention: It may be necessary to first make the files executable: Linux You may need to make the files executable first:chmod +x -R ~/Android/cmdline-tools/latest/bin/
Setting environment variables
To run SDK commands (for example, adb or fastboot) from any directory, you need to add the path to the SDK to the variable PATH. The instructions differ for each OS.
Windows 10/11
- Open
Control Panel โ System โ Advanced system settings โ Environment variables. - In the section
User VariablesfindPathand clickEdit. - Add two paths (replace
to your real path to the SDK):\cmdline-tools\latest\bin\platform-tools
macOS
Open the terminal and add lines to ~/.zshrc (or ~/.bashrcif you use Bash):
export ANDROID_HOME=~/Android/Sdkexport PATH=$PATH:$ANDROID_HOME/cmdline-tools/latest/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
Apply changes:
source ~/.zshrc
Linux (Ubuntu/Debian)
Similar to macOS, but edit ~/.bashrc or ~/.profile:
export ANDROID_HOME=~/Android/Sdkexport PATH=$PATH:$ANDROID_HOME/cmdline-tools/latest/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
Update the configuration:
source ~/.bashrc
Check the settings are correct with the command:
adb --version
If you see the version (for example, Android Debug Bridge version 1.0.41) - everything is configured correctly.
After adding environment variables, open a new terminal - the changes apply only to new sessions.
Checking the SDK and the first commands
Make sure that the SDK is working by running the basic commands:
- Checking the version
sdkmanager:sdkmanager --versionShould output something like
11.0. - List of installed packages:
sdkmanager --listHere you will see available and installed components, for example:
Installed packages:Path | Version | Description
---- | ------- | -----------
platform-tools | 34.0.4 | Android SDK Platform-Tools
platforms;android-34 | 3 | Android SDK Platform 34 - Checking connected devices:
adb devicesIf you connect a smartphone with
USB debuggingenabled, you will see its serial number. - ๐น Correct paths in the environment variables
- ๐น Availability of permissions to execute files (on Linux/macOS)
- ๐น Correct installation Java
If the commands do not work, check:
What to do if adb devices does not see the device?
1. Make sure that it is turned on on your smartphone Debugging USB (Settings โ About phone โ Build number - tap 7 times, then return to Settings โ System โ For developers).
2. On Windows install the drivers via SDK Manager โ SDK Tools โ Google USB Driver.
3. Try it. another USB connection (not all ports support data transfer).
4. Restart the device and PC.
5. If used macOS/Linux, check the rules udev for accessing USB devices.
Common errors and their solutions
Even with correct installation, errors may occur. Let's consider the most common ones:
| Error | Cause | Solution |
|---|---|---|
Error: Java_HOME is not defined correctly |
Incorrectly specified variable JAVA_HOME or Java is not installed |
Install OpenJDK 11/17 and add to the environment variables:
|
Failed to install 'package': "CreateProcess error=2" |
No write rights to the SDK folder or blocked by antivirus | Run the terminal as administrator or disable antivirus |
adb: command not found |
Path to platform-tools not added to PATH |
Check environment variables (section above) |
Emulator: PANIC: Missing emulator engine app |
The emulator is not installed or the files are damaged | Reinstall emulator via sdkmanager:
|
SDK location not found |
Invalid variable specified ANDROID_HOME |
Check the path to the SDK and restart the terminal |
If the error is not listed in the table, study the log with the command:
sdkmanager --verbose
Or look for a solution on Stack Overflow, indicating the full text of the error.
90% of errors when launching the SDK are related to incorrect paths in environment variables or lack of access rights. Always check them first!
Running an Android emulator
The emulator allows you to test applications without a physical device. run:
- Create a virtual device (AVD):
avdmanager create avd -n Pixel_6_API_34 -k "system-images;android-34;google_apis;x86_64" -d pixel_6Here:
-nโ device name-kโ system image (Android 14 c Google APIs)-dโ model (pixel_6,nexus_5etc.)
emulator -avd Pixel_6_API_34
To speed up the emulator:
- ๐ฅ๏ธ On Windows enable
Hyper-V(Control Panel โ apps โ Turn Windows components on or off). - ๐ง On Linux install
KVM:sudo apt install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils - ๐ On macOS use
Hypervisor.Framework(enabled by default).
If the emulator is slow, try:
- Reduce the resolution of the emulated device
- Disable animation in the emulator settings
- Use image from
x86_64insteadarm64
FAQ: Frequently asked questions about launching the Android SDK
Is it possible to use the Android SDK without Android Studio?
Yes, just download command-line tools from the official website and configure the environment variables. However, without Android Studio you will have to manually manage packages via sdkmanager and create AVD via avdmanager.
How to update the Android SDK to the latest version?
Run the command:
sdkmanager --update
To update everything packages:
sdkmanager --update --channel=0
To update a specific package (for example, platform-tools):
sdkmanager "platform-tools"
Why adb doesnโt see my device?
The reasons may be different:
- Not enabled
USB debuggingon smartphone - No drivers (on Windows)
- USB port does not support data transfer
- Blocking by antivirus or firewall
Detailed troubleshooting steps - in the spoiler above.
How to remove unnecessary SDK packages to free up space?
Look at the list of installed packages:
sdkmanager --list
Remove unnecessary ones (for example, old versions Android):
sdkmanager --uninstall "platforms;android-30"
You can also manually delete folders from $ANDROID_HOME, but it is less secure.
Can I move the Android SDK to another drive?
Yes, but you need to update the environment variables:
- Copy the folder
Sdkto the new drive. - Update
ANDROID_HOMEin the environment variables. - Check the paths in
PATH(must point to the new location).
After the transfer, run sdkmanager --updateto check integrity.