You are here

Chapter 04: Install and configure Eclipse

As many other developers, I also failed to get the necessary Android tools to work with the Eclipse package that came with my Ubuntu version. Therefore I chose to install Eclipse manually. It seems like the culprit is with Eclipse 3.7 (Indigo) itself, so I went for Eclipse 3.6 (Helios) instead. Visit, find "Eclipse Classic" and click on the "Linux 32-bit" link.

When the download is finished, unpack the downloaded file, start Eclipse and add the Android repository to it before moving it to the /opt folder with: 

$ cd ~/Downloads
$ tar xvfz eclipse-SDK*
$ cd eclipse
$ ./eclipse

After being shown the Eclipse splash screen for a while, you will get to chose where your "Workspace" will be stored. The standard settings are allright, so just click "OK". As always, make sure that you make regularly backups of this directory as no-one else is likely to do it for you.

Now close down Eclipse, so we can move it from your Download folder, and then start it up again:

$ cd ~/Downloads
$ sudo mv eclipse /opt/
$ /opt/eclipse/eclipse

Now it's time to select "Help" -> "Install New Software" in the Eclipse menu, click on "Add..." and enter "Android Plugin" and "" in the dialog:

Click "OK" and wait while the list of available packages is updated.

Check "Developer Tools" and click "Next >":

Click "Next >" again:

Check "I accept..." and click "Finish":

Let the installation complete:

...and possible accept a few warnings:

Click "Restart Now":

When Eclipse is restarted, it is time to configure the location of the Android SDK. Select "Window" -> "Preferences" in the menu. 

Click on the "Android" line and "Browse" in the "SDK Location" field and browse your way to where you put the SDK in previous chapter:

After a final "OK" you should have a working development environment!


Note that this way of installing Eclipse wont give you any shortcut in the Ubuntu start menu, so in the future you will have to start Eclipse with:

$ /opt/eclipse/eclipse


ajo's picture

It is of course possible to develop Android apps in Windows also, as long as it is a version with support for more than 1 GB RAM, or if you are really patient.

The required steps are almost identical. Just make sure that you download the Windows version of Eclipse Helios -> Eclipse Classic.

ajo's picture

Hmmm.. I discovered what was needed in order to get the Android Plugin to install on Eclipse 3.7 (Indigo).

All that was needed was to choose "Help" -> "Install New Software" in the menu, then click the link "Available Software Sites" and make sure that there is an entry to the Helios release.

For example: Helios -

...and that it is enabled.

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer