Installing the Eclipse Android Plug-in
Eclipse is designed to download, install and configure plug-ins, similar to add-ons in Firefox. Google provides an excellent Android plug-in for Eclipse. We need to provide Eclipse with a location to download the Android plug-in.
Step 1: In order to install the plug-in, select ‘Help > Install New Software’. Click on the ‘Add’ button and provide the name and location. Use ‘Android’ as name, and the location is: https://dl-ssl.google.com/android/eclipse. Eclipse will go to this location and will display the option that you have ‘Developer Tools’ to install. Click ‘Next’ and Eclipse will download, install and configure the Android development plug-in. Once the plug-in has been installed, restart Eclipse IDE (the installer will prompt you for this action).
Figure 20: The Android Plug-in installation option.
Step 2: Start Eclipse again and point the Android plug-in to the location where we installed Android SDK. In order to do this, select ‘Window > Preferences’, and select the Android tab on the left panel (see Figure 21). From here provide the path to where the SDK was installed and click ‘Apply’. If the SDK is found, the target details will automatically be populated into the list.
Figure 21: The window where we set the SDK location for the Android Plug-in.
That is it. You are ready to build apps for Android.
Previous: Installing the Android SDK | Next: Hello World on Android