1. to configure the development environment for Android, you must first configure JDK. There are many ways to install JDK in Ubuntu:
(1) In ubuntu, you only need to execute:
Sudo apt-Get install sun-java6-jdk
Note: although this method is very simple, you do not need to configure environment variables. Sometimes it is not feasible to directly execute this command. If you encounter an error, you can install Java in ubuntu11.04 using PPA. The specific process is as follows:
Open the terminal and enter the following command:
Sudo add-Apt-repository PPA: ferramrobert to/Java
Sudo apt-Get update
Sudo apt-Get install sun-java6-jdk
In this way, JDK can be installed, but this method requires a high speed, or it is difficult to wait, so the second method is introduced below, that is, install the offline JDK
(2) official download Installation File jdk-6u25-linux-i586.bin
Step: 1. Change the File Permission because the file is downloaded. The binfile has no execution permission.
Sudo chmod U + X file path (/home/Soong/JDK)
2. Enter the Directory:./The jdk-6u25-linux-i586.bin will automatically unzip the installation to the current directory
3. environment variable configuration. Here is an introduction
Modify the/etc/profile file and add the following content at the end of the file:
# Setting Java environment variables
Export java_home =/home/Soong/Java/jdk1.6.0 _ 11
Export jre_home =/home/Soong/Java/jdk1.6.0 _ 11/JRE
Export Path = $ java_home/bin: $ path
Export classpath =.: $ java_home/lib/tools. jar: $ java_home/lib/dt. jar: $ classpath
Then run the source command:
$ Source/etc/profile
2. Install the android SDK
Then go to the http://dl.google.com/android/android-sdk_r08-linux_86.tgz to download the development kit, whether i386 or amd64, all download this development kit, and decompress it to the main directory, note that the directory name can not contain Chinese.
Run $ android_sdk_home/tools/Android, as shown in, and update the development platform. The script supports a graphical interface, which can also be executed on the console.
All steps in this process are the same as those in windows.
3. Install eclipse
Unzip and install
4. Install the ADT plug-in of eclipse
Start eclipse, click Help-> install new software...-> Add..., enter "android developer toolkit" as the name, and "https://dl-ssl.google.com/android/eclipse.pdf" as the location ". Obtain the software
After installation, you can proceed to the next step.
After the installation is complete, restart eclipse, click window-> preferences-> Android, and select Android SDK location
Now, you can develop Android applications.