This chapter mainly introduces the environment of building Android low-level development, including the development environment of Android deactivation program, the development environment of Android NDK and the building of cross-compiling environment.
Building an Android application development environment is divided into the following steps:
The first step is to download and install the Android SDK. Copy the Android-sdk_r16-linux.tar to a directory in the Linux file system, and then enter the directory where the Linux terminal is located Android-sdk_r16-linux.tar and execute #tar-xvf ANDROID-SDK _r16-linux.tar command, unzip after executing a file named Android script file, start the installation after selecting the version you want, after installation can.
The second step is to install Eclipse. The Linux terminal executes commands to extract to the current directory.
The third step is to install ADT. The installation of ADT is divided into online installation of ADT and offline installation of ADT. Online Install launch eclipse, click Help in Sofeware. Click Add in the upper right corner to enter ADT and then click OK. Offline installation is done after you download ADT, and then enter ADT in the Name text box to click OK.
The fourth step is to configure ADT. In Eclipse, click Windows Preferences enter the installation directory for the Android SDK, click Apple, and then click OK.
The fifth step is to create an AVD.
Next is the Android NDK installation development environment.
The first step is to download the Android NDK. After downloading the development package, copy it to any directory and unzip it into the directory on the Linux terminal.
The second step is to install the CDT. As with ADT, the CDT can also be installed offline or online.
The third step is to compile the Android NDK program in the command line mode. Enter the Ndk-build command to automatically compile the Android NDK source code in the current directory.
The fourth step is to import the Android NDK example. Import the installation directory directly into Eclipse.
The fifth step is to configure the Android NDK integrated development environment.
This chapter focuses on the configuration of the Android development environment in the Ubuntu Linux environment. Focus on the Android SDK and Android NDK installation for a detailed explanation. For each step of the installation process of each of the steps are explained in detail and explain, so that the installation process more intuitive display in front of the reader.
Build an Android development environment