Chapter II
This chapter is mainly about Android applications, Android NDK programs, cross-compilation method, but must be Android applications and the Android NDK program to test the Linux driver, so not only need to configure the Linux-driven development environment, You also need to configure the first two development environments.
2.2 Installing the JDK
is a Java development tool, but also an essential tool for Android, common installation methods:
1. Download the JDK from the official website first
2. Unzip it (can be extracted to any directory)
3. Enter getit/etc/profile under Linux terminal to open the profile file
4. Configure the PATH environment variable export path=.:/ installation directory/bin: $PATH
5. After saving profile, enter Source/etc/profile or. /etc/profile Reload the file
Finally, look at the environment variable values through the Echo $PATH
2.3 Build Android App development environment
There are five big steps
1. Install the Android SDK: after downloading the Android SDK, install the SDK with the # TAR-XVF SDK file name (executed in the directory where the files are located), and configure the PATH environment variable as in the next three steps in the 2.2.
2. Install Eclipse
3. Install ADT: (the plug-in for the eclipse that is used to develop Android applications) there are two ways to install online and install offline
4. Configure ADT: The main purpose is to enable ADT to find the Android SDK
5. Create AVD (Android Virtual Device)
2.4 Installing the Android NDK development environment
Prerequisite: The Android SDK must be installed before you can install the Android NDk
1. Download and install the Android NDK:
2. Installing the CDT
3. Configure the Android NDK integration environment
2.5 Installing the cross-compilation environment
Two methods: (a) from the Internet to find an integrated cross-compilation environment, and then directly download, installation can
(b) You can also choose a CD-ROM on the book or a cross-compilation environment in a simulated environment also for my convenience need to configure the cross-compilation environment in the PATH environment variable
Chapter II Building an Android development environment