
Make sure to note the path of your Java installation. The result you should get is something like: javac 1.8.0_201 Next, verify the installation by typing: javac -version

Once the download and installation are done, make sure to set the Oracle Java as the default: sudo apt-get install oracle-java8-set-default The download may take some time, so depending on your internet speed, this might be a good time to get some Java (or other caffeinated beverage) of your own. Since Android Studio can be finicky about its Java, we’re going to ignore these options and install the Oracle JDK with the following commands: sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java8-installer This is Ubuntu giving you hints on how to set up one of the default Java engines on your machine. If you don’t have Java installed, the output should be something like: Command ‘java’ not found, but can be installed with: sudo apt install default-jre sudo apt install openjdk-11-jre-headless sudo apt install openjdk-8-jre-headless To check the version of Java currently running on your machine, use the terminal to run the following command: java -version

To run Android Studio smoothly on your machine, you will need:

Included in this guide are the most straightforward couple: Like with most actions and applications on any Linux machine, there are multiple ways to install Android Studio on Ubuntu. This guide will walk you through the installation process of Android Studio on Ubuntu 16.04/17.10/18.04, and is suited for users of all levels. If you’re an Ubuntu user developing an Android app, or an open source enthusiast looking to tinker with the OS without bricking your device, the official Android Studio IDE (integrated development environment) from Google is a piece of software you need to install.
