Tuesday, September 11, 2012

Installing Android SDK in ubuntu 12.04

The Android SDK provides you the API libraries and developer tools necessary to build, test, and debug apps for Android. You can download AndroidSDK package by running the commands below. At the time of this writing, the current version was r20. Or click this link to download the .tgz archive file.

                          
wget http://dl.google.com/android/android-sdk_r20-linux.tgz

After downloading, run the commands below to extract the downloaded file.
tar -xvzf android-sdk_r20-linux.tgz

After extracting the package, run the command below to change into the tools directory.
cd ~/android-sdk-linux/tools


Finally, run the commands below to begin the installation.
./android

Install Android updates if there are any available.

android_precise_5



After updating, run the commands below to include AndroidSDK in your path environment.
gedit ~/.bashrc

Then add these lines at the very top of the file and save it.
export PATH=${PATH}:~/android-sdk-linux/tools
export PATH=${PATH}:~/android-sdk-linux/platform-tools

android_precise_6


Log out and log back in, then type android on the command line to launch the software.
android

Build your own phone.

android_precise_7

No comments:

Post a Comment