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
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…