7 C
Texas

How To Install Android Studio On Ubuntu 20.04

Today we are going to learn that how to install Android Studio on Ubuntu 20.04. Android Studio is a powerful integrated development platform based on IntelliJ IDEA. This is the best platform for developing applications for Google Android operating systems. So, if you want to use android studio on Ubuntu 20.04 this guide will help you to install it on your system. So, let’s move towards the installation process.

Step 1: Update Your System

sudo apt update -y

Also, make sure that your system supports virtualization by running the below comamnd.

egrep --color 'vmx|svm' /proc/cpuinfo | wc -l
- Advertisement -

Output:

2

If the output is non-zero it means that your system supports virtualization.

Step 2: Install Android Studio On Ubuntu 20.04

Here we’ll see 3 methods to install android studio on Ubuntu 20.04

  • Install Android Studio from Ubuntu Software Center
  • By Using Snap
  • Install Android Studio from Official Package

Step 3: Install Android Studio from Ubuntu Software Center

Navigate to the Activities and search for the Ubuntu Software.

How To Install Android Studio On Ubuntu 20.04

Here search for “Android Studio”. You’ll see the package in the results.

Simply click on the Install button to start the installation process.

How To Install Android Studio On Ubuntu 20.04

It’ll ask you to enter your password before starting installation. Enter it to authenticate.

It’ll take some time to finish the installation based on your Internet speed.

After the installation finished, navigate to the Activities & search for Android Studio. You’ll see that Android Studio has been installed successfully.

Step 4: Intall Android Studio By Using Snap

Make sure you’ve installed snap if you’ve not already installed run the below commands.

sudo apt update
sudo apt install -y snapd

And then run the below command to install Android Studio.

sudo snap list android-studio

Wait for 10-15 minutes to complete the installation. Once, finished you can verify it by running

sudo snap list android-studio

Output:

Name Version Rev Tracking Publisher Notes
android-studio 4.0.0.16 90 latest/stable snapcrafters classic

You’ll see android studio in the result if it is installed.

Now, you can open the Android Studio from Activities as done above.

Step 5: Install Android Studio From Official Archive

Hit the below commands to install the required libraries for Android Studio installation.

sudo apt update
sudo apt install -y libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 libbz2-1.0:i386

And, hit the below command to download android studio.

cd /tmp
wget https://dl.google.com/dl/android/studio/ide-zips/4.0.0.16/android-studio-ide-193.6514223-linux.tar.gz

Once downloaded, switch to the downloaded directory and type.

tar -zxvf android-studio-ide-*-linux.tar.gz
sudo mv android-studio /opt/

Then link the executable to /bin folder in order to start Android studio fastly with the help of android-studio command.

sudo ln -sf /opt/android-studio/bin/studio.sh /bin/android-studio

To start the android studio from Activitites menu, create a .desktop file under /usr/share/applications folder.

sudo nano /usr/share/applications/android-studio.desktop

And paste the below content in the above file.

[Desktop Entry]
Version=1.0
Type=Application
Name=Android Studio
Comment=Android Studio
Exec=bash -i "/opt/android-studio/bin/studio.sh" %f
Icon=/opt/android-studio/bin/studio.png
Categories=Development;IDE;
Terminal=false
StartupNotify=true
StartupWMClass=jetbrains-android-studio
Name[en_GB]=android-studio.desktop

Step 6:Access Android Studio On Ubuntu 20.04

Now, go to the Activities and simply type Android studio.

You can also open it with the help of command in terminal by entering

android-studio

Android studio will open, enjoy using it on Ubuntu 20.04.

How To Install Android Studio On Ubuntu 20.04

So, this is how you can install Android Studio On Ubuntu 20.04

- Advertisement -
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"

1 COMMENT

LEAVE A REPLY

Please enter your comment!
Please enter your name here



Latest article