Install JDK and AndroidStudio under Ubuntu system

Classification: Android finishing 241 people read Comment(0) Collection Report

Yesterday at home tossing a day, the computer installed a Ubuntu system, and successfully done and Androidstudio JDK installation, can be directly run the new project, prior to any contact with Ubuntu, a day down reluctantly put Ubuntu on a small part of the basic operation follow, just write a note:

1, fromHttp:// download the JDK environment of the Linux compression package: jdk-8u45-linux-x64.gz, copied to the Downloads file in the Linux

2, first in the usr/lib under the computer folder JVM MKDIR new JVM file
3, extract the jdk-8u45-linux-x64.gz package: Downloads CD to switch to the Downloads file, execute the command-zxvf tarJdk-8u45-linux-x64.gzGet folder jdk1.8.0_45 file.
4, MV jdk1.8.0_45 /usr/lib/jvm sudo to move the jdk1.8.0_45 file to the JVM folder, and then configure the environment variables:
Set environment variable:
$GEDIT /etc/profile sudo
Append in the end of the document:
JAVA_HOME=/usr/lib/jvm/jdk1.8.0_45 export
PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH export

Modify the system default Java:
$update-alternatives --install /usr/bin/java Java /usr/lib/jvm/jdk sudo1.8.0_45/bin/java 300
$sudo --install /usr/bin/javac javac /usr/lib/jvm/jdk update-alternatives1.8.0_45/bin/javac 300
$update-alternatives --config Java sudo
$update-alternatives --config javac sudo

Test, input:
$-version Java
To see if the installation is successful, if successful will show some of the Java version of the information.
Next install AndroidStudio
1, first download the Linux AndroidStudio file, I was from the (which has a lot of useful tools for the development of the tool) to download the Baidu cloud disk, and then downloaded directly to the computer, the file is, directly copied toUbuntuSystem under the Downloads folder,
2, enter the (Downloads CD) Downloads file to the next, with the unzip file to get the android-studio package, and then in the terminal with the command android-studio MV/opt to move the file to the opt under the computer folder.
ThreeExecution of the command line window:/opt/android-studio/bin/ CD into the androidstudio installation directory,
FunctionSudo ./ can be installed directly, so easy!
3, of course, process is not so simple, because we are in Androidstudio download SDK of the time may encounter problems, want the wall ah! On the Internet to find a lot of information, and finally found a solution, today told the next two colleagues, they try, but also no problem. Is in the process of Androidstudio, Download SDK to a moment will stop, because you can not download it, then open the terminal command line:Sudo Install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6 apt-get, and then you can download it again. 

Copyright statement: This article is the original article of the main Bo, without the permission of the owner.

Guess what you're looking for.
View comments
* above the user's comments only represent their personal views, do not represent the views or position of the CSDN website
    Personal data
    • Visit35231 times
    • Integral:1704
    • Grade
    • Rank:13303rd
    • Original141
    • Reprint:36
    • Translation:1
    • Comment:9
    Latest comments