Android Studio requires JDK dependencies, and a friend without a JDK first installed the JDK
Open Terminal, execute java-version
[Email protected]:~$ java-versionjava Version "1.8.0_91" Java (TM) SE Runtime Environment (build 1.8.0_91-b14) Java HotSpot (TM) 64-bit Server VM (build 25.91-b14, Mixed mode)
If there is a version of the JDK that has the JDK installed, skip this paragraph
The following JDK installation tutorials are from http://blog.csdn.net/yuxiayiji/article/details/37812785
First step: Add PPA repository to the system
[Email protected]:/$ sudo add-apt-repository ppa:webupd8team/java
Step Two: Update
[Email protected]:/$ sudo apt-get update
step three: Download and install the JDK
[Email protected]:/$ sudo apt-get install Oracle-java7-installer
here is the installation of JDK7, if you want to install JDK6 or JDK8, the above statement 7 to the corresponding number can be changed.
Fourth Step: Set as Default
[Email protected]:/$ sudo apt-get install Oracle-java7-set-default
Similarly, you need to change the 7 to the corresponding 6 or 8
Fifth Step: View version
- [Email protected]:/$ java-version
- java version " 1.7. 0_55 "  
- Java (TM) SE Runtime Environment (Build 1.7. 0_55-b13)
- Java HotSpot (TM) Client VM (build 24.55-b03, mixed mode)
To modify a configuration file:
Gedit/etc/profile file end add:
#jdk
- Export Java_home=/usr/lib/jvm/java-7-oracle
- Export JRE_HOME=${JAVA_HOME}/JRE
- Export Classpath=.:${java_home}/lib:${jre_home}/lib
- Export Path=${java_home}/bin: $PATH
================== This step, the JDK installs successfully-then installs Android studio
sudo apt-add-repository ppa:paolorotolo/android-studio
sudo apt-get update
sudo apt-get install android-studio
Wait a moment------
Check the installation directory later to see if the download is successful, of course, you can also go to view the Web download
Http://www.android-studio.org/index.php/download
Download the Linux version and unzip to the directory
, then enter the directory, if it is the official website of the CD to the location of your decompression, if it is under the command, please go
Cd/opt/android-studio/bincd
Extracted directory
[Email protected]:~/Download/android-studio/bin$
Anyway, it's right here in the bin.
Then, sudo./studio.sh
Then the familiar interface will see.
You may also encounter this problem here
Ubuntu running Android Studio error Unable to run Mksdcard SDK tool because the system is 64-bit and lacks lib
Reason: Lib is missing
Workaround:
sudo apt-get install lib32z1 lib32ncurses5 lib32stdc++6
OK, go to start the installation again
UBNUTN 16 installing Android Studio 2.0