PopOS

How to Install Android Studio on Pop!_OS

Android Studio is an IDE that works well to develop native Android apps. IntelliJ is the basis of this free and open-source Android development environment, developed in collaboration with JetBrains. Additionally, it comes with all the necessary software components for developing Android apps on Linux.

The primary purpose of the Android Studio development environment is to make app building better, more reliable, and faster than ever before. So, in this tutorial, we will show how you can quickly install Android Studio on Pop!_OS.

How to Install Android Studio on Pop!_OS

For Android Studio to work properly on your Pop!_OS, you must install JDK (Oracle Java Development Kit) in the system. Follow these steps to download JDK if your system does not have it.

Update your system by running the following update command:

sudo apt update

To install JDK, execute the following command:

sudo apt install default-jdk -y

Using Android-Studio Repository

First, update your system to ensure that all available packages are up-to-date:

sudo apt update && sudo apt upgrade -y

Install the most common software packages by running the command below in the terminal if it is not installed in your Pop!_OS:

Then, import the Maarten Fonville PPA. This PPA contains the latest up-to-date version for Pop!_OS users. Plus, it does a great job importing all minor releases on LTS.

Import the PPA with the following command using the following command:

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

Next, update your system before starting the installation process to reflect the newly imported PPA by running the apt update command.

sudo apt-get update

Install Android Studio through the below command:

sudo apt install android-studio -y

You have successfully installed Android Studio. Alternatively, you can verify the installed version by checking the apt-policy cache.

apt-cache policy android-studio

Using Snap Packages

First, update your system.

sudo apt update

Next, install the snap through the following command if it is not previously installed in your system.

sudo apt install snapd

You can use Snap to install the Android Studio in your Pop!_OS.

sudo snap install android-studio --classic

Using Manually Download Package

Firstly, go to the Android Studio’s website and download the official repository.

Scroll down to the next page, accept all the mentioned terms and conditions, and start downloading its file. This downloaded file will be saved in your default directory (Downloads).

Through the cd command, navigate to the directory where the above-downloaded file is present.

cd ~/Downloads

Use the following tar command to extract Android Studio’s TAR file:

tar -xzvf android-studio-*.tar.gz

On your Linux system, you should make Android Studio available to all users, move the android-studio directory to the /opt folder, and make all users aware of the installation.

sudo mv android-studio /opt/

If running a 64-bit version of Linux, install the following Android Studio software dependencies:

sudo apt-get install libc6 libncurses5 libstdc++6 lib32z1 libbz2-1.0 -y

To start an Android Studio, go to the /opt/android-studio/bin folder with the following command.

cd /opt/android-studio/bin

Launch it by running the following script:

sudo ./studio.sh

Using Graphical User Interface

Apart from the terminal method, you can also install Android Studio through the GUI method. Go to the Pop!_OS shop from the Applications menu and search for ‘android studio’ in the search box.

Now, install it by clicking on the Install button.

Thus, it will install in your Pop!_OS.

How to Launch the Android Studio on Pop!_OS

Run the command below in the terminal to open the Android studio.

android -studio

Moreover, go to the Applications menu and search for ‘android studio’ in the search box. Here, you will see its icon or automatically see it in the applications menu. You can now double-click it to open it:

When you first launch Android Studio, the system will show you a setup wizard. It guides you to accept your optional import settings, EULA agreements, and other quick setup tabs.

Doing so will launch the Android setup wizard on your system. Proceed by clicking on Next.

Select the standard installation type.

Choose the UI theme according to your choice.

In case you want to change the settings, click on previous. Otherwise, proceed after verifying all the settings.

Here you have to accept the android-sdk-preview license and the android-sdk-license agreement.

The formal emulator settings on your system would look something like this. Now, click on the finish button.

The required components will start downloading on your system like this.

Finally, click on the Finish button to use the Android Studio with no trouble.

Conclusion

Android Studio is a versatile and powerful development environment for creating high-quality applications for all android devices. Before installing it on your Pop!_OS (any Linux distribution), ensure that JDK must be installed in your system, and if JDK is not installed, then we have explained the steps to install it.\

About the author

Prateek Jangid

A passionate Linux user for personal and professional reasons, always exploring what is new in the world of Linux and sharing with my readers.