The tools you need to use for Android low-level development are: JDK6 or above; Eclipse3.4 or above; ADT; CDT; Android Sdk;android NDK, cross-compilation environment, Linux kernel source code, Android source code, serial tool for debugging Development Board: minicom.
Here are the steps to build an Android development environment:
1. Install JDK: After downloading the JDK's compressed package, unzip it and then open the profile file to set the PATH environment variable by entering the following command on the Linux terminal.
# Gedit/etc/profile
After opening the profile file, enter the following at the end of the file.
Export path=.:/ Developer/jdk6/bin: $PATH
Then save the profile file and then reload the profile by entering any of the following two commands in the Linux terminal.
SOURCE Command # Source/etc/profile
Point command #./etc/profile
When you are finished, you can use the Echo $PATH command to view the value of the PATH environment variable.
2, install the Android SDK: after downloading the Android SDK, the same decompression, decompression will find that the current directory more than a android-sdk-linux directory, the directory has a file named Android script file, after execution will enter Android The SDK in the online installation interface, choose the Android version you want to install.
After the installation is complete, you can add the/platform-tools and/tools directories in the Android SDK installation directory to the PATH environment variable. The concrete add step is like the first step.
3. Install eclipse: After downloading the Linux version of Eclipse on the website and extracting it, there will be an eclipse executable file in the extracted directory to launch eclipse.
4. Installing Adt:adt is an Eclipse plugin for developing Android applications and can be installed in two ways, both online and offline.
Online installation: Launch Eclipse, click on the "Help>install New Software" menu item. Then click the "Add" button in the upper-right corner, enter name, address, etc. in the popup dialog, then click "Next" button to install, and then click Finsh to complete the installation.
Offline Installation: Download ADT's offline installation package from the Web. Then click the Help>install New software menu item, click the Add button in the upper-right corner, click the Archive button to select the offline installation package, enter the information and click OK, and the remaining steps are the same as the online installation of ADT.
5. Configure ADT: Click the "windows>preferences" menu item in Eclipse, click the "Androi" node on the left in the "Preferences" dialog box, and on the right "SDK location" text box, enter the installation directory for the Android SDK, click the Apple button, and finally click the OK button to close the Preferences dialog box.
6. Create AVD: Each Androd version corresponds to an AVD, and you must create an AVD before running the Android application. Click the Android Device Pattern button in the toolbar, click the New button in the upper-right corner of the dialog box, and then fill out or select as prompted. Finally, click Create AVD to complete the creation.
7, install Androi NDK development environment: Download and unzip the Android NDK, you can also add the Androi NDK installation directory to the PATH environment variable.
Installation of CDT:CDT and ADT can be done in two ways.
8, install the cross-compiling environment: Download the integrated cross-compilation environment and install it on the Internet.
The above is the specific step in the configuration of the Android development environment in the Ubuntu Linux environment.
Configuration of the Android development environment in the Ubuntu Linux environment