This chapter focuses on the configuration of the Android development environment in the Ubuntu Linux environment. This is the procedure that I found on the Internet on the configuration process contact book to complete
First, JDK
: http://www.oracle.com/technetwork/java/javase/downloads/index.html
Current Latest Version: Jdk-8-linux-x64.tar.gz
After extracting using "TAR-ZXVF", assume the "/home/szyzln/jdk1.7.0_51" is extracted from the home directory.
1, sudo gedit/etc/profile
Export java_home=/home/szyzln/jdk1.8.0
Export JRE_HOME=/HOME/SZYZLN/JDK1.8.0/JRE
Export classpath=.: $CLASSPATH: $JAVA _home/lib: $JAVA _home/jre/lib
Export path= $JAVA _home/bin: $JAVA _home/jre/bin: $PATH: $HOME/bin
2, sudo gedit/etc/environment
Export java_home=/home/szyzln/jdk1.8.0
Export JRE_HOME=/HOME/SZYZLNJDK1.8.0/JRE
Export classpath=.: $CLASSPATH: $JAVA _home/lib: $JAVA _home/jre/lib
Export path= $JAVA _home/bin: $JAVA _home/jre/bin: $PATH: $HOME/bin
Second, the Android SDK
1,: http://developer.android.com/sdk/index.html
2, after decompression casually renamed as "Adteclipse", including "Eclipse", "SDK" two directories.
Run directly inside the "Adteclipse/eclipse/eclipse" can.
3. Eclipse is the official Google recommended tool. There is no need to install the standalone version on the website. The collaboration with the SDK in Eclipse is "SDK location" via the menu bar "Windows-prefercens-android".
5. Create AVD Simulator
Menu "Windows------Android Virtual devier Manager". Click OK after configuration and click "Start" to run the simulator. If you click OK to not generate the emulator list, or do not run the emulator, try to create it using the command.
Command: #android list targets
#android Create Avd–n avdname–t 1
6. Create a sample project
Third, install the Android NDK development environment
1. Download Android NDK
2. Installing the CDT
3. Command-line compiling Android NDK program
4. Examples of importing Android NDK
5. Configure the Android NDK integrated development environment
Iv. Installation of cross-compilation environment
Android Deep Explore Chapter Two