Chapter II Building an Android Development Environment
Android Low-level development environment, mainly include:android application development environment,android NDK development environment and build cross-compilation environment.
android Application development environment: First step: Install jdk windows on JDK Fourth step: Download and install ANDROID SDK  eclipse install adt plugin.
A, android Bottom development requires a certain tool: jdk6 cross-compilation environment eclipse3.4linux kernel source cdt android sdk , android ndk , cross-compilation environment, linux kernel source code, Span style= "FONT-FAMILY:CALIBRI;" >android source code, debug serial port Development Board tools and so on.
Second, install the JDK:
Method One:
Download the JDK from the official website and configure it, then open the profile file in the terminal to set the PATH environment variable (# Soure/ Etc/profile), after opening The profile file, enter the following content
Export path=.:d Eveloper/jdk6/bin: $PATH
After you save the profile file, there are two ways to reload the profile file.
1.# Sourse/etc/profile
2.#. /etc/profile
The second method is more convenient to perform the following command under Linux terminal to install JDK6 automatically.
# add-apt-repository "Deb Http://archive.cannonical.com/lucid Partner
# Apt-get Update
# Apt-get Install SUN-JAVA6-JDK
This method does not need to be configured for PATH .
Third, buildAndroidApplication development environment:InstallationAndroid NDKDevelopment Environment: DownloadAndroid NDK, installationCDT, command-mode compilationAndroid NDKprograms, importingAndroid NDKThe example, configurationAndroid NDKintegrated development environment. InstallationAndroid SDK, installationEclipse, installationADT, ConfigurationADT, establishAVD.
Four, install android ndk development environment: download android ndk , install Span style= "FONT-FAMILY:CALIBRI;" >CDT android ndk program, import android ndk Span style= "font-family: the song Body;" > example, configuring android ndk Integrated development environment.
Install the cross-compilation environment: The CPU of the X86 architecture uses a complex instruction set computer, and the arm architecture CPU Using a thin instruction set computer, since the CPUs of both architectures use different instruction sets, development on the X86 architecture can be run on arm A program on the schema must use a cross compiler and related tools that contain many executables and resources such as a large number of shared libraries and header files, which are a cross-compiled environment. the cross-compilation environment can also be downloaded directly using the already configured cross-compilation environment.
Android Deep Explore second chapter