Explain Codes LogoExplain Codes Logo

Unable to install Android Studio in Ubuntu

java
installation
ubuntu
dependencies
Anton ShumikhinbyAnton Shumikhin·Mar 9, 2025
TLDR
# Sneak peek to your future - installing OpenJDK 11 sudo apt install openjdk-11-jdk -y && \ # Journey to the treasure - latest Android Studio bundle wget https://redirector.gvt1.com/edgedl/android/studio/ide-zips/2021.1.1/android-studio-2021.1.1-linux.tar.gz && \ # Open sesame! - Extraction of the genie … I mean bundle tar xf android-studio-*.tar.gz -C /opt/ && \ # Ticket to ride - Start up your freshly unpacked Android Studio /opt/android-studio/bin/studio.sh

Fast track installation for those who can't wait to explore the wilderness of Android development.

System requirements check-up

Before we raid into the installation, check if you are geared up right. Having Java 8 installed and ready is non-negotiable. java -version is your magic mirror which tells if you are the fairest of them all.

64-bit Ubuntu systems are a bit high-maintenance, they need extra care and packages.

# This command walks into a bar... Ouch! It’s an architecture! sudo dpkg --add-architecture i386 && \ # Update stocks, on today's menu - packages! sudo apt update && \ # 64-bit Ubuntu go on a diet - here are an array of 32-bit libraries sudo apt install libncurses5:i386 libz1:i386 lib32stdc++6 -y

If you get the classic “Unable to run mksdcard SDK tool” error, lib32stdc++6 package got you covered.

# Well-tailored suit for 32-bit - Lib32stdc++ sudo apt install lib32stdc++6 -y

You must check the version compatibility between your favorite Ubuntu and Android Studio, they need to dance together in the ball.

Hunting down installation bugs

Encountering errors during the installation? Bugs are sneaky, not scary. Watch for the red flags, read the error messages, they spill the beans about missing dependencies or misaligned setup.

The notorious Issue 82711 has a bounty on its head. Internet has loads of fixes up its sleeves. Lesson learned here - keep your system and packages updated, to send the speed bumps on a vacation.

The road less traveled

If the straightforward installation gives you the chills, take the scenic route. Like the school bus, package manager Snap is here to pick you right at your doorstep.

# Snapping fingers did move mountains for Thanos, let's just install Android Studio sudo snap install android-studio --classic

You are a seasoned adventurer? Try Flatpak for a spin!

# Flatpak because life is too short for rough edges! flatpak install flathub com.google.AndroidStudio

Breeze through the official developer page for installation instructions, curated specially for different Ubuntu variants. Fashion-conscious system insists on compatibility with Android Studio version. They both got to walk the ramp together!

Play around with Beta or Canary builds of Android Studio, who knows the grass is greener on the other side!