This article will go over how to install and run android studio on your Linux operating system.

Requirements

  • Java Development Kit
  • Android Studio Executable Setup
  • 4-8GB RAM Recommended

Install Oracle’s Java Development Kit

$ sudo apt install default-jdk

Download Android Studio

Visit the Android Studio Download Page and download the setup. (Link: https://developer.android.com/studio/index.html)

Once the download is done, unzip it and move it to the /opt directory.

$ unzip [insert android-studio-zipfile]
$ cp -R android-studio /opt

Install Android Studio

$ cd /opt/android-studio/bin
$ sudo chmod +x studio.sh
$ ./studio.sh

The installation will then begin. It will download large packages during the install process, so get some tea and relax.

Run Android Studio

When the installation is complete. Navigate to the opt directory again and move into android-studio/bin.

$ cd /opt/android-studio/bin
$ ./studio.sh

This time the executable will start android studio and prompt you to create a new project.

After creating the project, at the top navigation bar inside android studio, navigate to Tools > Create Desktop Entry…

This will create a desktop entry in your menu so that you can launch it easily. You can also create a commandline entry by navigating to Tools > Create CommandLine Launcher…

To start developing android apps, consider watching some introductory Youtube videos.

If you experience errors with gradle, make sure you have a working version of Gradle installed on your system.

If you experienced issues with the installation or spotted errors in my tutorial, reach out to me via my contact page.

Update: Thanks to Snapcraft, you can install Android Studio by typing one command, just make sure you have snap installed

# if snap is installed
$ sudo snap install android-studio --classic

# elsif snap is not installed
$ sudo apt install snapd
$ sudo snap install android-studio --classic  

FIN