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