Categories: Ubuntu

How to install Android Studio on Ubuntu 22.04

Android studio is one of the many tools available that are used for android development. This is a cross-platform tool that works on many operating systems and has numerous built-in features and comes with multiple layouts for generating eye catchy GUI. These features were one reason why this tool replaced the formerly popular tool Eclipse IDE.

You can install Android Studio on Ubuntu 22.04 using two methods which are either using android-studio repository or Snap. Both of these methods have been discussed here in detail.

Method 1: Using android-studio repository

Follow the steps given below to learn how this method can be used to install Android Studio on Ubuntu 22.04. This method makes use of the PPA repository to proceed with the installation procedure.

Step
Sponsored
1: Install JDK

If you do not have JDK installed on your system then use the below-given command to install it on Ubuntu 22.04.

$ sudo apt install openjdk-11-jdk

Output

While processing you will be asked whether you want to continue or not. Press ‘Y’ to continue the installation procedure.

Step 2: Verify installation

Now validate if the app was successfully installed.

$ java –version

Output

The installation has been verified.

Step 3: Add android-studio repository

Now that JDK has been installed you have to import the android-studio repository by running the command provided below.

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

Output

Step 4: Update system

Now update your system before you move towards installing the Android Studio.

$ sudo apt update

Output

Step 5: Install the app

After updating the system, you can now easily install the app.

$ sudo apt install android-studio -y

Output

Sponsored

Now you simply have to search for the app in the menu and once you find it, you can click on it to use the app.

Android Studio has been installed.

Method 2: Using Snap

Here we have elaborated how you can use Snap store to install Android Studio.

Step 1: Install Snap

Snap is by default installed on Ubuntu 22.04, however, if it is not installed, use the below-given command.

sudo apt install snapd

Step 2: Install JDK

You have to install JDK on your system before installing Android Studio as indicated in the previous method.

sudo apt install openjdk-11-jdk

Step 3: Install Android Studio

Lastly, use the command provided below to install Android Studio.

sudo snap install android-studio –classic

The app has been installed.

How to uninstall Android Studio

If you wish to uninstall Android Studio using Snap then follow the command given below:

sudo snap remove android-studio

Output

Android Studio is removed or uninstalled successfully.

Conclusion

You can install Android Studio on Ubuntu 22.04 using either the android-studio repository or Snap. In both cases you need to install JDK first which can be done using the command $ sudo apt install openjdk-11-jdk. Each method has a certain set of steps that need to be followed and these have been discussed in detail along with visual representations.

Ubuntu Server Admin

Recent Posts

Cut data center energy costs with bare metal automation

Data centers are popping up everywhere. With the rapid growth of AI, cloud services, streaming…

22 hours ago

Build the future of *craft: announcing Starcraft Bounties!

Our commitment to building a thriving open source community is stronger than ever. We believe…

22 hours ago

NodeJS 18 LTS EOL extended from April 2025 to May 2032 on Ubuntu

The clock was ticking: Node.js 18’s upstream End of Life (EOL) The OpenJS Foundation is…

22 hours ago

Native integration now available for Pure Storage and Canonical LXD

June 25th, 2025 – Canonical, the company behind Ubuntu, and Pure Storage, the IT pioneer…

2 days ago

Revolutionizing Web Page Creation: How Structured Content is Slashing Design and Development Time

Co-authored with Julie Muzina A year ago, during our Madrid Engineering Sprint, we challenged ourselves…

3 days ago

Ubuntu Weekly Newsletter Issue 897

Welcome to the Ubuntu Weekly Newsletter, Issue 897 for the week of June 15 –…

4 days ago