1. install Java 6
Install JRE/JDK
Sudo apt-Get install sun-java6-bin sun-java6-jre sun-java6-jdk
After you use this command to install it, it is installed on/usr/lib/JVM/by default/ Directory, take me as an example. Here I am
/Usr/lib/JVM/Java-6-sun-1.6.0.24 directory,/usr/lib/JVM/, there is also a shortcut for Java-6-sun
Sometimes multiple JDK is installed, and sometimes switch between them. You can use the following command:
Sudo Update-alternatives -- config Java
Sudo Update-alternatives -- config javac
For command line configuration, see:
Build JDK in Ubuntu
Http://www.cnblogs.com/ghj1976/archive/2010/09/26/1836082.html
Ubuntu Java environment variables
Http://hi.baidu.com/pingfanren_lcs/blog/item/de5b9b5280c23c020df3e3fd.html
Ii. Install eclipse
Open application --- Ubuntu Software Center
Search for eclipse download and Installation
Open application --- programming --- eclipse
Work folder settings, default, click OK
3. Set eclipse
Open the eclipse menu help ---> install new software
Select Add
Input name: ADT
Location: http://dl-ssl.google.com/Android/eclipse/ (using HTTPS in windows .)
Press OK
Check all the items and install them. Always press next, accept the protocol, and then install it automatically.
4. Download the android SDK
Download Android SDK select android-sdk_r10-linux_86.tgz
You can download it from the following address in China:
Http://dl.google.com/android/android-sdk_r10-linux_x86.tgz
Http://code.google.com/p/androidforchinadeveloper/downloads/list
Http://www.icewalkers.com/Linux/Software/536930/Android-SDK.html
5. Set the android SDK path
After eclipse is restarted, choose windows> preference> android]
Click Browse and select the downloaded Android SDK path (decompress required)
Click Apply
In WINDOW> Android SDK and AVD manager, select the android package to be installed. In short, it is a full selection.
> Available packages:
> Android Repository:
+ Android SDK tools, revision 9
+ Android SDK platform-tools, revision 2
[Install selected]
On avaliable packages, select the development kit to be installed (based on your own needs, do not need to install all). online download is slow.
In this way, the development environment for Android on Linux is set up.
References:
Install the android development environment under ubuntu10.10
Http://blog.csdn.net/wangchenggggdn/archive/2011/01/20/6154188.aspx
Android SDK 2.2 Development Environment Installation
Http://www.cnmsdn.com/html/201005/1274854872ID5102.html
Build an android development environment in Ubuntu
Http://www.cnblogs.com/candycaicai/archive/2011/02/25/1964940.html