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 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

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

Ubuntu MATE 26.10 Release Notes

Lo and behold 👐, Ubuntu MATE 26.10 (Stonking Stingray) is here! 🎊 We are back…

7 days ago

How to Deploy Kiwix Server on Ubuntu VPS

This article provides a guide demonstrating how to deploy Kiwix Server on Ubuntu VPS. What…

7 days ago

How to Host a Discord Bot on Ubuntu VPS

This article provides a guide demonstrating how to host a Discord bot on Ubuntu VPS.…

1 week ago

Myna speech-to-text is now available as a technology preview

A few months ago, we introduced Myna, our project to bring private, local speech-to-text dictation…

1 week ago

What’s new in security for Ubuntu 26.10?

Ubuntu 26.10 “Stonking Stingray” arrives at a time when AI tools are accelerating vulnerability discovery.…

2 weeks ago

Devpack for Rust: Zero to Rust in seconds

One of the best things about Rust is how easy it is to get started.…

2 weeks ago