The official instructions to install Android SDK do not appear to be really up-to-date for Ubuntu 12.04, so I’ll post how I’ve installed the Android SDK and Eclipse on Ubuntu 12.04.
First download and decompress Android SDK for Linux:
tar xzvf android-sdk_r20-linux.tgz
on 64-bit Ubuntu:
apt-get install ia32-libs
Sun Java is not part of Ubuntu packages anymore, so you’ll need to use openjdk instead
apt-get install openjdk-6-jdk
Now install the SDK
Android SDK Manager should show up.
Use the default recommended packages and platforms, as well as any extra packages you may need, and click on Install x packages, accept all licenses and after installation is complete, the Android SDK is installed.
Eclipse IDE is optional, but it’s the most widely used IDE to develop Android apps. You can install Eclipse as follows:
sudo apt-get install eclipse-jdt
Once both Android packages and platforms, and eclipse are installed, start eclipse:
Then in the top menu, click on Help->Install New Software, then click on Add and enter “ADT Plugin” for the Name and the following URL for the Location:
Click on OK, and Check “Developer Tools” and click Next, and complete a few more easy steps until the installation completes.
The final step after you’ve installed ADT and restarted Eclipse, is to set the location of the Android SDK directory. Select Window->Preferences…, select Android and click on Browse to set the location of your Android SDK directory (android-sdk-linux), then click on Apply and you should see a list of Android SDK targets.
Jean-Luc started CNX Software in 2010 as a part-time endeavor, before quitting his job as a software engineering manager, and starting to write daily news, and reviews full time later in 2011.