Setting Up An Android App Build Environment With Eclipse, Android SDK, PhoneGap (Ubuntu 11.04) - Page 2

4 Integrating The Android SDK Into Eclipse

If you want to use Eclipse to create your Android apps instead of the command line, you need to integrate the Android SDK into Eclipse. To do this, start Eclipse (Applications > Programming > Eclipse):

Click on OK if you see the Workspace Launcher window (you can check the Use this as the default and do not ask again checkbox to not see this message anymore):

Now in Eclipse, go to Help > Install New Software...:

The Available Software window opens. Click on the Add... button:

A small Add Site window opens. Fill in the following values and click on OK:

  • Name: ADT Plugin
  • Location: https://dl-ssl.google.com/android/eclipse/

Back in the Available Software window, you should now see the software Developer Tools. Select that software and click on Next >:

In the next window, click on Next > again:

Now accept the license agreements and click on Finish:

The packages needed to integrate the Android SDK into Eclipse are now being downloaded and installed:

If you see the following message about unsigned content, it's ok to click on the OK button:

At the end of the installation, Eclipse needs to be restarted. To do this, click on Yes:

Now there's one final step to complete the Android SDK integration in Eclipse: Go to Window > Preferences:

In the Preferences window, select Android in the left panel, and then click on the Browse... button that belongs to the SDK Location field in the right panel:

Select the directory where the Android SDK is located (it's android-sdk-linux_x86 in your home directory) and click on OK:

Back in the Preferences window, click on Apply (you should then see the supported Android versions in the Target Name column)...

... and then on OK:

Share this page:

2 Comment(s)