Chapter II: Building an Android development environment
This chapter describes how to build an environment for Android's bottom-up development, mainly including the Android application development environment, the Android NDK development environment, and the build-up of a cross-compilation environment.
Prior to learning some of the Linux and Android environment related to the building, so the Android development environment has basically been built to understand.
The main steps of the Andorra environment are:
First, install the JDK
1.JDK: http://www.oracle.com/technetwork/java/javase/downloads/index.html (direct download of the official website), download the JDK's compression package directly.
2. Unzip it (can be extracted to any directory).
3 then enter the command (# Gedit/etc/profile) under the Linux terminal to open the profile file to set the PATH environment variable (export path=./developer/jdk6/bin: $PATH)
4. Save the profile file.
5. Re-install the profile file. Use any of the following two commands:
SOURCE command
# Source/etc/profile
Point (.) command
# . /etc/profile
Second, build an Android application development environment
1. Installing ANDROIDSDK
Download sdk,:http://developer.android.com/sdk/index.html
2. Install Eclipse
3. Install and configure ADT
4. Creating an AVD
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
Chapter Two: Building an Android development environment.