Objective

Install Android Studio on Ubuntu 18.04

Distributions

Ubuntu 18.04 Bionic Beaver

Requirements

A working install of Ubuntu 18.04 with root privileges.

Difficulty

Easy

Conventions

  • # - requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
  • $ - requires given linux commands to be executed as a regular non-privileged user

Introduction

If you're serious about developing for Andorid, or you just want to play around and see what app development is all about, Android Studio is the best option out there. It's the official IDE developed by Google for writing Android apps.

Google developed Android Studio for Ubuntu. Up until recently, Google did all of their development on Ubuntu. They just switched over to Debian, in case you were wondering. Either way, it's similar, so coding for Android on Ubuntu is a good idea.

Installing Android Studio on Ubuntu isn't difficult. It's not in the official repositories, but it's still very easy to get set up.

Install Java

Everything on Android is done in Java. In order to use Android Studio, you're going to need to have a recent version of Java installed on your Ubuntu 18.04 system. Thankfully, those packages are available in the official Ubuntu repositories, so you can install them with Apt.
$ sudo apt install openjdk-8-jre openjdk-8-jdk

SUBSCRIBE TO NEWSLETTER
Subscribe to Linux Career NEWSLETTER and receive latest Linux news, jobs, career advice and tutorials.


Install From A Snap

Snaps are a great thing. They provide a channel for third party software like Android Studio to be be distributed to every Linux distribution without the need to package and re-package. Android Studio is available as a Snap, and Ubuntu comes with the Snap package manager installed by default, so you only need to install it.
$ sudo snap install android-studio
Android Studio running on Ubuntu
Android Studio running on Ubuntu

That's it! Android Studio is installed.

Closing Thoughts

Even though it's not packaged by the Ubuntu developers, Android Studio is insanely easy to install and set up. Because it's a Snap, you can easily update and manage it too, which is much better than the default method from Google, which requires you to download the program in a zipped file.
ARE YOU LOOKING FOR A LINUX JOB?
Submit your RESUME, create a JOB ALERT or subscribe to RSS feed on LinuxCareers.com.
LINUX CAREER NEWSLETTER
Subscribe to NEWSLETTER and receive latest news, jobs, career advice and tutorials.
DO YOU NEED ADDITIONAL HELP?
Get extra help by visiting our LINUX FORUM or simply use comments below.