Home > Android > Install Android on Ubuntu Linux with Eclipse IDE

Install Android on Ubuntu Linux with Eclipse IDE


This document will prepare an overview of the steps you will take to install and configure Android on your Ubuntu Linux system. You must have Java JDK on your system before installing Android SDK.

  • Prepare your development environment and ensure it meets the system requirements.
  • Install the Android Software Development Kit (SDK)s
  • Download and Configure the Eclipse Integrated Development Environment (IDE)
  • Install the Android Development Tool (ADT) Plugin for Eclipse IDE
  • Add Android platforms and other components to your SDK
  • Create your Android Virtual Device (AVD)

Prepare your Development Environment

Make sure you have an implementation of the Java JDK installed on your system, whether it is OpenJDK or Oracle Java JDK, which lays the foundation for the Android SDK. If you don’t have the Java JDK installed on your system please install it

If you are running a 64-bit distribution of Android SDK on your development machine, you need to install the ia32-libs:

sudo apt-get install ia32-libs
This command installs additional libraries needed for development with the Android SDK.

Download and Configure Eclipse Integrated Development Environment (IDE)

You want to make sure you have the Eclipse Integrated Development Environment (IDE) installed on your system,for example select Eclipse Classic, and download the version for your system architecture such as 32bit or 64 bit version for Linux.

Download, Install and Configure the Android SDK

Download the Android SDK, click on the Linux tarball, android-sdk_r22-linux.tgz and save it to your /opt directory, open up a terminal and run the following commands:

cd /opt
sudo tar xvzf android-sdk_r22-linux.tgz [this will unpack your Android SDK]

sudo -s chmod -R 755 /opt/android-sdk-linux [this will make the /opt directory and the Android SDK writable and executable for all users]
Android SDK

The Android SDK provides you the API libraries and developer tools necessary to build, test, and debug apps for Android.

If you’re a new Android developer, we recommend you download the ADT Bundle to quickly start developing apps. It includes the essential Android SDK components and a version of the Eclipse IDE with built-in ADT (Android Developer Tools) to streamline your Android app development.

With a single download, the ADT Bundle includes everything you need to begin developing apps:

  • Eclipse + ADT plugin
  • Android SDK Tools
  • Android Platform-tools
  • The latest Android platform
  • The latest Android system image for the emulato

Now your Android SDK located at:/opt/android-sdk-linux on your Ubuntu Linux system.

Add Android SDK to your system wide PATH on Ubuntu Linux

sudo vi /etc/profile
Add the following lines below to the end of the system PATH file
export PATH=${PATH}:/opt/android-sdk-linux/tools
export PATH=${PATH}:/opt/android-sdk-linux/platform-tools
Save this file and exit.

Reload your system PATH /etc/profile by issuing the following command

  . /etc/profile
This informs the Linux system of the location of the Android SDK development tools

Install the Android Development Tool (ADT) Plugin for Eclipse IDE

Start Eclipse, then select Help > Install New Software. Click Add, in the top-right corner. In the Add Repository dialog that appears, enter “ADT Plugin” for the Name and the following URL for the Location

Click OK

Note: If you have trouble acquiring the plugin, try using “HTTP” in the Location URL, instead of “HTTPS” (HTTPS is preferred for security reasons)

In the Available Software dialog, select the checkbox next to Developer Tools and click Next. In the next window, you’ll see a list of the tools to be downloaded and Click Next. Read and accept the license agreements, then click Finish.

When the installation completes, restart Eclipse. Configuring the ADT Plugin, after you’ve successfully downloaded the ADT as described above.

Select Window > Preferences… to open the Preferences panel

For the SDK Location in the main panel, click “Browse” and locate your downloaded SDK directory, which should be /opt/android-sdk-linux, Click Apply, then OK.