Tuesday, January 19, 2010

How to Configure Eclipse to Develop Android Application


What are all needed 

· Eclipse 3.4 or above ( the "Eclipse Classic" version is recommended)
· Android SDK
· Android Development Tools (ADT) plug-in for eclipse

Download the Eclipse:

· Click here to download the Eclipse of version 3.4 or above.

Download the Android: 

Click here to download the Android SDK of different version and for different platforms.


 For Windows : Extract the zip file in to a directory. It look like this
C:\...\android-sdk-windows
Files and folders inside android-sdk-windows :
Add-ons<empty>
Temp<empty>
Platform<empty>
Tools
SDK setup
· To install the android platform, ‘internet’ connection is needed.
· Double click the SDK setup. A winnow will popup like the below,
moz-screenshot-3
 If https error occurs, then do the following; close the winnow.
Search the file ‘androidtool.cfg’ ,normally the file is located in the following path,
C:\Users\<user name>\.android
Open the file using any editor and add the following entry,
sdkman.force.http=true
save the file ‘androidtool.cfg’.
then run the SDK setup once again, now the popup window shows the ‘list’ of items that need to be install.
There are several version of android platform, select the version that you like to download.
clip_image004
Click the ‘install selected’ button located at the bottom of the window.
‘Accept’ the version you need to download and click ‘install accepted’ button located at the bottom of the popup window.
A small window popup, which shows the download progress.
Now if you go to the SDK installed path (C:\...\android-sdk-windows),
clip_image008
The following new folder are created after installing the required platforms,
Add-ons has different version of APIs
A docs folder <API documentation>
Platform folder has the different versions of installed android platforms
Add the location of the SDK's primary tools directory to your system PATH.
On Windows, right-click on My Computer, and select Properties. Under the Advanced tab, hit the Environment Variables button, and in the dialog that comes up, double-click on Path (under System Variables). Add the full path to the tools/ directory to the path
clip_image010

Installing ADT

Eclipse 3.4 (Ganymede)
· Start Eclipse, then select Help > Software Updates.... In the dialog that appears, click the Available Software tab.
· Click Add Site...
· In the Add Site dialog that appears, enter this URL in the "Location" field:
https://dl-ssl.google.com/android/eclipse/
· Note: If you have trouble acquiring the plug-in, try using "http" in the Location URL, instead of "https" (https is preferred for security reasons).
· Click OK.
· Back in the Available Software view, you should see the plugin listed by the URL, with "Developer Tools" nested within it. Select the checkbox next to Developer Tools and click Install...
· On the subsequent Install window, "Android DDMS" and "Android Development Tools" should both be checked. Click Next.
· Read and accept the license agreement, then click Finish.
· Restart Eclipse.
Eclipse 3.5 (Galileo)
· Start Eclipse, then select Help > Install New Software.
· In the Available Software dialog, click Add....
· In the Add Site dialog that appears, enter a name for the remote site (for example, "Android Plug-in") in the "Name" field.
· In the "Location" field, enter this
 URL:
clip_image012
· Note: If you have trouble acquiring the plug-in, you can try using "http" in the URL, instead of "https" (https is preferred for security reasons).
· Click OK.
· Back in the Available Software view, you should now see "Developer Tools" added to the list. Select the checkbox next to Developer Tools, which will automatically select the nested tools Android DDMS and Android Development Tools. Click Next.
· In the resulting Install Details dialog, the Android DDMS and Android Development Tools features are listed. Click Next to read and accept the license agreement and install any dependencies, then click Finish.
· Restart Eclipse
· Now goto the ‘window’->preference
clip_image014
· Click on the ‘android’ node, in the right panel, click the ‘browse’ button and enter the android sdk path.
· Click Ok.
For further reference please use the following links,

1 Comment:

Android app development said...

This is one of the well organized post.I like your blog features.This is one of the useful technique.Nice to read about your post.
Android app developers

Post a Comment

The Link Exchange - Your ultimate resource for link exchange!

About This Blog

  © Blogger template Webnolia by Ourblogtemplates.com 2009

Back to TOP