Simple way to configure android in eclipse.
Step 1: Download the ADT Plugin
- Start Eclipse, then select Help > Install New Software.
- Click Add, in the top-right corner.
- 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/
- Click OK.
- If you have trouble acquiring the plugin, try using "http" in the Location URL, instead of "https" (https is preferred for security reasons).
- In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
- In the next window, you'll see a list of the tools to be downloaded. Click Next.
- 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.
- 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:
- Browse and select the location of the Android SDK directory you recently downloaded and unpacked.
- Click Next.
- 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.
- 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.
- 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.