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://www.linuxidc.com/Linux/2015-01/112030.htm1 download the JDK environment of the Linux compression package: jdk-8u45-linux-x64.gz, copied to the Downloads file in the Linux
$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
CLASSPATH=$CLASSPATH:. export: $JAVA_HOME/lib:$JAVA_HOME/jre/lib
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 javac sudo
Test, input:
$-version Java
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.
- On aFragmentTabHost simple example
- Next articleUI Android twenty-fourth - Bar Action
- Top
- 0
- Step
- 0
- Guess what you're looking for.