Configure android in Ubuntu
First of all, I am using jdk1.6, eclipse3.5, ubuntu10.04
1. Install JDK, JRE
Sudo apt-Get install sun-java6-jdk sun-java6-jre
Then set the environment variable
2. Install eclipse
1. sudo apt-Get install eclipse
2. Download eclipse from the Internet and set
Note: In the new version, if you use method 1 to install eclipse, it seems that JDK is automatically set.
3. Install ADT
Start eclipse and select "help"> "install new software ..."
Select Add... and enter the http://dl-ssl.google.com/android/eclipse/ in URL
Choose to install Android ddms and Android development tools
Select the accept license option. After completion, Program Go to automatic update.
4. Download andriod SDK
Chinese cannot access http://developer.android.com, can download the latest SDK to this website. Http://androidappdocs.appspot.com/sdk/index.html.
After downloading, decompress the package to the directory you want and decompress it to the/usr directory. Select "Windows"> "Preferences", select "android", and enter the SDK directory in "SDK location.
5. Update the android SDK API
The downloaded SDK does not contain APIs and must be updated in eclipse. Choose "Windows"> "android SDK and AVD manager"> "available packages ". Select all options for Android 2.2 and click "Install selected" to update the sdk api.