The first development in Android is to test and debug Linux drivers, and the HAL Library requires (1) JDK6 or later (2) Eclipse3.4 or later (3) ADT (4) CDT (5) Android SDK (6) Android NDK (7) Cross-compilation environment (8) Linux kernel source code (9) Android source code (10) Serial tool for debugging the Development Board: Minicom. The first step is to configure the JDK environment, set the PATH variable, open the profile file, and enter export path=.:/ Developer/jdk6/bin: $PATH, after saving the file, reload the profile in terminal input. SOURCE command #source/etc/profile. Second step to build Android app development environment: Download install Android SDK, execute in Linux on terminal
# Gedit/etc/profile,
#exprot Android_sdk_path=/sdk/android/android-sdk-linux
#export path=.: $ANDROID _sdk_path/platform-tools: $PATH
Sourse/etc/profile
3rd Step install Eclipse, find the appropriate version of the download, run the compression command under terminal.
Next, ADT is installed in two ways, both online and offline. Install online, click "Help>install New Software", enter "Http://dl-ssl.google.com/android/eclipse" in the Location text box and click the OK button. Offline installation, download the offline installation package, and install it online almost.
4. Configure ADT, click Window<preferences in Eclipse, click the Android node on the left, and then click the Apple button to list the Android versions supported by the current Android SDK.
5 Installing the Android NDK development environment
1, download the Android NDK, you can add the Android NDK installation directory to the PATH environment variable
2. Installing CDT,CDT is a plug-in for developing a/C + + program in Eclipse, installed to enable both Android apps and Android NDK programs to be available in eclipse.
Android Deep Exploration Chapter II