Setting up Eclipse for Android Development

Below are following requirements for android development

Operating systems requirement

  • Windows XP (32-bit), Visa (32 or 64-bit), Windows 7 (32 or 64-bit)
  • Mac OS X 10.5.8 or later (x86)
  • Linux (Ubuntu, Lucid Lynx)
  • GNU C Library (glibc) 2.7 or later
  • Ubuntu Linux 8.04 or later
  • 64-bit distributions capable of running 32-bit

Tools required for android development

Install the latest JDK from JDK download page
how to develop android programs in eclipse

Install Eclipse from Eclipse download page.

Install Android SDK Starter Package The Android SDK starter package includes only a single component, the latest version of the SDK Tools.
Android SDK and AVD Manager is included in package which  you can use to download other components from the SDK repository site.

Download the latest Android SDK starter package from the SDK download page.
Unpack the archive to a suitable location on your machine. By default, the SDK files are unpacked into a directory named android-sdk-<machine-platform> . For example, on Windows platform the directory will be android-sdk-windows.

Add Android Platforms to Your SDK
To add one or more Android platforms (for example, Android 4.0 or Android 10.0) to your SDK, use the Android SDK and AVD Manager, included in the SDK starter package. Locate the folder where android SDK got unzipped from there look for icon of avd manager double click to open it.
It is recommended to download multiple platforms, so that you can build your application on the lowest version you want to support, but test against higher versions that you intend the application to run on.

Launch the Android SDK and AVD Manager on Windows by executing SDK Setup.exe at the root of the SDK directory.

Click Install Selected and then select Accept All to accept selected packages.

Click Install Accepted button to start download and install the selected packages.

Download and Install ADT Plugin
To install the ADT Plugin, you can use the Eclipse remote update feature. By setting up a remote update site, you can easily download, install, and check for ADT updates. Alternatively, you can download the latest ADT to your development computer as a local site archive.
Launch Eclipse, then select Help –> Install New Software.
In Available Software dialog, click Add
Enter a name for the remote site (ex: Android Plugin) in the Name field and in the Location field, enter this URL: https://dl-ssl.google.com/android/eclipse/
and then click OK. If you have trouble acquiring the plugin, you can try using ‘http’ instead of ’https’ in the URL.
Select the check box next to Developer Tools, which will automatically select the nested tools Android DDMS and Android Development Tools and then click Next.

On the next dialog, click Next to read and accept the license agreement and install any dependencies, then click Finish.

Restart Eclipse
To check whether the ADT has been installed correctly, try to create a new project by select File > New > Project., you should find Android Project listed on project wizard.
This entry was posted in Android and tagged . Bookmark the permalink.