1. You can install Java, just by writing: sudo apt-get install default-jdk in terminal window, or follow these steps: Download Java, in my case I downloaded this one.

2. To install Java, open terminal window, go to the location where you downloaded Java, and write:

tar zxvf jdk-8u45-linux-x64.tar.gz

3. After installing Java write something like:

export JAVA_HOME=/home/myUserName/myDownloadPlace/jdk1.8.0_45

Of course change myUserName/myDownloadPlace.

or write:

sudo gedit /etc/environment

then in environment write:

export JAVA_HOME=/home/myUserName/myDownloadPlace/jdk1.8.0_45

4. Then write:

sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6

5. Finally download Android Studio, extract it, go to bin folder, in my case that is something like:


6. Execute:


7. Go to File -> Project Structure -> JDK location box: enter and browse to your Java JDK.

8. Download from here and install Java JRE, and I copied downloaded version to folder /home/myUserName/Android/Sdk/tools/lib/monitor-x86_64/jre