Complete Guide to Installing Android SDK on Ubuntu Systems

Nov 19, 2025 · Programming · 10 views · 7.8

Keywords: Android SDK | Ubuntu Installation | Android Studio | Environment Configuration | Development Tools

Abstract: This article provides a comprehensive guide to installing Android SDK on Ubuntu systems through two main approaches: direct installation via the apt package manager and installation through the Android Studio integrated development environment. The guide covers the complete workflow from system requirement verification, software package download, environment configuration to final validation, with solutions for common installation issues. Special emphasis is placed on installing 32-bit library dependencies and configuring PATH environment variables to ensure developers can successfully set up their Android development environment.

Introduction

The Android SDK is the core toolkit for developing Android applications, containing various tools required for compiling, debugging, and packaging apps. Installing Android SDK on Ubuntu systems is an essential skill for Android developers. This article systematically introduces two main installation methods and provides in-depth analysis of the advantages, disadvantages, and suitable scenarios for each approach.

System Requirements and Preparation

Before beginning the installation process, ensure your system meets the basic requirements. For Linux systems, it's recommended to use 64-bit Ubuntu and verify that necessary dependency libraries are installed. According to official documentation, Android Studio and Android SDK have specific resource requirements, particularly when using the Android Emulator, which demands more memory and storage space.

Method 1: Installation via APT Package Manager

This is the simplest and quickest installation method, particularly suitable for users who only need basic SDK tools. First update the package lists:

sudo apt update && sudo apt install android-sdk

After installation completes, Android SDK is typically placed in one of the following directories:

The advantage of this method is the simplicity of the installation process and automatic dependency resolution, though it may not provide the latest version.

Method 2: Installation via Android Studio

For users requiring a complete development environment, the Android Studio installation method is recommended. This approach provides an integrated development environment with the latest SDK tools.

Download and Extraction

First download the Android Studio compressed package from the Android developer website. Extract the downloaded file:

tar -xzf android-studio-*.tar.gz

It's recommended to move the extracted folder to the home directory for easier management:

mv android-studio ~/

Configuration and Launch

Navigate to the Android Studio bin directory and set execution permissions:

cd ~/android-studio/bin/
chmod +x studio.sh

Launch Android Studio:

./studio.sh

Setup Wizard Configuration

After launching, the setup wizard will appear. For fresh installations, select "I do not have a previous version of Studio or I do not want to import my settings". The setup wizard will guide you through the following steps:

Common Issues and Solutions

32-bit Library Dependency Issues

On 64-bit Ubuntu systems, you might encounter missing 32-bit library issues. Install the necessary 32-bit libraries using:

sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1

Java Development Kit Selection

Android Studio supports both OpenJDK and Oracle JDK. While OpenJDK works adequately, Oracle JDK is officially recommended for better performance and stability. Note that Oracle JDK doesn't update automatically with the system like OpenJDK does.

Creating Desktop Shortcuts

For convenient launching, create a desktop icon within Android Studio:

Configure > Create Desktop Entry

Environment Variable Configuration

To conveniently use SDK tools from the command line, configure environment variables. Edit the ~/.bashrc file:

export ANDROID_HOME=$HOME/Android/Sdk
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools

Apply the configuration:

source ~/.bashrc

Installation Verification

After installation completes, verify through the following methods:

Conclusion

This article provides a detailed guide to two main methods for installing Android SDK on Ubuntu systems. APT installation suits users who only need basic tools, while Android Studio installation provides a complete development environment. Regardless of the chosen method, proper system dependency management and environment variable configuration are crucial. Correct installation and configuration form the foundation for successful Android application development.

Copyright Notice: All rights in this article are reserved by the operators of DevGex. Reasonable sharing and citation are welcome; any reproduction, excerpting, or re-publication without prior permission is prohibited.