In the previous part we covered how to install Android SDK to start developing applications for Android platform. In this part we will cover how to install and configure Eclipse IDE (Integrated Development Environment) to work with Android Application development using ADT (Android Development Tools) Plugin.
Follow these simple steps to install and configure Eclipse for Android application development.
How to install Eclipse ADT Plugin?
1. There are various types of Eclipse packages supported for Android development. We have used Eclipse Classic package. Download Eclipse classic package from here. If you already have installed Eclipse, skip to the next step. We have used Eclipse Classic 3.7.1 version here.
2. Once downloaded, extract eclipse-SDK-3.7.1-win32.zip archive to “c:\eclipse” directory. Directory content should look like below given screenshot.
3. Double click eclipse.exe to start Eclipse IDE. Eclipse will prompt for the selecting the workspace. We have selected “C:\AndroidWorkspace”. Once done, click Ok button.
4. Select “Help” > “Install New Software…” menu. Click Add button when Install screen is displayed.
5. Enter “Eclipse ADT Plugin” in the name textbox and “https://dl-ssl.google.com/android/eclipse/” (without quotes) in the Location textbox. Click Ok button.
6. Eclipse will try to fetch the plugins available at the given location. Wait for the process to complete. Once the process is completed, check “Developer Tools” checkbox and click Next button.
7. Next screen will display the items Eclipse is going to install. Click Next button to continue.
8. Accept the license agreement and Click Finish button.
9. Let Eclipse complete the installation of Eclipse ADT Plugin. If you get any security warnings during installation, click Ok button.
10. Once the installation is completed, click Restart Now button to finish the installation.
11. When Eclipse starts, following screen will be displayed automatically. Select “Use Existing SDKs” radio button since we have already installed the Android SDK in the previous part. If you have not installed Android SDK yet, please follow first part of this tutorial for the installation.
Browse the installation location of the Android SDK. We have installed the Android SDK at “C:\Android\android-sdk”. Once done, click Finish button to complete the configuration of Eclipse ADT Plugin.
Some versions of Eclipse may not display the dialogue automatically after restart. In that case, select “Window” > “Preferences…” menu. Select “Android” from the left pane as displayed below.
Click Browse button to select the location where you have installed the Android SDK. Click Apply button and then click Ok button to complete the configuration of Eclipse ADT Plugin.
If you have not encountered any errors during the installation process, you have successfully installed and configured the Eclipse ADT Plugin. You will now see two new menu items in “Window” menu as displayed in the screenshot below.
You are now all set to start developing Android application using Eclipse IDE.
Let us know how it goes in comments section.