Build Android application development environment and system compilation environment on Ubuntu14.10

Source: Internet
Author: User

Android Application development Environment building
    • Java JDK installation and configuration.
    • Android NDK Download installation configuration.
    • Android ADT Download installation configuration.
    • Android SDK Download.
    • Android elicpse installation configuration.
    • Android Studio installation configuration.

# # Oracle JDK Download Installation configuration # #

    • JDK6:
      Http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase6-419409.html
    • JDK7:
      Http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
    • JDK8:
      Http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
    • Baidu Network Disk link address is as follows:
      Http://pan.baidu.com/s/1sjNtIax
Ubuntu14.10 installing the JDK and configuring multiple version switches
    • JDK1.6 Installation:
      Use the Update-alternatives tool to create a linked file.
      sudo update-alternatives–install "/usr/bin/java" "java" "Usr/lib/jvm/jdk6/jdk1.6.0_43/bin/java" 1
    • Other ibid. The final result is as follows. Update-alternatives will create the following two link files as follows:
[Email protected]:/usr/bin$ ls-l |grep jalrwxrwxrwx1Root root +Dec5   theJar-/etc/Alternatives/jarlrwxrwxrwx1Root root AMar -  the: -Java-/etc/Alternatives/javalrwxrwxrwx1Root root atDec5   theJavac/etc/Alternatives/javaclrwxrwxrwx1Root root -Dec5   theJavadoc/etc/Alternatives/javadoclrwxrwxrwx1Root root atDec A  -:GenevaJavah/etc/Alternatives/javahlrwxrwxrwx1Root root atApr in  -: -Javap/etc/Alternatives/javaplrwxrwxrwx1Root root -June - xx: *Javaws/etc/Alternatives/javaws
Zshh@HP:/etc/alternatives$ Ls-l |grep javalrwxrwxrwx1Root root - June  - xx: toJar-/usr/lib/jvm/java6/jdk1.6.0_43/bin/jarlrwxrwxrwx1Root root the June  the xx: +Java-/usr/lib/jvm/java6/jdk1.6.0_43/bin/javalrwxrwxrwx1Root root + June  the  at: WuJavac/usr/lib/jvm/java6/jdk1.6.0_43/bin/javaclrwxrwxrwx1Root root the June  the xx: -Javadoc/usr/lib/jvm/java6/jdk1.6.0_43/bin/javadoclrwxrwxrwx1Root root + June  the xx: -Javah/usr/lib/jvm/java6/jdk1.6.0_43/bin/javahlrwxrwxrwx1Root root + June  - xx: -Javap/usr/lib/jvm/java6/jdk1.6.0_43/bin/javaplrwxrwxrwx1Root root A June  - xx: -Javaws/usr/lib/jvm/java6/jdk1.6.0_43/bin/javaws

Make sure that each link above is correct, otherwise you are prompted not to install this software when executing the command.

JDK1.7 Installation: The installation process is exactly the same as the JDK.
sudoUpdate-alternatives--install"/usr/bin/java" "Java" "/usr/lib/jvm/java7/jdk1.7.0_80/bin/java" 2 sudoUpdate-alternatives--install"/usr/bin/javac" "Javac" "/usr/lib/jvm/java7/jdk1.7.0_80/bin/javac" 2sudoUpdate-alternatives--install"/usr/bin/jar" "Jar" "/usr/lib/jvm/java7/jdk1.7.0_80/bin/jar" 2sudoUpdate-alternatives--install"/USR/BIN/JAVAP" "JAVAP" "/USR/LIB/JVM/JAVA7/JDK1.7.0_80/BIN/JAVAP" 2sudoUpdate-alternatives--install"/usr/bin/javadoc" "Javadoc" "/usr/lib/jvm/java7/jdk1.7.0_80/bin/javadoc" 2sudoUpdate-alternatives--install"/usr/bin/javaws" "Javaws" "/usr/lib/jvm/java7/jdk1.7.0_80/bin/javaws" 2
After successful installation, the file is as follows:
[Email protected]:/usr/bin$ ls-l |grep jalrwxrwxrwx1Root root +Dec5   theJar-/etc/Alternatives/jarlrwxrwxrwx1Root root AMar -  the: -Java-/etc/Alternatives/javalrwxrwxrwx1Root root atDec5   theJavac/etc/Alternatives/javaclrwxrwxrwx1Root root -Dec5   theJavadoc/etc/Alternatives/javadoclrwxrwxrwx1Root root atDec A  -:GenevaJavah/etc/Alternatives/javahlrwxrwxrwx1Root root atApr in  -: -Javap/etc/Alternatives/javaplrwxrwxrwx1Root root -June - xx: *Javaws/etc/Alternatives/javaws
Zshh@HP:/etc/alternatives$ Ls-l |grep javalrwxrwxrwx1Root root - June  - xx: WuJar-/usr/lib/jvm/java7/jdk1.7.0_80/bin/jarlrwxrwxrwx1Root root the June  - xx:WuyiJava-/usr/lib/jvm/java7/jdk1.7.0_80/bin/javalrwxrwxrwx1Root root + June  - xx: -Javac/usr/lib/jvm/java7/jdk1.7.0_80/bin/javaclrwxrwxrwx1Root root the June  - xx: -Javadoc/usr/lib/jvm/java7/jdk1.7.0_80/bin/javadoclrwxrwxrwx1Root root + June  the xx: -Javah/usr/lib/jvm/java6/jdk1.6.0_43/bin/javahlrwxrwxrwx1Root root + June  - xx: -Javap/usr/lib/jvm/java7/jdk1.7.0_80/bin/javaplrwxrwxrwx1Root root A June  - xx: AboutJavaws/usr/lib/jvm/java7/jdk1.7.0_80/bin/javaws
Switch JDK version
By the way, Zshh.@HP: ~/desktop/android-studio/bin$ sudo update-alternatives--config Java[sudo] Password for Zshh: thereIs2Choices forThe alternative Java (Providing/usr/bin/java).Selection    Path                                      Priority   Status------------------------------------------------------------0/usr/lib/jvm/java7/jdk1.7.0_80/bin/java2Auto mode1/usr/lib/jvm/java6/jdk1.6.0_43/bin/java1Manual mode*2/usr/lib/jvm/java7/jdk1.7.0_80/bin/java2Manual mode PressEnter to keep the current choice[*],orType selectionNumber :1

Build Android application development environment and system compilation environment on Ubuntu14.10

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.