2 Ways to Install Android Studio in Ubuntu 22.04/Ubuntu 22.04

Android Studio is the official IDE for Android. It’s open-source, distributed under the Apache license. This tutorial is going to show you how to install Android Studio on Ubuntu 20.04 and Ubuntu 22.04 using two methods: PPA and Ubuntu make. They are both very easy.

Install Java on Ubuntu 20.04/Ubuntu 22.04

No matter which method you choose, you first need to install Java. Run the following command to install OpenJDK 11 on Ubuntu 22.04 and Ubuntu 20.04 from the default repository.

sudo apt install openjdk-11-jdk

This will also install the openjdk-11-jre package, which contains the Java runtime environment and is required to run Java programs. Once the installation is complete, check version number.

java -version

Output:

openjdk version "11.0.11" 2021-04-20
OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2.20.04)
OpenJDK 64-Bit Server VM (build 11.0.11+9-Ubuntu-0ubuntu2.20.04, mixed mode, sharing)

If you are interested, you can read more details on installing and configuring Java on Ubuntu Desktop.

Installing Android Studio in Ubuntu 20.04, Ubuntu 22.04 via PPA

At the time of this writing, the latest stable version is Android Studio 4.2.2, release on June 30, 2021. Run the following commands to add Android Studio PPA and install it.

sudo add-apt-repository ppa:maarten-fonville/android-studio

sudo apt update

sudo apt install android-studio

android studio ppa

During the installation, the latest Android Studio zip file will be downloaded from Google server. Once the installation is finished, you can open Android Studio from Unity Dash or your preferred app launcher.

android studio ubuntu

If the icon didn’t load, then please log out and log back in or use the following command to start Android Studio.

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

Select whether you want to import previous Android Studio settings or not, then click OK.

ubuntu android studio

If you encounter the error “Unable to access Android SDK add-on list”, this means there’s a connection problem between your computer and the Android Studio servers. You will need to set up a proxy or use a VPN.

unable to access android sdk add-on list

Then follow the setup wizard. You will prompted to install Android SDK Tools, Android platform tools, Android support library, etc.

android studio ubuntu 16.04

Installing Android Studio in Ubuntu 20.04/Ubuntu 22.04 Using Ubuntu Make

You can easily install the latest version of Android Studio via Ubuntu Make, which is a command-line tool that allows you to download the latest version of popular developer tools.

Install Ubuntu make from PPA

sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make

sudo apt update 

sudo apt install ubuntu-make

Then install Android Studio using Ubuntu make.

umake android --accept-license

Umake will download and install all required components like the latest Android SDK, Android platform tools, etc. It will also create a desktop icon.

Wrapping Up

That’s it! I hope this tutorial helped you install Android Studio in Ubuntu 20.04/Ubuntu 22.04 using the command line with PPA or Ubuntu Make. You might also want to read:

Rate this tutorial
[Total: 110 Average: 4.1]

3 Responses to “2 Ways to Install Android Studio in Ubuntu 22.04/Ubuntu 22.04

  • How do you get the icon to display as an application. right now even after using the path given it stills opens as a folder.

  • So I Installed everything and during the Building app getting erro “Unsuported operating System”
    Linux Ubuntu 16.04 32bit
    any help ?

Leave a Comment

  • Comments with links are moderated by admin before published.
  • Your email address will not be published.
  • Use <pre> ... </pre> HTML tag to quote the output from your terminal/console.
  • Please use the community (https://community.linuxbabe.com) for questions unrelated to this article.
  • I don't have time to answer every question. Making a donation would incentivize me to spend more time answering questions.

The maximum upload file size: 2 MB. You can upload: image. Links to YouTube, Facebook, Twitter and other services inserted in the comment text will be automatically embedded. Drop file here