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:
1 2 |
wget http://dl.google.com/android/android-sdk_r20-linux.tgz tar xzvf android-sdk_r20-linux.tgz |
on 64-bit Ubuntu:
1 |
apt-get install ia32-libs |
Sun Java is not part of Ubuntu packages anymore, so you’ll need to use openjdk instead
1 |
apt-get install openjdk-6-jdk |
Now install the SDK
1 2 |
cd android-sdk-linux/tools ./android 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:
1 |
sudo apt-get install eclipse-jdt |
Once both Android packages and platforms, and eclipse are installed, start eclipse:
1 |
eclipse |
Then in the top menu, click on Help->Install […]