How to Install Android Studio on Ubuntu 24.04
Learn how to install Android Studio on Ubuntu 24.04 LTS. Configure official Snap or manual tarball, Android SDK, KVM hardware acceleration, and emulator.

7 min read
Learn how to install Android Studio on Ubuntu 24.04 LTS. Configure official Snap or manual tarball, Android SDK, KVM hardware acceleration, and emulator.
- Prerequisites and Supported Releases
- Step 1: Verifying CPU Virtualization Extensions and KVM Support
- Step 2: Installing KVM Virtualization Packages and Adding User Groups
Android Studio is the official integrated development environment (IDE) for Google's Android operating system, engineered specifically to accelerate mobile, tablet, Wear OS, and Android TV app development. Built on JetBrains IntelliJ IDEA platform and featuring an advanced code editor, flexible Gradle-based build system, real-time code analyzers, and visual layout design surfaces, Android Studio serves as the industry standard toolchain for modern Kotlin and Java development.
Running your Android engineering environment on Ubuntu provides significant productivity advantages, including native Linux kernel responsiveness, rapid Gradle daemon compilation, seamless container integration, and near-zero virtualization overhead for Android Virtual Devices (AVD). Learning how to install android studio on ubuntu 24.04 enables software engineers and mobile developers to construct a high-performance development workstation equipped with hardware-accelerated device emulation.
In this step-by-step tutorial, we demonstrate how to install Android Studio on Ubuntu 24.04 LTS (Noble Numbat). We cover verifying CPU hardware virtualization, enabling Kernel-based Virtual Machine (KVM) acceleration, installing 32-bit architectural libraries required by the Android build toolchain, installing Android Studio via the official Snap package or manual official tarball, and completing the post-installation SDK setup wizard.
Install and configure Android Studio on Ubuntu 24.04 LTS using the official Snap package or standalone tarball, enable KVM hardware virtualization for smooth emulator performance, and configure the Android SDK.
Prerequisites and Supported Releases
This guide is thoroughly verified on Ubuntu 24.04 LTS (Noble Numbat). The instructions apply cleanly to cloud instances (AWS EC2, Google Compute Engine, DigitalOcean, Hetzner), bare-metal servers, and local virtual machines.
Before proceeding, ensure you have the following requirements satisfied:
- A desktop computer or workstation running
Ubuntu 24.04 LTS(64-bit architecture). - A non-root user account configured with
sudoadministrative privileges. - At least
8 GB of RAM(16 GB strongly recommended for smooth compilation and Android Virtual Device emulation). - A modern Intel or AMD CPU with hardware virtualization extensions (VT-x or AMD-V) enabled in the BIOS/UEFI.
Step 1: Verifying CPU Virtualization Extensions and KVM Support
The Android Virtual Device (AVD) emulator relies directly on Kernel-based Virtual Machine (KVM) hardware acceleration to execute Android ARM and x86 system images at near-native speeds. Without KVM acceleration enabled, emulated devices execute painfully slowly through software translation.
First, install the cpu-checker diagnostic package and verify that your system CPU possesses active hardware virtualization extensions.
Run the kvm-ok command to determine whether your processor supports KVM acceleration.
If the output confirms KVM acceleration can be used, proceed to install the core virtualization libraries.
# Update package repository index
sudo apt update
# Install cpu-checker utility
sudo apt install -y cpu-checker
# Verify KVM hardware virtualization support
kvm-ok
Step 2: Installing KVM Virtualization Packages and Adding User Groups
Once you have confirmed hardware virtualization support, install the KVM hypervisor packages, qemu-kvm, and libvirt daemons.
To allow your regular user account to launch the Android emulator without prompting for root privileges on every run, add your user account to the kvm and libvirt system groups.
Apply the group membership changes by refreshing your shell session using newgrp or logging out and back into your desktop environment.
# Install KVM and virtualization dependencies
sudo apt install -y qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils
# Add current user to kvm and libvirt groups
sudo usermod -aG kvm $USER
sudo usermod -aG libvirt $USER
# Verify group membership
groups $USER
# Verify permissions on /dev/kvm
ls -l /dev/kvm
Step 3: Installing 32-Bit Compatibility Libraries for Android SDK
Although Ubuntu 24.04 is a pure 64-bit operating system, several legacy binary utilities and platform tools bundled within the Android SDK (such as ADB, AAPT, and certain C++ NDK compiler toolchains) require 32-bit runtime libraries.
Enable 32-bit multi-arch package support in dpkg and install the required libc6:i386, libncurses5:i386, libstdc++6:i386, and zlib1g:i386 shared libraries.
Installing these packages ensures that native Gradle build tasks and Android debug bridge connections compile without library link errors.
# Enable 32-bit multi-architecture support
sudo dpkg --add-architecture i386
sudo apt update
# Install required 32-bit runtime libraries
sudo apt install -y libc6:i386 libncurses6:i386 libstdc++6:i386 zlib1g:i386 libbz2-1.0:i386
Step 4: Installing Android Studio via Official Snap (Recommended Method)
Canonical and the Android Studio team maintain an official, verified Snap package for Android Studio. The Snap package bundles the complete IDE, embedded OpenJDK runtime, and automatic background updates directly from Google.
The Snap deployment is completely isolated from system libraries while maintaining full access to system hardware acceleration through the classic confinement flag.
Install Android Studio using the snap command with the --classic switch.
The installation takes a few minutes as the package downloads the complete IDE distribution.
# Install Android Studio via classic Snap package
sudo snap install android-studio --classic
# Verify snap installation
snap list android-studio
Step 5: Alternative Method: Manual Installation from Official Google Tarball
If your enterprise environment disables Snap daemon or requires pinpoint control over multiple parallel IDE versions, you can install Android Studio using the official standalone tarball from Google.
Download the latest Android Studio Linux archive from developer.android.com, extract the archive into the /opt/ system directory, and create a symbolic link in /usr/local/bin/.
Next, create a standardized desktop launcher file at /usr/share/applications/android-studio.desktop so the application integrates with your GNOME application menu.
# Download Android Studio Linux tarball (adjust version URL as needed)
cd /tmp
wget https://redirector.gvt1.com/edgedl/android/studio/ide-zips/2024.1.2.12/android-studio-2024.1.2.12-linux.tar.gz -O android-studio.tar.gz
# Extract archive into /opt/
sudo tar -xzf android-studio.tar.gz -C /opt/
# Create a symbolic link in system bin
sudo ln -sf /opt/android-studio/bin/studio.sh /usr/local/bin/android-studio
# Create desktop launcher file
sudo bash -c 'cat <<EOF > /usr/share/applications/android-studio.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=Android Studio
Comment=Android Studio Integrated Development Environment
Exec=/opt/android-studio/bin/studio.sh
Icon=/opt/android-studio/bin/studio.svg
Categories=Development;IDE;
Terminal=false
StartupNotify=true
EOF'
Step 6: Launching Android Studio and Running the Initial Setup Wizard
Launch Android Studio from your application drawer or by executing android-studio in your terminal.
When launched for the first time, Android Studio displays the Welcome Setup Wizard.
Select the Standard installation type to download the recommended Android SDK components, including the latest Android SDK Platform, Google Play Intel x86 Atom System Image, and the Android SDK Build-Tools.
Review and accept the SDK license agreements, then click Finish to allow Android Studio to download and install all required platform tools into ~/Android/Sdk.
# Launch Android Studio from terminal
android-studio &
# Verify default SDK installation path
ls -la ~/Android/Sdk
Step 7: Configuring Environment Variables for Android SDK and ADB
To use the Android Debug Bridge (adb), Fastboot, and SDK command-line tools directly from your terminal, configure the ANDROID_HOME environment variable and append the SDK directories to your system PATH.
Open your user shell configuration file (~/.bashrc or ~/.zshrc) and append the export paths.
Source the updated profile to apply changes immediately without logging out.
# Append Android SDK environment variables to ~/.bashrc
cat << 'EOF' >> ~/.bashrc
# Android SDK Environment Variables
export ANDROID_HOME=$HOME/Android/Sdk
export PATH=$PATH:$ANDROID_HOME/cmdline-tools/latest/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
export PATH=$PATH:$ANDROID_HOME/emulator
EOF
# Reload shell configuration
source ~/.bashrc
# Verify adb command is accessible
adb version
Step 8: Creating and Launching an Android Virtual Device (AVD)
With KVM acceleration active and the Android SDK fully initialized, you can create a high-performance virtual test device.
In Android Studio, click More Actions > Virtual Device Manager (or open Device Manager from the right toolbar).
Click Create Device, choose a phone hardware profile (such as Pixel 8), and select a system image matching the latest stable Android API level.
Click Finish, then click the Play icon to boot the virtual device. The emulator boots in seconds thanks to native Linux KVM acceleration.
# List available installed virtual devices via CLI
emulator -list-avds
# Launch an AVD directly from the command line
emulator -avd Pixel_8_API_34 -netdelay none -netspeed full &
Troubleshooting and Common Errors
When configuring Ubuntu servers, unexpected permission errors, network timeouts, or lock contention can occur. Review these common issues and verified resolutions:
Android Emulator fails to start with '/dev/kvm is not found' or 'KVM device permission denied'
Resolution: Verify that your user is an active member of the kvm group by running groups $USER. If not, add yourself with sudo usermod -aG kvm $USER and reload groups with newgrp kvm. Ensure CPU virtualization (VT-x or AMD-V) is enabled in your motherboard BIOS/UEFI settings.
Gradle sync fails with 'Unable to find bundled Java version' or JDK incompatibility
Resolution: Android Studio ships with its own embedded OpenJDK runtime. Navigate to File > Settings > Build, Execution, Deployment > Build Tools > Gradle, and ensure the Gradle JDK option is set to Embedded JDK (or Java 17/21 matching your project requirements).
ADB does not detect connected physical Android phone
Resolution: Install the standard Android udev rules package by running sudo apt install -y android-sdk-platform-tools-common. Ensure USB Debugging is enabled on your physical phone, and accept the computer's RSA fingerprint authorization prompt when connecting via USB.
Security Best Practices and Hardening
Never execute the Android Studio IDE or Gradle build daemons as the root user. Build scripts and Gradle dependencies execute arbitrary code during compilation.
Review third-party Gradle plugins and dependencies declared in build.gradle before syncing unfamiliar GitHub projects.
Keep the Android SDK platform tools updated to receive security patches for ADB and emulator hypervisor components.
When connecting physical devices over ADB Wi-Fi, ensure your local wireless network is encrypted with WPA3/WPA2 Enterprise to prevent unauthorized device access.
Related Ubuntu Tutorials and Documentation
Deepen your Linux system administration skills with our related production-tested guides:
Authoritative References and Official Documentation

The Linux Command Line, 2nd Edition: A Complete Introduction
Frequently Asked Questions
Quick answers to common questions and configurations
sudo snap refresh android-studio.Editorial Disclosure: Website Vidya is supported by our readers. When you purchase hosting, tools, or software through our verified partner links, we may earn an affiliate commission at no extra cost to you. We only recommend solutions we trust and rigorously verify.
Rajesh Ray
I’m Rajesh Rai, a full-stack developer, Linux administrator, and technology enthusiast passionate about making complex technology easier to understand and use.
Most Read Guides
TrendingUbuntu Server Not Booting? 10 Simple Steps to Fix It Fast
How to Create a 3D Button in HTML and CSS: Easy Steps
How to Install Python and Pip on Ubuntu 24.04 LTS
How to Install Nginx on Ubuntu 24.04
How to Install Python on Ubuntu 24.04 LTS
Related Technical Guides
Tested runbooks, server administration walkthroughs, and troubleshooting guides


Join the Conversation & Perspective
Have thoughts, counterpoints, or reflections on this story? Engage directly with fellow readers and editorial contributors.
No comments on this guide yet. Be the first to share your thoughts or ask a question!