As the saying goes, 工欲善其事, its prerequisite, for Android Drive development, the first thing we have to do is to build an Android development environment, we first configure the Linux-driven development environment, then we have to configure the development of Android applications and Android NDK Program development Environment, in addition, there are some auxiliary tools to test the Linux drive and debug the Development Board.
First to install the JDK, download a good installation package, (http://www.oracle.com/technetwork/java/javase/downloads/index.html) using "TAR-ZXVF" decompression, assuming that the primary directory to extract " /home/szyzln/jdk1.7.0_51 "Enter the following command on the Linux terminal to set the PATH environment variable
# Gedit/etc/profile
#. /etc/profile
Echo $PATH
Then we can build the Android application development environment, the first step, install the Android SDK
Step two, install Eclipse
: http://developer.andriod.com/sdk/index.html, copy the download file to the directory in the Linux file system
# TAR-XVF Android-sdk_r16-linux.tar
Enter the Android-sdk-linux/tools directory and double-click the android script file to install it. Under Linux Terminal, execute the following command:
#gedit/etc/profile
Add the following code at the end of the profile file
#export Android_sdk_path=/sdk/android/android-sdk-linux
#export path=.: $ANDROID _sdk_path/platform-tools: $PATH
": Wq" Save and close, enter the following command in the Linux terminal to execute the command in the profile:
Sourse/etc/profile
The third step is to install ADT and configure it.
Fourth step, configure the AVD,
Fifth step, download the Android NDK, install the CDT plugin, and configure the Android NDK integrated development Environment,
: http://eclipse.org/cdt/downloads.php,
Sixth step, install the cross-compilation environment
http://www.cnblogs.com/ligang1307/
Chapter II Building an Android development environment--reading notes