The easiest way to install Android Studio (or any other developer tool) on Ubuntu is to use the officially recommended Ubuntu Make snap. No need to download Android Studio as a zip, try to manually install it, add a PPA or a fiddle with Java installation. Ubuntu Make'll automatically download the latest version of Android Studio, install it along with OpenJDK and all the necessary dependencies, and create an application launch entry in Dash.
Step 1: Install Ubuntu Make
Run this command:
sudo snap install
Step 2. Install Android Studio
Run this command:
ubuntu-make.umake android
Once you accept the license and press "Enter" to confirm the installation path, Ubuntu Make'll download and install Android Studio.
Step 3. Install Android SDK
Open your newly installed Android Studio from the dash:

There is no need to import anything if this is the first time you install it:

The installation wizard will guide you through the installation:

Select "Standard Installation" to get the latest SDK and Custom if you want to change the SDK version or set the location. From now on, it's pretty simple, just click βNextβ and you will download and install the SDK.

Step 4: Install PATH (optional)
This step can be useful if you need Android SDK developer teams such as adb, fastboot, aapt, etc., available in Terminal. You may need third-party development platforms such as React Native, Ionic, Cordova, etc. And other tools. To configure PATH, edit the ~/.profile file:
gedit ~/.profile
and then add the following lines to it:
# Android SDK Tools PATH export ANDROID_HOME=${HOME}/Android/Sdk export PATH="${ANDROID_HOME}/tools:${PATH}" export PATH="${ANDROID_HOME}/emulator:${PATH}" export PATH="${ANDROID_HOME}/platform-tools:${PATH}"
If you changed the location of the SDK at the end of step 3, be sure to change the line export ANDROID_HOME=${HOME}/Android/Sdk accordingly.
Tested on Ubuntu 16.04LTS and higher. It will work with 14.04LTS if you first install support for snap packages . Thanks to Didier "didrocks" Roche for binding Ubuntu Make . π
Note. This question is similar to the AskUbuntu question "How to install Android Studio on Ubuntu?" and my answer . I reproduce my answer here to provide a complete complete answer, not just a link.