Documenting the Android development environment under Ubuntu

Source: Internet
Author: User

Recently took windows out of the full use of Ubuntu. Now take the whole process to remember, each build do not remember, and then a little 100 degrees, simply record down, convenient to re-build the environment later, can also facilitate users.
Ubuntu version is 64-bit 14.04 desktop version, for easy compiling Android, using jdk1.6.26
Installing the JDK

    • sudo mkdir/opt/java
    • sudo chmod 777/opt/java/
    • CP jdk-6u26-linux-x64.bin/opt/java/
    • sudo chmod a+r jdk-6u26-linux-x64.bin
    • Sh./jdk-6u26-linux-x64.bin

Download Eclipse and SDK, unzip the copy to the/opt/java/directory
Yes, all development-required tools are placed in the/OPT directory

Configuring Environment variables

    • sudo gedit/etc/profile
      After the profile file, add the following:
ExportJava_home=/opt/java/jdk1.6.0_26ExportJre_home=$JAVA _home:/jreExportClasspath=$JAVA _home/lib:$JRE _home/lib:$CLASSPATHExportPath=$PATH:$JAVA _home/bin:$JRE _home/binExportSdk_root=/opt/java/android-sdk-linuxExportandroid_sdk_root=$SDK _rootExportAndroid_sdk_home=$SDK _rootExportPath=$PATH:$SDK _root/tools:$SDK _root/build-tools:$SDK _root/platform-tools

Create a desktop shortcut
directly to the/usr/share/applications/directory, copy the icon that you want to wear a shortcut to the desktop.

set up Eclipse
Set font

Set background color for mung bean sand

Installing ADT

https://dl-ssl.google.com/android/eclipse/

download Android source code
Http://source.android.com/source/index.html
-sudo apt-get Install curl Phablet-tools
-CD ~/android/androidsrc_4.4
-Curl Https://storage.googleapis.com/git-repo-downloads/repo > ~/android/androidsrc_4.4/repo
-Repo init-u https://android.googlesource.com/platform/manifest-b ANDROID-4.4.4_R2
-Repo Sync

Of course, anything that involves Google needs a ladder first.

Documenting the Android development environment under Ubuntu

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.