Install the ADT Plugin for Eclipse

it in your respective Eclipse environment.

Eclipse 3.4 (Ganymede)

Eclipse 3.5 (Galileo)

I.Start Eclipse, then select Help > Software Updates In the

1. Start Eclipse, then select Help > Install New Softare.

dialog that appears, click the Available Software tab.

2. In the Available Software dialog, click Add

2.Click Add Site...

3. In the Add Site dialog that appears, enter a name for the remote site (e.g.,

3. In the Add Site dialog that appears, enter this URL in the

"Android Plugin") in the "Name" field.

"Location" field:

In the "Location" field, enter this URL:

ssl.google.com/android/eclipse/

https://dl-ssl.google.com/android/eclipse/

Note: If you have trouble aqcuiring the plugin, try using "http" in

Note: If you have trouble aqcuiring the plugin, you can try using "http" in the

the Location URL, instead of "https" (https is preferred for

URL, instead of "https" (https is preferred for security reasons).

security reasons).

Click OK.

Click OK.

4. Back in the Available Software view, you should now see "Developer

4. Back in the Available Software view, you should see the

Tools" added to the list. Select the checkbox next to Developer Tools, which

plugin listed by the URL, with "Developer Tools" nested within

will automatically select the nested tools Android DDMS and Android

it. Select the checkbox next to Developer Tools and click

Development Tools. Click Next.

Install...

5. In the resulting Install Details dialog, the Android DDMS and Android

5.On the subsequent Install window, "Android DDMS" and

Development Tools features are listed. Click Next to read and accept the

"Android Development Tools" should both be checked. Click

license agreement and install any dependencies, then click Finish.

Next.

6. Restart Eclipse.

6. Read and accept the license agreement, then click Finish.

7. Restart Eclipse.

Now modify your Eclipse preferences to point to the Android SDK directory:

Now modify your Eclipse preferences to point to the Android SDK directory:

1. Select Window > Preferences... to open the Preferences panel (Mac: Eclipse > Preferences).

2. Select Android from the left panel.

3. For the SDK Location in the main panel, click Browse... and locate your downloaded SDK directory.

4. Click Apply, then OK.

Android offers a custom plugin for the Eclipse IDE, called Android Development Tools (ADT), that is designed to give you a powerful, integrated environment in which to build Android applications. It extends the capabilites of Eclipse to let you quickly set up new Android projects, create an application UI, add components based on the Android Framework API, debug your applications using the Android SDK tools, and even export signed (or unsigned) APKs in order to distribute your application.

In general, using Eclipse with ADT is a highly recommended approach to Android development and is the fastest way to get started. (If you prefer to work in an IDE other than Eclipse, you do not need to install Eclipse or ADT, instead, you can directly use the SDK tools to build and debug your application—skip to Next Steps.)

Once you have the Eclipse IDE installed, as described in Preparing for Installation, follow the steps below to download the ADT plugin and install

Done! If you haven't encountered any problems, then you're ready to begin developing Android applications. See the Next Steps section for suggestions on how to start.

0 0

Post a comment