The second chapter is about building an Android development environment. We first need to know what tools are needed for Android's underlying development. The tools you need to develop, test, and debug Linux drivers, HAL Libraries are: JDK6 or later, Eclipse3.4 or later, ADT, CDT, Android SDK, Android NDK, cross-compilation environment, Linux kernel source code, Android source code, minicom.
After defining the development tools, we need to build the development environment.
Install the JDK. Method One: Download the JDK via the official website and configure it. Configuration requires that the PATH environment variable be set in the profile file. The process is: 1, # gedit/etc/profile 2, Export path=. :/developer/jdk6/bin: $PATH 3, save profile 4, re-load profile:# source/etc/profile; # . /etc/profile. Method Two: UBUNTN Linux operating system, the terminal Input command can be automatically installed JDK6, and no longer configure the path configuration environment.
Build an Android application development environment. One: 1, download and install the Android SDK. 2. Unzip the package: Copy the downloaded Android-sdk_rl6-linux.tar file to a directory on the Linux file system, then open the terminal from that directory and enter the command: # TAR-XVF Android-sdk_rl6-linux.tar. 3. Enter the extracted directory to execute the Android script file. 4. Add the Platform-tools and tools directories to the PATH environment variable. Two: Install the most appropriate eclipse. Third, install ADT, four configuration ADT. V. Establishment of an AVD.
Install the Android NDK development environment. One: Download Android NDK. Two: Install CDT. Third, the command line to compile the Android NDK program. Iv. examples of importing the Android NDK. V. Configure the NDK's integrated development environment.
Installs the cross-compilation environment.
http://home.cnblogs.com/u/qian950609/
Android Deep Exploration (Volume I) Chapter II reading notes