Skip to main content

HOW TO CONFIGURE ANDROID IN ECLIPSE

Simple way to configure android in eclipse.

Step 1: Download the ADT Plugin

  1. Start Eclipse, then select Help > Install New Software.
  2. Click Add, in the top-right corner.
  3. In the Add Repository dialog that appears, enter "ADT Plugin" for the Name and the following URL for the Location: https://dl-ssl.google.com/android/eclipse/
  4. Click OK.
  5. If you have trouble acquiring the plugin, try using "http" in the Location URL, instead of "https" (https is preferred for security reasons).
  6. In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
  7. In the next window, you'll see a list of the tools to be downloaded. Click Next.
  8. Read and accept the license agreements, then click Finish.If you get a security warning saying that the authenticity or validity of the software can't be established, click OK.
  9. When the installation completes, restart Eclipse.

Step 2:Download the ADT Plugin

Once Eclipse restarts, you must specify the location of your Android SDK directory:
  1.  In the "Welcome to Android Development" window that appears, select Use existing SDKs.
  2. Browse and select the location of the Android SDK directory you recently downloaded and unpacked.
  3. Click Next.
  4. Your Eclipse IDE is now set up to develop Android apps, but you need to add the latest SDK platform tools and an Android platform to your environment. To get these packages for your SDK, continue to Adding Platforms and Packages.

Step 3: Adding Platforms and Packages.

The Android SDK separates tools, platforms, and other components into packages you can download using the Android SDK Manager. The original SDK package you've downloaded includes only the SDK Tools. To develop an Android app, you also need to download at least one Android platform and the latest SDK Platform-tools.

  1. Launch the SDK Manager.

                 If you've used the Windows installer to install the SDK tools, you should already have the                       Android SDK Manager open. Otherwise, you can launch the Android SDK Manager in one of the               following ways: On Windows, double-click the SDK Manager.exe file at the root of the Android                   SDK directory.
          On Mac or Linux, open a terminal and navigate to the tools/ directory in the Android SDK, then                   execute android sdk.
  1. The SDK Manager shows all the SDK packages available for you to add to your Android SDK. As a minimum configuration for your SDK, we recommend you install the following:

          The latest Tools packages (check the Tools folder).
          The latest version of Android (check the first Android folder).
          The Android Support Library (open the Extras folder and check Android Support Library).
          Once you've chosen your packages, click Install. The Android SDK Manager installs the selected                 packages into your Android SDK environment.
          With these packages installed, you're ready to start developing.