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, d8 for 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).

๐Ÿ“Š What OS are you using for development?
Windows
macOS
Linux
Other

Ways to install the Android SDK

There are two main ways to install the SDK:

  1. Via Android Studio โ€”an automated process with a graphical interface.
  2. 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:

  1. Download Android Studio With official website (choose the version for your OS).
  2. Run the installer. On Windows leave all the default settings, including Android SDK and Android Virtual Device.
  3. After installation, open Android Studio and wait for the initial setup to complete.
  4. 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 Emulator or NDK.
  • ๐Ÿ“ SDK Update Sites โ€” sources for downloading packages.

Tick the following boxes:

  • Latest version Android (for example, Android 14)
  • Android SDK Command-line Tools
  • Google 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:

  1. Download commandlinetools--_latest.zip from download pages (section "Command line tools" only").
  2. Extract the archive into a folder, for example:
    • Windows: C:\Android\cmdline-tools
    • macOS/Linux: ~/Android/cmdline-tools
  • Rename the folder cmdline-tools in latest (this is important for correct operation sdkmanager).
  • Add the paths to the SDK to the environment variables (instructions below).
  • 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

    1. Open Control Panel โ†’ System โ†’ Advanced system settings โ†’ Environment variables.
    2. In the section User Variables find Path and click Edit.
    3. Add two paths (replace to your real path to the SDK):
      • \cmdline-tools\latest\bin
      • \platform-tools
  • Save changes and restart terminal.
  • macOS

    Open the terminal and add lines to ~/.zshrc (or ~/.bashrcif you use Bash):

    export ANDROID_HOME=~/Android/Sdk
    

    export 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/Sdk
    

    export 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:

    1. Checking the version sdkmanager:
      sdkmanager --version

      Should output something like 11.0.

    2. List of installed packages:
      sdkmanager --list

      Here 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

    3. Checking connected devices:
      adb devices

      If you connect a smartphone with USB debuggingenabled, you will see its serial number.

    4. If the commands do not work, check:

      • ๐Ÿ”น Correct paths in the environment variables
      • ๐Ÿ”น Availability of permissions to execute files (on Linux/macOS)
      • ๐Ÿ”น Correct installation Java
    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:
    export JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64
    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:
    sdkmanager --uninstall emulator
    

    sdkmanager "emulator"

    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:

    1. Create a virtual device (AVD):
      avdmanager create avd -n Pixel_6_API_34 -k "system-images;android-34;google_apis;x86_64" -d pixel_6

      Here:

      • -n โ€” device name
      • -k โ€” system image (Android 14 c Google APIs)
      • -d โ€” model (pixel_6, nexus_5 etc.)
  • Start the emulator:
    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_64 instead arm64

    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 debugging on 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:

    1. Copy the folder Sdk to the new drive.
    2. Update ANDROID_HOME in the environment variables.
    3. Check the paths in PATH (must point to the new location).

    After the transfer, run sdkmanager --updateto check integrity.