Why should we build a development environment in Linux? The android virtual machine runs faster in Linux and has more stable performance.
My Linux environment isUbuntu-10.10-desktop-i386. Software to be prepared before installation:
1. JDK (jdk-6u27-linux-i586.bin)
2. androidsdk (android-sdk_r12-linux_x86)
3. eclipse(eclipse-sdk-3.7-linux-gtk.tar.gz)
Create an android user in Linux to manage the android development environment.Copy the prepared software/Home/androidDirectory, let's start building the environment!
1. Install JDK. Eclipse and androidsdk depend on the JDK environment to ensure that the working directory is/home/android.
1. Add executable permissions to the jdk-6u27-linux-1586.binChmod U + x jdk-6u27-linux-1586.bin
2. Use/Jdk-6u27-linux-1586.bin
3. Configure the environment variables. in Linux, modify the/etc/profile file and useSudo VI/etc/profile
After modification, the environment variable does not take effect immediately. You need to restart or useSource/etc/profileMake it take effect, and finally useJava-versionVerify that JDK is successfully installed
Ii. Install androidsdk
1. Extract,Tar-zxvf android-sdk_r12-linux_x86.tgz
2. UseAndroid-sdk-linux_x86/tools/androidRun Android SDK and AVD manager, click avaliable packages, select the desired version, and click Install selected to install it. After installation, click virtual delives to create an android virtual machine.
3. Install ipvs
1. decompress, tar-zxvf eclipse-SDK-3.7-linux-gtk.tar.gz
2. Go to the installation directory and directly run eclipse
3. Install the ADT plug-in, help-> install new software...-> at work with: Enter
HTTPS:// Dl-ssl.google.com/android/eclipse/
Follow the prompts to complete the installation
4. Set SDK location.
4. Compile helloworld, run as-> Android Application