How to Install Android Studio on Ubuntu 22.04

Android Studio is a powerful and official integrated development environment for Android application development. It is based on IntelliJ IDEA and designed specifically to develop Google’s Android operating system applications.

Android Studio is available for Windows, Linux, macOS, and Chrome OS.

Here, we will see how to install Android Studio on Ubuntu 22.04.

System Requirements

  • 2nd generation core (Example i3 2nd gen) or newer processor with VT support
  • 64-bit Linux OS with graphical interface (GNOME/KDE/Unity DE)
  • 8 GB of RAM or more
  • 8 GB or more free disk space

Enable VM Acceleration

First, ensure your system’s CPU supports Intel VT / AMD SVM.

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

Output:

2

If the above output is non-zero, your machine has Intel or AMD virtualization support.

Then, install the KVM packages to enable VM acceleration.

sudo apt update

sudo apt install -y qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils

Install Android Studio on Ubuntu 20.04

You can follow any of the below methods to install Android Studio on Ubuntu 20.04.

1. Install Android Studio Using Snap

Andriod Studio is available as a Snap package for Ubuntu operating system. So, you can install Android Studio using the Snap command.

sudo snap install android-studio --classic

The installation would take at least 10 or 15 mins to complete. After the completion, verify the Android Studio installation using the below command.

sudo snap list android-studio

Output:

Name            Version      Rev  Tracking       Publisher     Notes
android-studio  2021.1.1.21  119  latest/stable  snapcrafters  classic

After the Android Studio installation, you can launch it from the Activities or command line.

2. Install Android Studio From the Official Archive

First, install 32-bit libraries for Android Studio installation.

sudo apt update

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

Then, open a browser and visit the Android Studio official website to download the latest version of Android Studio or use the below command to download Android Studio (2021.1.1 Patch 3) from the terminal.

cd /tmp

wget https://dl.google.com/dl/android/studio/ide-zips/2021.1.1.23/android-studio-2021.1.1.23-linux.tar.gz

Next, go to the Downloads directory or the directory where you have downloaded the Android Studio. Then extract the downloaded archive using the tar command.

tar -zxvf android-studio-*-linux.tar.gz

sudo mv android-studio /opt/

Then, link the executable to /bin directory so that you can quickly start Android Studio using android-studio command.

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

Since we installed Android Studion from the Tar file, you will need to create a .desktop file under the /usr/share/applications directory that lets you start Android Studio from the Activities.

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

Copy and paste the following information into 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

Launch Android Studio

You can start Android Studio by going to Activities >> Search for Android Studio or running the android-studio command in the terminal.

However, you may need to perform the setup of Android Studio when launching it for the first time.

Android Studio on Ubuntu 22.04

Conclusion

That’s All. I hope you have learned how to install Android Studio on Ubuntu 22.04.

androidandroid studiokvmubuntu 22.04
Comments (0)
Add Comment