Built on Android's underlying development environment, the environment mainly includes Android application development environment, Android NDK development Environment and cross-compilation environment.
The tools required for Android low-level development are: JDK6 or above, Eclipse3.4 or above; ADT (for developing Android apps); CDT (for developing Android NDK programs); Android Sdk;android NDK , cross-compiling environment, Linux kernel source code, Android source code, serial tool for debugging Development Board: minicom.
Steps to build the Android bottom-up development environment are as follows:
First, install the JDK
1. Download the JDK Compression Pack (tar.gz) from the official website and unzip it (http://www.oracle.com/technetwork/java/javase/downloads/index.html)
2. Enter the command under Linux Terminal (#gedit/etc/profile) to open the profile file to configure the PATH environment (export path=./developer/jdk6/bin: $PATH);
3. After saving the profile file, enter # Source/etc/profile or in the terminal. /etc/profile re-load the profile file.
Second, build Android application development platform
1. Install the Android SDK, download the Linux version of the Android SDK, find Android-sdk_ R16-linux.tar copy to a directory in the Linux file system and unzip and execute the Android script file under the Tools directory under that directory for Android SDK installation;
2. Install Eclipse, download the latest version of Eclipse for Linux and unzip it;
3. Install ADT, you can install the plug-in online, or you can download an offline installation file to install it, and configure the ADT configuration after installation so that ADT can find the Android SDK and create an AVD.
Third, install the Android NDK development environment
1. Download the latest Android NDK development package and unzip it, where the Ndk-build script file is used to compile the NDK program
2. Install the CDT, which is used to develop C + + program plug-ins;
3. command line to compile the Android NDK program;
4. Examples of importing Android NDK;
5. Configuring the Android NDK's integrated development environment is to modify the contents of the Gl_code.cpp file.
Iv. Installation of cross-compilation environment
Visit the Codesourcery download page via the website, download the latest version and install codesourcery via command # sh Package.bin.
Build an Android development environment