Android Studio is a comprehensive integrated development environment (IDE) created by Google for developing applications and software on Android operating system-based devices. If you wish to install Android Studio on Ubuntu 22.04 | 20.04, you can refer to the instructions provided by ItsmeIT below.
Three Methods to Install Android Studio on Ubuntu 22.04 or 20.04
First, Android Studio requires JDK (Java Development Kit) version 8 or higher to work. You can install the JDK with the following command:
Prior to installation, it is imperative to note that Android Studio necessitates JDK (Java Development Kit) version 8 or a higher version. You can install the JDK with the following command:
Update the system and install Java JDK
sudo apt update sudo apt install openjdk-11-jdk
Now validate if Java JDK application has been installed successfully.
Method 1: Download FILE directly to install Android Studio on Ubuntu
Step 1: Download Android Studio
You can download Android Studio from the Google homepage by following the link. Then choose the version that matches your Ubuntu operating system (this is the Linux version).
Step 2: Extract and install Android Studio
After downloading, open terminal (CTL + ALT + T) extract the downloaded file with the following command:
tar -xvf <file_name_android_studio>.tar.gz
Go ahead, move into the directory
android-studio/android/binand run the file
studio.sh to start Android Studio:
cd /opt/android-studio/bin sudo chmod +x studio.sh sudo ./studio.sh
Method 2: Install Android Studio via Repository (recommended)
To install Android Studio on Ubuntu 22.04, you can use the PPA repository installation method. By using this method, you can proceed with the installation process easily and efficiently.
Step 1: Add android-studio repository (APT)
Before install Android Studio on Ubuntu 22.04 or 20.04, you need to ensure that Java JDK is installed. After that, you should add the Android Studio repository and update the system to ensure that the repository functions properly.
sudo add-apt-repository ppa:maarten-fonville/android-studio sudo apt update
Step 2: Install the Android Studio IDE app
This command will guide you through installing the latest and most stable version of Android Studio software on the Ubuntu operating system:
sudo apt install android-studio -y
Method 3: Install Android Studio via Snapd
Snapd is an open source package management tool that provides the ability to quickly and conveniently install Android Studio on Ubuntu 20.04 or 22.04.
Step 1: Install Snapd
Snap is pre-installed on Ubuntu 22.04 by default. However, if it is not already installed, you can use the command below.
sudo apt install snapd
Step 2: Install Android Studio Classic
sudo snap install android-studio --classic
If you want to remove android studio once installed via snapd you can use this command to remove it from the system:
sudo snap remove android-studio
Add Android Studio icon to taskbar
To add the Android Studio icon to the taskbar on Ubuntu, you can search for “Android Studio” in the search menu and then click “Add to Favorites”. After successfully adding the icon, you can click on it to open the application and start working.
These are the methods for installing Android Studio on Ubuntu 22.04 or 20.04 LTS operating systems. Which method did you choose? Please leave a comment below!