How to Install Android Studio on Debian

Install Android Studio on Debian 11, 12, or 13 amd64 with the official Linux tarball from developer.android.com, Snap classic, or Flathub. Run the Setup Wizard, configure the Android SDK, prepare KVM for the emulator, launch from the desktop, update, and uninstall cleanly.

Published

Updated

Read time 8 min read

Reviewed byDeepak Prasad

Install Android Studio on Debian hero with DEBIAN GUIDE badge, IDE graphics, and Android SDK workflow highlights

Android Studio is Google’s IDE for Android apps—Kotlin and Java editing, Gradle builds, layout tools, profilers, and the Android SDK manager. Debian does not package it in apt; you install Google’s official Linux tarball, a Snap, or a Flathub Flatpak, then finish setup in the Setup Wizard (SDK, emulator images, licenses).

This guide covers install Android Studio on Debian for Debian 11 (Bullseye), 12 (Bookworm), and 13 (Trixie) on amd64: prerequisites, all three install paths, first launch, SDK layout, emulator KVM notes, updates, and uninstall. I ran the official tarball and Snap installs on Debian 13 and kept real terminal output below.

Tested on: Debian 13 (trixie); kernel 6.12.94+deb13-amd64; amd64.

NOTE
Google documents 64-bit Linux onlyARM64 Debian is not supported for Android Studio. Plan on 8 GB RAM minimum for the IDE and 16 GB if you use the Android Emulator.

Choose an install method

Method Best for Result on disk
Official .tar.gz Google’s documented path; /opt layout; in-IDE updates ~1.4 GB archive + ~3.3 GB extracted; SDK in ~/Android
Snap classic Fastest one-liner when snapd is already enabled ~1.62 GB under /var/lib/snapd
Flatpak (Flathub) Sandboxed install with Flathub updates Wrapper + runtime; SDK still under your home dir
JetBrains Toolbox Managing multiple JetBrains/Google IDE versions User install under ~/.local/share/JetBrains/Toolbox

Most developers should use the official tarball unless you already standardize on Snap or Flatpak for desktop apps.


Prerequisites

  • Debian 11, 12, or 13 on amd64 (dpkg --print-architectureamd64).
  • A graphical desktop (GNOME, KDE, Xfce, etc.)—Android Studio is not a headless CLI tool.
  • RAM: 8 GB minimum for the IDE; 16 GB+ recommended with the emulator (Google system requirements).
  • Disk: ~1.4 GB for the IDE archive, ~3 GB extracted, plus SDK/AVD downloads (often 10 GB+ over time).
  • Run as a normal user—not root (see Troubleshooting).
  • curl or wget and tar for the official archive.
  • sudo when installing under /opt or using Snap/Flatpak.
  • Optional: KVM for the emulator (qemu-kvm, user in group kvm, /dev/kvm present).

Check the host:

bash
. /etc/os-release && echo "$PRETTY_NAME"
dpkg --print-architecture
free -h | head -2
text
Debian GNU/Linux 13 (trixie)
amd64
               total        used        free      shared  buff/cache   available
Mem:           3.4Gi       1.5Gi       665Mi       328Mi       1.7Gi       1.9Gi

On my VM, KVM was not available (egrep -c '(vmx|svm)' /proc/cpuinfo returned 0), so I used the IDE and documented emulator prep without running AVDs here.


Google’s Install Android Studio page ships a Linux 64-bit .tar.gz. Pick the current build from developer.android.com/studio—URLs follow android-studio-<version>-linux.tar.gz.

Download the archive

bash
mkdir -p ~/Downloads && cd ~/Downloads
curl -fL -o android-studio-linux.tar.gz \
  "https://redirector.gvt1.com/edgedl/android/studio/ide-zips/2025.1.3.7/android-studio-2025.1.3.7-linux.tar.gz"
ls -lh android-studio-linux.tar.gz
text
-rw-r--r-- 1 user user 1.4G Jun 29 05:44 android-studio-linux.tar.gz

The file was 1,470,452,324 bytes (~1.37 GiB) over HTTPS. Replace the version segment when a newer stable release appears on the download page.

Extract under /opt

bash
sudo tar -xzf android-studio-linux.tar.gz -C /opt
ls /opt/android-studio/bin/studio.sh
text
/opt/android-studio/bin/studio.sh

Extracted size on my host:

bash
du -sh /opt/android-studio
text
3.3G	/opt/android-studio
HINT
Install under $HOME/android-studio instead of /opt if you want in-IDE updates without sudo—Google’s docs note tarball upgrades need write access to the install directory (Debian Wiki — AndroidStudio).

Verify the build

bash
/opt/android-studio/bin/studio.sh --version
text
Android Studio Narwhal 3 Feature Drop | 2025.1.3
Build #AI-251.26094.121.2513.14007798

Android Studio bundles JetBrains Runtime 21—you do not need a separate openjdk package for the IDE itself:

bash
/opt/android-studio/jbr/bin/java -version
text
openjdk version "21.0.7" 2025-04-15
OpenJDK Runtime Environment (build 21.0.7+-13880790-b1038.58)
OpenJDK 64-Bit Server VM (build 21.0.7+-13880790-b1038.58, mixed mode)

Optional command-line launcher

bash
sudo ln -sf /opt/android-studio/bin/studio /usr/local/bin/android-studio

Launch as your desktop user (not root):

bash
/opt/android-studio/bin/studio.sh &

After the GUI opens, use Tools → Create Desktop Entry so Android Studio appears in your application menu (official Linux tip).


Install Android Studio from Snap

The Android Studio Snap is published by Snapcrafters (community packaging, not Google’s own build pipeline). It uses classic confinement because the IDE needs broad filesystem access.

Enable Snap if needed (same pattern as install Steam on Debian):

bash
sudo apt install -y snapd
sudo snap install snapd

Install Android Studio:

bash
sudo snap install android-studio --classic
text
android-studio 2026.1.1.10-quail1-patch2 from Snapcrafters* installed

Check version and path:

bash
snap list android-studio
snap run android-studio --version
text
Name            Version                    Rev  Tracking       Publisher
android-studio  2026.1.1.10-quail1-patch2  232  latest/stable  snapcrafters*  classic

Android Studio Quail 1 | 2026.1.1 Patch 2
Build #AI-261.23567.138.2611.15646644

Launch:

bash
android-studio &
NOTE
The Snap build (2026.1.1) was newer than the tarball I downloaded (2025.1.3) on the same day—channel versions drift. Use Snap when you want snap refresh updates; use the tarball when you want Google’s exact archive layout.
WARNING
Snap unpack needs free disk space on / and /tmp. On my first attempt, a full /tmp produced No space left on device from unsquashfs—free several gigabytes before installing.

Install Android Studio from Flatpak

Flathub distributes a community Flatpak wrapper around the upstream tarball (Debian Wiki — AndroidStudio). It is convenient when you already use Flatpak for other apps.

bash
sudo apt install -y flatpak
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
flatpak remote-info flathub com.google.AndroidStudio | head -15
text
Android Studio - IDE for Android app development

        ID: com.google.AndroidStudio
       Ref: app/com.google.AndroidStudio/x86_64/stable
      Arch: x86_64
    Branch: stable
   Version: 2026.1.1.10
   License: LicenseRef-proprietary
Collection: org.flathub.Stable
  Download: 2.4 MB
 Installed: 3.1 MB
   Runtime: org.freedesktop.Sdk/x86_64/25.08

Install and run:

bash
flatpak install flathub com.google.AndroidStudio
flatpak run com.google.AndroidStudio

The install pulls the Freedesktop SDK runtime in addition to the app—budget several gigabytes and enough RAM. On my 3.4 GiB test VM the install was killed by the OOM killer at 100% progress; a machine with 8 GB+ RAM or adequate swap completed installs reliably in practice.


First launch: Setup Wizard and SDK

Whichever channel you chose, the first GUI run opens the Setup Wizard:

  1. Import prior settings or start fresh.
  2. Choose Standard install (recommended) or Custom SDK paths.
  3. Accept SDK license agreements.
  4. Wait while Android SDK, platform-tools, and often an ** emulator system image** download.

Default SDK location:

text
~/Android/Sdk

Confirm after setup:

bash
ls ~/Android/Sdk/platform-tools/adb 2>/dev/null && ~/Android/Sdk/platform-tools/adb --version

Environment variables many projects expect (add to ~/.profile or ~/.bashrc):

bash
export ANDROID_HOME="$HOME/Android/Sdk"
export PATH="$PATH:$ANDROID_HOME/platform-tools:$ANDROID_HOME/emulator"

For Gradle/Kotlin projects you will also use Git and often Node.js for React Native tooling—install those separately when a tutorial requires them.


Android Emulator and KVM on Debian

The Android Emulator needs hardware virtualization:

bash
egrep -c '(vmx|svm)' /proc/cpuinfo
groups "$USER" | tr ' ' '\n' | grep -x kvm
ls -l /dev/kvm 2>/dev/null

Install KVM tools:

bash
sudo apt install -y qemu-kvm libvirt-daemon-system
sudo usermod -aG kvm,libvirt "$USER"

Log out and back in so group membership applies. Create an AVD from Tools → Device Manager in Android Studio.

IMPORTANT
Without KVM (/dev/kvm), emulator boot times are impractical on Debian. Use a USB-connected phone with USB debugging enabled, or Android Device Streaming, when virtualization is unavailable.

Update Android Studio

Channel Update command
Official tarball Help → Check for Update inside the IDE
Snap sudo snap refresh android-studio
Flatpak flatpak update com.google.AndroidStudio

SDK components update from Tools → SDK Manager or sdkmanager under ~/Android/Sdk/cmdline-tools/.


Uninstall Android Studio

Official tarball

bash
sudo rm -rf /opt/android-studio
sudo rm -f /usr/local/bin/android-studio
rm -rf ~/.config/Google/AndroidStudio* ~/.local/share/Google/AndroidStudio*
rm -rf ~/Android ~/.android

Snap

bash
sudo snap remove android-studio

Flatpak

bash
flatpak uninstall com.google.AndroidStudio

Remove leftover SDK data under ~/Android only when you no longer need projects or AVD images.


Troubleshooting

Symptom Likely cause Fix
No space left on device during Snap or download /tmp or / full (IDE + SDK are large) Run df -h and free several GB—see list installed packages on Debian for inventory commands
IDE refuses to start as root Built-in safety check Log in as a normal user; do not use --no-sandbox in production
Emulator extremely slow No KVM Enable VT-x/AMD-V in firmware; sudo usermod -aG kvm "$USER"
Flatpak install killed at 100% Low RAM during SDK/runtime unpack Add swap or install on a host with 8 GB+ RAM
Tarball in-IDE update fails /opt owned by root Install under $HOME or chown the tree to your user
adb: command not found SDK not on PATH Export ANDROID_HOME and add platform-tools to PATH
Snap vs tarball version mismatch Independent release channels Pick one channel and stick to it

References


Summary

Install Android Studio on Debian with Google’s official Linux .tar.gz (extract to /opt/android-studio, run bin/studio.sh --version), or use sudo snap install android-studio --classic / flatpak install flathub com.google.AndroidStudio. I verified Narwhal 2025.1.3 from the tarball and Quail 2026.1.1 Patch 2 from Snap on Debian 13. Finish the Setup Wizard, point ANDROID_HOME at ~/Android/Sdk, enable KVM for the emulator, and remove only one channel at uninstall time so you do not duplicate multi-gigabyte installs.


Frequently Asked Questions

1. How do I install Android Studio on Debian?

Download the official Linux 64-bit .tar.gz from developer.android.com/studio, extract to /opt/android-studio, and run bin/studio.sh. Alternatives: sudo snap install android-studio --classic or flatpak install flathub com.google.AndroidStudio. Debian does not ship Android Studio in its main apt archives.

2. Is Android Studio available in Debian apt repositories?

No. Android Studio is distributed by Google as a tarball, not as a Debian package. Use the official download, Snap, or Flatpak. The Setup Wizard downloads the Android SDK into your home directory (typically ~/Android/Sdk).

3. Which install method should I use on Debian?

Use the official tarball when you want Google layout under /opt and in-IDE updates. Use Snap for quickest install with classic confinement. Use Flatpak for sandboxed installs with Flathub updates. Pick one channel—mixing tarball and Snap duplicates gigabytes.

4. What are the system requirements for Android Studio on Debian?

Google requires a 64-bit Linux desktop (GNOME, KDE, or Unity), glibc 2.31+, 8 GB RAM for the IDE alone, 16 GB with the emulator, and 8–16 GB free disk before SDK downloads. ARM64 Linux hosts are not supported. KVM is required for acceptable emulator performance.

5. Why does Android Studio refuse to start as root on Debian?

The IDE blocks root for safety. Log in as a normal desktop user and run studio.sh or android-studio from Snap. Running as root with --no-sandbox is unsupported and risky.

6. How do I run the Android Emulator on Debian?

Enable hardware virtualization (Intel VT-x or AMD-V), install qemu-kvm, add your user to the kvm group, and confirm /dev/kvm exists. Without KVM the emulator is extremely slow. You can also test on a physical Android device over USB.

7. How do I update Android Studio on Debian?

Tarball installs: Help > Check for Update inside the IDE (install under a user-writable path or fix ownership). Snap: sudo snap refresh android-studio. Flatpak: flatpak update com.google.AndroidStudio.

8. How do I uninstall Android Studio from Debian?

Tarball: sudo rm -rf /opt/android-studio and delete ~/Android, ~/.android, and ~/.config/Google/AndroidStudio* if you want SDK data gone. Snap: sudo snap remove android-studio. Flatpak: flatpak uninstall com.google.AndroidStudio.
Omer Cakmak

Linux Administrator

Highly skilled at managing Debian, Ubuntu, CentOS, Oracle Linux, and Red Hat servers. Proficient in bash scripting, Ansible, and AWX central server management, he handles server operations on …