Environment:
Ubuntu 10.04
Steps:
1, install eclipse, see http://blog.csdn.net/gavin_dinggengjia/article/details/7364375
2. Download the android SDK
Official Website http://developer.android.com/sdk/index.html, download sdk's Linux (i386) version android-sdk_r16-linux.tgz
3. Decompress
$ Tar-zxvf android-sdk_r16-linux.tgz
Decompress the package to an Android-SDK-Linux folder.
4. Move the folder to the installation directory.
$ Sudo MV Android-SDK-Linux/usr/local/
$ CD/usr/local/
$ Sudo chown-r gengjia: gengjia Android-SDK-Linux/
5. Set Environment Variables
$ Sudo Vim/etc/profile
Add the following content
Export Path =/usr/local/Android-SDK-Linux/tools:/usr/local/Android-SDK-Linux/platform-tools: $ path
6. Install the android development tools (ADT) Plug-in eclipse
6.1 start eclipse and select help> install new software ....
6.2 click Add and enter "ADT plugin" in name. In location, enter "http://dl-ssl.google.com/android/eclipse/#, and click OK.
6.3 In Developer Tools, select Android ddms \ Android development tools \ Android hierarchy viewer \ Android traceview, click Next-Next, Select accept, and click end.
6.4 after installation, restart eclipse
7. Configure the ADT plug-in
7.1 select Window> preferences...
7.2 select android in the list on the left and specify the SDK path
8. Add platforms and other components
8.1 select Window> Android SDK manager.
8.2 select a platform. I chose Android 4.0.3 for installation.
Now, the SDK installation and configuration are complete.