There are some tutorials that suggest the installation using PPA. However, sometime it does not work because the PPA listed is no longer available or for any other reasons. In this post, I write manual way for installation. This way is much safer and more guarantee that it will work. Please let me know if you have any problem.
If you run 64-bit ubuntu, install the following packages first. If you run 32-bit, you may skip this step and go to the next step
$ sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6
Download JDK from OracleYou can download from their website. When I write this post, the download page is located here. However, they may move the download page. In case you don't find in that link, you can ask Google to find the download page for you.
You can use Files Manager or use terminal. If you want to use terminal, you can use this command:
$ tar xzf jdk-8u92-linux-x64.tar.gzInstall JDK
Install jdk into /usr/bin
$ update-alternatives --install /usr/bin/java java /home/arwan/Downloads/jdk1.8.0_92/bin/java 100
$ update-alternatives --install /usr/bin/javac javac /home/arwan/Downloads/jdk1.8.0_92/bin/javac 100
Check if java has been installed
$ java -version
You can download Android studio here.
Extract Android Studio
$ unzip android-studio-ide-143.2821654-linux.zip
$ mv /home/arwan/Downloads/android-studio /usr/local
Next, just follow the steps until your Android Studio is installed.