(Last Updated On: May 25, 2019)

Question: How to Install Android Studio 3.x on Ubuntu 19.04/18.04/16.04?, How to Install Android Studio 3.x on Linux Mint 19?, How to Install Android Studio 3.x on Debian 9?.

This image has an empty alt attribute; its file name is install-android-studio-ubuntu-debian-mint-02.png

This guide has been written to help you with the installation of Android Studio 3.x on Ubuntu, Debian, and Linux Mint. Android Studio is the integrated development environment (IDE) built on JetBrains’ IntelliJ IDEA software for Google’s Android operating system development.

Also read: How to Install Latest Eclipse IDE on Ubuntu

Android Studio 3.x comes with plenty of new features, advanced code analysis, code completion, a flexible build system, refactoring, feature-rich and powerful emulator. See below system requirements before starting the installation.

Android Studio System requirements

Memory3 GB RAM minimum, 8 GB RAM recommended; plus 1 GB for the Android Emulator
Disk Space2 GB of available disk space minimum,
4 GB Recommended (500 MB for IDE + 1.5 GB for Android SDK and emulator system image)
Resolution1280 x 800 minimum screen resolution
CPU64-bit distribution capable of running 32-bit applications
LibraryGNU C Library (glibc) 2.19 or later
OptionalIntel/AMD CPU Virtualization extensions for VM acceleraton

Enabele Virtual Machine Acceleration through KVM

Linux based Linux-based systems support VM acceleration through the KVM package. To run an accelerated emulator on a Linux computer, it must also meet these requirements:

  • Intel processor with support for Intel VT-x, Intel EM64T (Intel 64), and Execute Disable (XD) Bit functionality enabled, or
  • AMD processor with support for AMD Virtualization (AMD-V)

To check whether you have Virtualization support in your machine, use

$ egrep -c '(vmx|svm)' /proc/cpuinfo
8

If your output doesn’t contain any number, then Virtualization feature could be disabled in the BIOS.

Install KVM on Ubuntu, and Linux Mint:

sudo  apt-get -y install qemu-kvm libvirt-bin virt-top  libguestfs-tools virtinst ubuntu-vm-builder bridge-utils ia32-libs-multiarch

Install KVM on Debian:

sudo apt-get -y install libvirt-daemon libosinfo-bin libguestfs-tools libvirt-daemon-system qemu-kvm virtinst bridge-utils virt-top

Install Android Studio 3.x on Ubuntu, Debian, Linux Mint

Android Studio Downloads page contain the latest releases of Android Studio for Linux, Windows, and Mac. But for ease of installation and management, we will install Android Studio 3.x on Ubuntu, Debian, Linux Mint from Snapstore.

A snap is a pre-packaged software which works similar to Linux containers. The Android Studio snap is maintained by the Snapcrafters community. It ships with all required run-time libraries and it is easy to update.

If you don’t have Snap installed on your Ubuntu, Debian or Linux Mint, install it by running command below.

sudo apt-get update
sudo apt install snapd

You can either restart your machine, or log out and in again, to complete the installation. Once snapd is installed and running, now install the latest stable release of Android Studio 3.3.

$ sudo snap install android-studio --classic
2019-01-22T08:28:16+03:00 INFO Waiting for restart…
android-studio 3.3.0.20 from 'snapcrafters' installed

This installation may take sometime depending on your internet speed. You should be able to launch Android Studio from command line, or your distribution Start menu.

$ android-studio

If you get errot message like below

Command 'android-studio' is available in '/snap/bin/android-studio'
The command could not be located because '/snap/bin' is not included in the PATH environment variable.
android-studio: command not found

Then you need to add /snap/bin to your PATH environment variable.

$ vim ~/.bashrc
export PATH="$PATH:/snap/bin"

OR

$ vim ~/.zshrc
export PATH="$PATH:/snap/bin"

Update your PATH

source ~/.bashrc
OR
source ~/.zshrc

You should now be able to start the application. Follow installation steps to get Android Studio ready.

On the first screen, select if to import Android Studio settings.

Start installation

Choose type of installation

Pick your desired UI theme

Verify settings

Click Next and finish setup to install required packages of Android Studio.

Tags

How to Install Android Studio on Ubuntu 19.04/18.04/16.04

How to Install Android Studio on Debian 10/9/8

How to Install Android Studio on Linux Mint 19/18

How to Install Android Studio on Kali Linux