Android Studio:Installasi di Ubuntu

Install Android Studio Using Repository

Add the audio repository

After JDK is downloaded and installed, you must install the studio repository by executing the command given below.

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

The pop-up will appear in the terminal during installation; hit Enter to carry on with adding the repository, or press C + Ctrl to stop adding the repository to the system.

Update the system cache

You should use the below command to update the system’s apt-cache after setting the Android repository successfully:

sudo apt update

Install the Android Studio on Ubuntu

It’s now time to use the package manager to download the Android Studio for Ubuntu. The subsequent command will help you install ADB Ubuntu and all of its requirements.

sudo apt install android-studio

Install Android Studio Using the Snap

Install the snap

Ubuntu system already has Snap installed by default. Still, if your system doesn’t have it, install it using the command listed below.

sudo apt install snapd

Download and install the JDK

As mentioned in the previous technique, you must first install the JDK on the PC prior to setting up Android Studio. Use the below command to do so.

sudo apt install openjdk-11-jdk

Install the Android Studio on Ubuntu

On your Ubuntu system, run the below command to install the Android Studio utilizing snap:

sudo snap install android-studio –classic

Source