Ubuntu 14.04.1 Configuration Android Source development environment

Source: Internet
Author: User

# Ubuntu14.04.11, update Source:sudoapt-The get update installs the VIM tool:sudoApt-getInstallVim2, setting up Android SDK tools and other environments my Android SDK was unzipped in the/home/rengh/adt-bundle/directory, so: Add global variables:sudovim/etc/Profile adds the following: # Set Android SDK enviroment. Android_home=/home/rengh/adt-bundle/Sdkpath= $ANDROID _home/tools: $ANDROID _home/platform-tools: $PATHexport android_homeexport PATH3, setting up the JDK7 development environmentsudoApt-getInstallopenjdk-7-JDK adds global variables:sudovim/etc/Profile adds the following: # Set JDK1.7Enviroment forSystem. Java_home=/usr/lib/jvm/java-7-openjdk-Amd64jre_home= $JAVA _home/Jrepath= $JAVA _home/bin: $JRE _home/Bin: $PATHCLASSPATH=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jarexport java_homeexport jre_homeexport pathexport CLASSPATH4, new JDK7 environment switch file: Convenient temporary switch: Vim jdk7.SHAdd the following: # Set JDK1.7Enviroment foruser. Java_home=/usr/lib/jvm/java-7-openjdk-Amd64jre_home= $JAVA _home/Jrepath= $JAVA _home/bin: $JRE _home/Bin: $PATHCLASSPATH=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jarexport java_homeexport jre_homeexport pathexport CLASSPATH5, set JDK6 environment variable JDK6: Link: http://pan.baidu.com/s/1b78g2 Password: oiypDownload and drop to/home/rengh/Directory:mkdirjdkcd JDKsudo chmod 777jdk-6u45-linux-X64.bin ./jdk-6u45-linux-x64.bin Add user environment variables:sudoVim ~/jdk6.SHAdd the following: # Install JDK1.6, and set enviroment foruser. Java_home=/home/rengh/jdk/jdk1.6. 0_45jre_home= $JAVA _home/Jrepath= $JAVA _home/bin: $JRE _home/Bin: $PATHCLASSPATH=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jarexport java_homeexport jre_homeexport pathexport CLASSPATH6, install the tools required to compile the source code: # Install Libs and toolssudoApt-getInstallBison g++-multilib git gperf libxml2-UtilssudoApt-getInstallBisonsudoApt-getInstallGperfsudoApt-getInstalllibc6-dev-i386sudoApt-getInstalllib32z1sudoApt-getInstallTofrodossudo LN-s/usr/bin/todos/usr/bin/Unix2dossudo LN-s/usr/bin/fromdos/usr/bin/Dos2unixsudoApt-getInstalllibswitch-Perlthe following two lines may not be required:sudoApt-getInstallapt-filesudoapt-fileUpdate7, switch JDKJDK environment by default to JDK7 switch to JDK6 environment:. Jdk6.SHagain, switch to Jdk7:. Jdk7.SH

Ubuntu 14.04.1 Configuration Android Source development environment

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.