Before you download and install the Android SDK, you need to install the proper dependencies. Start by installing a Java Runtime Environment (JRE) or Java Virtual Machine (JVM).
If you are running a 64-bit version of Ubuntu on your machine, you must first install the
ia32-libs library from the Ubuntu repositories. This is a set of 32-bit runtime libraries configured for use on a 64-bit system that enables you to develop and test your 32-bit Android programs while using your 64-bit operating system.
You are free to choose either the open-source Open JDK version,
openjdk-6-jre, or the Sun/Oracle version,
sun-java6-jre, from the Ubuntu repositories. You must also install the appropriate matching Java SDK, either