blob: bd7eeeda2401d09e4f4fe5ad44fbeaa266a47838 [file] [log] [blame]
Dirk Dougherty7b229ef2010-03-26 17:32:26 -07001page.title=ADT Plugin for Eclipse
Dirk Doughertyee58d1b2009-10-16 15:25:15 -07002sdk.preview=0
3
4@jd:body
5
6<div id="qv-wrapper">
7<div id="qv">
8
9 <h2>In this document</h2>
10 <ol>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070011 <li><a href="#notes">Revisions</a></li>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070012 <li><a href="#installing">Installing the ADT Plugin</a>
13 <ol>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070014 <li><a href="#preparing">Preparing for Installation</a></li>
15 <li><a href="#downloading">Downloading the ADT Plugin</a>
16 <li><a href="#configuring">Configuring the ADT Plugin</a></li>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070017 <li><a href="#troubleshooting">Troubleshooting</a></li>
18 </ol>
19 </li>
20 <li><a href="#updating">Updating the ADT Plugin</a></li>
21 <li><a href="#uninstalling">Uninstalling the ADT Plugin</a></li>
22 </ol>
23
24</div>
25</div>
26
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070027<p>Android Development Tools (ADT) is a plugin for the Eclipse IDE
28that is designed to give you a powerful, integrated environment in which
29to build Android applications. </p>
Dirk Doughertybf15ce62009-10-23 19:17:12 -070030
Scott Main13244e52010-01-19 11:12:07 -080031<p>ADT extends the capabilities of Eclipse to let you quickly set up new Android
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070032projects, create an application UI, add components based on the Android
Dirk Doughertybf15ce62009-10-23 19:17:12 -070033Framework API, debug your applications using the Android SDK tools, and even
34export signed (or unsigned) APKs in order to distribute your application.</p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070035
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070036<p>Developing in Eclipse with ADT is highly recommended and is the fastest way
37to get started. With the guided project setup it provides, as well as tools
38integration, custom XML editors, and debug ouput pane, ADT gives you an
39incredible boost in developing Android applications. </p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070040
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070041<p>This document provides step-by-step instructions on how to download the ADT
42plugin and install it into your Eclipse development environment. Note that
43before you can install or use ADT, you must have compatible versions of both the
44Eclipse IDE and the Android SDK installed. For details, make sure to read <a
45href="#installing">Installing the ADT Plugin</a>, below. </p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070046
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070047<p>If you are already using ADT, this document also provides instructions on
48how to update ADT to the latest version or how to uninstall it, if necessary.
49</p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070050
Scott Main1c9bada2010-07-07 16:47:16 -070051<p class="caution"><strong>Caution:</strong> There are known issues with the ADT plugin running with
52Eclipse 3.6. Please stay on 3.5 until further notice.</p>
53
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070054<h2 id="notes">Revisions</h2>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070055
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070056<p>The sections below provide notes about successive releases of
57the ADT Plugin, as denoted by revision number. </p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070058
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070059<script type="text/javascript">
60function toggleDiv(link) {
61 var toggleable = $(link).parent();
62 if (toggleable.hasClass("closed")) {
63 //$(".toggleme", toggleable).slideDown("fast");
64 toggleable.removeClass("closed");
65 toggleable.addClass("open");
66 $(".toggle-img", toggleable).attr("title", "hide").attr("src", (toRoot + "assets/images/triangle-opened.png"));
67 } else {
68 //$(".toggleme", toggleable).slideUp("fast");
69 toggleable.removeClass("open");
70 toggleable.addClass("closed");
71 $(".toggle-img", toggleable).attr("title", "show").attr("src", (toRoot + "assets/images/triangle-closed.png"));
72 }
73 return false;
74}
75</script>
76<style>
77.toggleable {
78padding: .25em 1em;
79}
80.toggleme {
81 padding: 1em 1em 0 2em;
82 line-height:1em;
83}
84.toggleable a {
85 text-decoration:none;
86}
Dirk Dougherty0d1b0812010-04-07 17:05:16 -070087.toggleme a {
88 text-decoration:underline;
89}
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070090.toggleable.closed .toggleme {
91 display:none;
92}
93#jd-content .toggle-img {
94 margin:0;
95}
96</style>
97
Dirk Dougherty0d1b0812010-04-07 17:05:16 -070098<div class="toggleable opened">
99 <a href="#" onclick="return toggleDiv(this)">
100 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
Dirk Doughertyc7c7afd2010-05-24 09:07:14 -0700101ADT 0.9.7</a> <em>(May 2010)</em>
Dirk Dougherty0d1b0812010-04-07 17:05:16 -0700102 <div class="toggleme">
103
104<dl>
105<dt>Library projects:</dt>
106<dd>
107<p>The ADT Plugin now supports the use of <em>library projects</em> during
108development, a capability that lets you store shared Android application
109code and resources in a separate development project. You can then reference the
110library project from other Android projects and, at build time, the tools
111compile the shared code and resources as part of the dependent applications.
112More information about this feature is available in the <a
113href="{@docRoot}guide/developing/eclipse-adt.html#libraryProject">Developing
114in Eclipse with ADT</a> document. </p>
115<p>If you are not developing in Eclipse, <a
116href="tools-notes.html">SDK Tools r6</a> provides the equivalent library
117project support through the Ant build system.</p>
118</dd>
119</dl>
120 </div>
121</div>
122
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700123<div class="toggleable closed">
124 <a href="#" onclick="return toggleDiv(this)">
125 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
126ADT 0.9.6</a> <em>(March 2010)</em>
127 <div class="toggleme">
128
129<dl>
130<dt>Dependencies:</dt>
131
132<dd><p>ADT 0.9.6 is designed for use with SDK Tools r5 and later. Before
133updating to ADT 0.9.6, we highly recommend that you use the Android SDK and
134AVD Manager to install SDK Tools r5 into your SDK.</p></dd>
135
136<dt>General Notes:</dt>
137<dd>
138<ul>
139<li>Editing <code>default.properties</code> outside of Eclipse will now
140automatically update the project.</li>
141<li>Loads the SDK content only when a project requires it. This will make
142Eclipse use less resources when the SDK contains many versions of Android.</li>
143<li>Resolves potential deadlock between modal dialogs, when launching ADT the
144first time with the SDK Usage panel.</li>
145<li>Fixes issues with the New Project Wizard when selecting samples.</li>
146</ul>
147</dd>
148<dt>AVD/SDK Manager:</dt>
149<dd>
150<ul>
151<li>Adds support for platform samples components.</li>
152<li>Improves support for dependency between components.</li>
153<li>AVDs now sorted by API level.</li>
154<li>The AVD creation dialog now enforces a minimum SD card size of 9MB.</li>
155<li>Prevents deletion of running AVDs.</li>
156</ul>
157</dd>
158<dt>DDMS:</dt>
159<dd>
160<ul>
161<li>DDMS plug-in now contains the Allocation Tracker view.</li>
162<li>New action in the Logcat view: "Go to problem" lets you go directly from an
163exception trace output to the code.</li>
164</ul>
165</dd>
166<dt>Editors:</dt>
167<dd>
168<ul>
169<li>Explode mode in the Visual Layout Editor adds a margin to all layout objects
170so that it's easier to see embedded or empty layouts.</li>
171<li>Outline mode in the Visual Layout Editor draws layout outline to make it
172easier to see layout objects.</li>
173<li>Several fixes in the configuration selector of the Visual Layout
174Editor.</li>
175</ul>
176</dd>
177<dt>Application launching:</dt>
178<dd>
179<ul>
180<li>Applications launched from ADT now behave as if they were clicked from the
181Home screen.</li>
182<li>Fixes issue where add-on with no optional library would not show up as valid
183targets for application launches.</li>
184<li>Resolves possible crash when launching applications.</li>
185</ul>
186</dd>
187</dl>
188 </div>
189</div>
190
191<div class="toggleable closed">
192 <a href="#" onclick="return toggleDiv(this)">
193 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
194ADT 0.9.5</a> <em>(December 2009)</em>
195 <div class="toggleme">
196<dl>
197<dt>Dependencies:</dt>
198
199<dd><p>ADT 0.9.5 requires features provided in SDK Tools r4 or higher. If you install
200ADT 0.9.5, which is highly recommended, you should use the Android SDK and AVD
201Manager to download thye latest SDK Tools into your SDK. For more information,
202see <a href="{@docRoot}sdk/adding-components.html">Adding SDK Components</a>.</p>
203</dd>
204
205<dt>General Notes:</dt>
206<dd>
207<ul>
208<li>AVD Launch dialog now shows scale value.</li>
209<li>Fixes potential NPE in SDK Manager on AVD launch, for older AVD with no skin name specified.</li>
210<li>Fixes XML validation issue in on older Java versions.</li>
211<li>.apk packaging now properly ignores vi swap files as well as hidden files.</li>
212</ul>
213</dd>
214</dl>
215 </div>
216</div>
217
218<div class="toggleable closed">
219 <a href="#" onclick="return toggleDiv(this)">
220 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
221ADT 0.9.4</a> <em>(October 2009)</em>
222 <div class="toggleme">
223<dl>
224<dt>Dependencies:</dt>
225
226<dd><p>ADT 0.9.4 requires features provided in SDK Tools r3 or higher. If you install
227ADT 0.9.4, which is highly recommended, you should use the Android SDK and AVD
228Manager to download the latest SDK Tools into your SDK. For more information,
229see <a href="{@docRoot}sdk/adding-components.html">Adding SDK Components</a>.</p>
230</dd>
231
232<dt>Project Creation Wizard:</dt>
233<dd>
234<ul>
235<li>New option to create a project from a sample by choosing it from a list.</li>
236</ul>
237</dd>
238
239<dt>Layout Editor:</dt>
240<dd>
241<ul>
242<li>Improved Configuration selector that lets you see how your layout will
243render on different devices. Default device descriptions include ADP1
244and Google Ion, while SDK add-ons can also provide new descriptions.
245A new UI allows you to create custom descriptions.</li>
246<li>Adds a new clipping toggle, to let you see your full layout even if it's
247bigger than the screen.</li>
248</ul>
249</dd>
250
251<dt>DDMS Integration:</dt>
252<dd>
253<ul>
254<li>Includes the improvements from the standlone DDMS, revision 3.</li>
255<li>Adds an option to open HPROF files into eclipse instead of writing them on
256disk. If a profiler such as MAT (<a href="http://eclipse.org/mat">Memory Analyzer
257Tool</a>) is installed, it'll open the file.</li>
258</ul>
259</dd>
260
261<dt>Android SDK and AVD Manager integration:</dt>
262<dd>
263<ul>
264<li>Includes the improvements from the standalone Android SDK and AVD Manager,
265revision 3.</li>
266</ul>
267</dd>
268</dl>
269 </div>
270</div>
271
272<h2 id="installing">Installing the ADT Plugin</h2>
273
274<p>The sections below provide instructions on how to download and install
275ADT into your Eclipse environment. If you encounter problems, see the <a
276href="#troubleshooting">Troubleshooting</a> section.</p>
277
278<h3 id="preparing">Preparing Your Development Computer</h3>
279
280<p>ADT is a plugin for the Eclipse IDE. Before you can install or use ADT,
281you must have a compatible version of Eclipse installed on your development
282computer. </p>
283
284<ul>
285<li>If Eclipse is already installed on your computer, make sure that it is
286a version that is compatible with ADT and the Android SDK. Check the <a
287href="requirements.html">System Requirements</a> document for
288a list of Eclipse versions that are compatible with the Android SDK.</li>
289<li>If you need to install or update Eclipse, you can download it from this
290location:
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700291
Dirk Dougherty22558d02009-12-10 16:25:06 -0800292<p style="margin-left:2em;"><a href=
293"http://www.eclipse.org/downloads/">http://www.eclipse.org/downloads/</a>
294</p>
295
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700296<p>A Java or RCP version of Eclipse is recommended.</p></li>
297</ul>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700298
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700299<p>Additionally, before you can configure or use ADT, you must install the
300Android SDK starter package, as described in <a
Robert Lyef13d022010-07-12 14:32:22 -0700301href="installing.html#Installing">Downloading the SDK Starter Package</a>.
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700302Specifically, you need to install a compatible version of the Android SDK Tools
303and at least one development platform. To simplify ADT setup, we recommend
304installing the Android SDK prior to installing ADT. </p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700305
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700306<p>When your Eclipse and Android SDK environments are ready, continue with the
307ADT installation as described in the steps below. </p>
308
309<h3 id="downloading">Downloading the ADT Plugin</h3>
310
311<p>Use Update Manager feature of your Eclipse installation to install the latest
312revision of ADT on your development computer.<p>
313
314<p>Assuming that you have a compatible version of the Eclipse IDE installed, as
315described in <a href="#preparing">Preparing for Installation</a>, above, follow
316these steps to download the ADT plugin and install it in your Eclipse
317environment. </p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700318
319<table style="font-size:100%">
320<tr><th>Eclipse 3.4 (Ganymede)</th><th>Eclipse 3.5 (Galileo)</th></tr>
321<tr>
322<td width="45%">
323<!-- 3.4 steps -->
324<ol>
325 <li>Start Eclipse, then select <strong>Help</strong> &gt; <strong>Software Updates...</strong>.
326 In the dialog that appears, click the <strong>Available Software</strong> tab. </li>
327 <li>Click <strong>Add Site...</strong> </li>
328 <li>In the Add Site dialog that appears, enter this URL in the "Location" field:
329 <pre style="margin-left:0">https://dl-ssl.google.com/android/eclipse/</pre>
Scott Main13244e52010-01-19 11:12:07 -0800330 <p>Note: If you have trouble acquiring the plugin, try using "http" in the Location URL,
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700331 instead of "https" (https is preferred for security reasons).</p>
332 <p>Click <strong>OK</strong>.</p></li>
333 <li>Back in the Available Software view, you should see the plugin listed by the URL,
334 with "Developer Tools" nested within it. Select the checkbox next to
335 Developer Tools and click <strong>Install...</strong></li>
336 <li>On the subsequent Install window, "Android DDMS" and "Android Development Tools"
337 should both be checked. Click <strong>Next</strong>. </li>
338 <li>Read and accept the license agreement, then click <strong>Finish</strong>.</li>
339 <li>Restart Eclipse. </li>
340</ol>
341
342</td>
343<td>
344<!-- 3.5 steps -->
345<ol>
346 <li>Start Eclipse, then select <strong>Help</strong> &gt; <strong>Install
Scott Main13244e52010-01-19 11:12:07 -0800347 New Software</strong>. </li>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700348 <li>In the Available Software dialog, click <strong>Add...</strong>.</li>
349 <li>In the Add Site dialog that appears, enter a name for the remote site
350 (for example, "Android Plugin") in the "Name" field.
351 <p>In the "Location" field, enter this URL:</p>
352 <pre>https://dl-ssl.google.com/android/eclipse/</pre>
Scott Main13244e52010-01-19 11:12:07 -0800353 <p>Note: If you have trouble acquiring the plugin, you can try
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700354 using "http" in the URL, instead of "https" (https is preferred for
355 security reasons).</p>
356 <p>Click <strong>OK</strong>.</p>
357 </li>
358 <li>Back in the Available Software view, you should now see "Developer
359 Tools" added to the list. Select the checkbox next to Developer Tools,
360 which will automatically select the nested tools Android DDMS and Android
361 Development Tools.
362 Click <strong>Next</strong>. </li>
363 <li>In the resulting Install Details dialog, the Android DDMS and Android
364 Development Tools features are listed. Click <strong>Next</strong> to
365 read and accept the license agreement and install any dependencies,
366 then click <strong>Finish</strong>. </li>
367 <li>Restart Eclipse. </li>
368
369</ol>
370</td>
371</tr>
372</table>
373
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700374<h3 id="preparing">Configuring the ADT Plugin</h3>
375
376<p>Once you've successfully downnloaded ADT as described above, the next step
377is to modify your ADT preferences in Eclipse to point to the Android SDK directory:</p>
378
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700379<ol>
380 <li>Select <strong>Window</strong> &gt; <strong>Preferences...</strong> to open the Preferences
381 panel (Mac OS X: <strong>Eclipse</strong> &gt; <strong>Preferences</strong>).</li>
382 <li>Select <strong>Android</strong> from the left panel. </li>
383 <li>For the <em>SDK Location</em> in the main panel, click <strong>Browse...</strong> and
384 locate your downloaded SDK directory. </li>
385 <li>Click <strong>Apply</strong>, then <strong>OK</strong>.</li>
386</ol>
387
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700388<p>Done! If you haven't encountered any problems, then the installation is
389complete. Now read <a href="installing.html#components">Adding Platforms and
390Other Components</a> for instructions on how to complete the setup of your
391SDK environment. </p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700392
393
394<h3 id="troubleshooting">Troubleshooting ADT Installation</h3>
395
396<p> If you are having trouble downloading the ADT plugin after following the
397steps above, here are some suggestions: </p>
398
399<ul>
400 <li>If Eclipse can not find the remote update site containing the ADT plugin,
401try changing the remote site URL to use http, rather than https. That is, set
402the Location for the remote site to:
403<pre>http://dl-ssl.google.com/android/eclipse/</pre></li>
404<li>If you are behind a firewall (such as a corporate firewall), make sure that
405you have properly configured your proxy settings in Eclipse. In Eclipse 3.3/3.4,
406you can configure proxy information from the main Eclipse menu in
407<strong>Window</strong> (on Mac OS X, <strong>Eclipse</strong>) &gt;
408<strong>Preferences</strong> &gt; <strong>General</strong> &gt; <strong>Network
409Connections</strong>.</li>
410</ul>
411
412<p> If you are still unable to use Eclipse to download the ADT plugin as a
413remote update site, you can download the ADT zip file to your local machine and
414manually install it:</p>
415
416<ol>
417 <li>Download the current ADT Plugin zip file from the table below (do not unpack it).
418
419 <table class="download">
420 <tr>
421 <th>Name</th>
422 <th>Package</th>
423 <th>Size</th>
424 <th>MD5 Checksum</th>
425 </tr>
426 <tr>
427 <td>ADT {@adtZipVersion}</td>
428 <td>
429 <a href="http://dl.google.com/android/{@adtZipDownload}">{@adtZipDownload}</a>
430 </td>
431 <td>{@adtZipBytes} bytes</td>
432 <td>{@adtZipChecksum}</td>
433 </tr>
434</table>
435</li>
436
437</li>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700438 <li>Follow steps 1 and 2 in the <a href="#installing">default install
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700439 instructions</a> (above).</li>
440 <li>In the Add Site dialog, click <strong>Archive</strong>.</li>
441 <li>Browse and select the downloaded zip file.</li>
442 <li>In Eclipse 3.5 only, enter a name for the local update site (e.g.,
443 "Android Plugin") in the "Name" field.</li>
444 <li>Click <strong>OK</strong>.
445 <li>Follow the remaining procedures as listed for
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700446 <a href="#installing">default installation</a> above,
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700447 starting from step 4.</li>
448</ol>
449
450<p>To update your plugin once you've installed using the zip file, you will have
451to follow these steps again instead of the default update instructions.</p>
452
453<h4>Other install errors</h4>
454
455<p>Note that there are features of ADT that require some optional
456Eclipse components (for example, WST). If you encounter an error when
457installing ADT, your Eclipse installion might not include these components.
458For information about how to quickly add the necessary components to your
459Eclipse installation, see the troubleshooting topic
Dirk Dougherty22558d02009-12-10 16:25:06 -0800460<a href="{@docRoot}resources/faq/troubleshooting.html#installeclipsecomponents">ADT
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700461Installation Error: "requires plug-in org.eclipse.wst.sse.ui"</a>.</p>
462
463<h4>For Linux users</h4>
464<p>If you encounter this error when installing the ADT Plugin for Eclipse:
465<pre>
466An error occurred during provisioning.
467Cannot connect to keystore.
468JKS</pre>
469<p>
470...then your development machine lacks a suitable Java VM. Installing Sun
471Java 6 will resolve this issue and you can then reinstall the ADT
472Plugin.</p>
473
474
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700475<h2 id="updating">Updating the ADT Plugin</h2>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700476
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700477<p>From time to time, a new revision of the ADT Plugin becomes available, with
478new features and bug fixes. Generally, when a new revision of ADT is available,
479you should update to it as soon as convenient. </p>
480
481<p>In some cases, a new revision of ADT will have a dependency on a specific
482revision of the Android SDK Tools. If such dependencies exist, you will need to
483update the SDK Tools component of the SDK after installing the new revision of
484ADT. To update the SDK Tools component, use the Android SDK and AVD Manager, as
485described in <a href="adding-components.html">Adding SDK Components</a>.</p>
486
487<p>To learn about new features of each ADT revision and also any dependencies on
488the SDK Tools, see the listings in the <a href="#notes">Revisions</a>
489section. To determine the version currently installed, open the
490Eclipse Installed Software window using <strong>Help</strong>
491&gt; <strong>Software Updates</strong> and refer to the version listed for
492"Android Development Tools".</p>
493
494<p>Follow the steps below to check whether an update is available and, if so,
495to install it. </p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700496
497<table style="font-size:100%">
498<tr><th>Eclipse 3.4 (Ganymede)</th><th>Eclipse 3.5 (Galileo)</th></tr>
499<tr>
500<td width="50%">
501<!-- 3.4 steps -->
502<ol>
503 <li>Select <strong>Help</strong> &gt; <strong>Software Updates</strong>.</li>
504 <li>Select the <strong>Available Software</strong> tab.</li>
505 <li>Select the checkboxes next to Android DDMS and Android Developer Tools,
506 then click <strong>Update</strong>.</li>
507 <li>In the resulting Available Updates dialog, ensure that both Android DDMS
508 and Android Development Tools are selected, then click
509 <strong>Next</strong>.</li>
510 <li>Read and accept the license agreement and then click <strong>Finish</strong>.
511 This will download and install the latest version of Android DDMS and
512 Android Development Tools.</li>
513 <li>Restart Eclipse.</li>
514</ol>
515</td>
516<td>
517<!-- 3.5 steps -->
518<ol>
519 <li>Select <strong>Help</strong> &gt; <strong>Check for Updates</strong>. </li>
520 <li>In the resulting Available Updates dialog, locate the Android DDMS and
521 Android Development Tools features in the list and ensure that the checkboxes
522 next to them are selected. Click <strong>Next</strong>.
523 <p>If the Available Updates dialog does not list Android DDMS and Android
524 Development tools, make sure that you have set up a remote update site
525 for them, as described in
526 <a href="#installing">Installing the ADT Plugin</a>.
527 </p></li>
528 <li>In the Update Details dialog, click <strong>Next</strong>.</li>
529 <li>Read and accept the license agreement and then click <strong>Finish</strong>.
530 This will download and install the latest version of Android DDMS and
531 Android Development Tools.</li>
532 <li>Restart Eclipse.</li>
533</ol>
534</td>
535</tr>
536</table>
537
538
539<p>If you encounter problems during the update of ADT, you
540can try removing the existing ADT plugin and then performing a fresh
Dirk Dougherty22558d02009-12-10 16:25:06 -0800541installation. To remove the plugin, follow the instructions in <a
542href="#uninstalling">Uninstalling the ADT Plugin</a>, below. To reinstall
543the plugin, follow the instructions in <a
544href="#installing">Installing the ADT Plugin</a>, above.</p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700545
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700546
547<h2 id="uninstalling">Uninstalling the ADT plugin</h2>
548
549<p><p>If you encounter problems when installing or updating ADT, you
550can try removing the existing ADT plugin and then performing a fresh
551installation. To remove ADT, follow these steps: </p>
552
553<table style="font-size:100%">
554<tr><th>Eclipse 3.4 (Ganymede)</th><th>Eclipse 3.5 (Galileo)</th></tr>
555<tr>
556<td width="50%">
557<!-- 3.4 steps -->
558<ol>
559 <li>Select <strong>Help</strong> &gt; <strong>Software Updates</strong> &gt;
560 <strong>Manage Configuration</strong>. </li>
561 <li>Expand the list in the left panel to reveal the installed tools.</li>
562 <li>Right-click "Android Editors" and click <strong>Uninstall</strong>. Click <strong>OK</strong>
563 to confirm.</li>
564 <li>Restart Eclipse.
565 <p>(Do not uninstall "Android Development Tools".)</p></li>
566</ol>
567</td>
568<td>
569<!-- 3.5 steps -->
570<ol>
571 <li>Select <strong>Help</strong> &gt; <strong>Install New Software</strong>.</li>
572 <li>In the "Details" panel, click the "What is already installed?" link.</li>
573 <li>In the <strong>Eclipse Installation Details</strong> dialog, select "Android DDMS" and "Android Development Tools" and then click <strong>Uninstall</strong>.</li>
574 <li>In the next window, confirm that the ADT features are selected for uninstall and then click <strong>Finish</strong> to uninstall.</li>
575 <li>Restart Eclipse.</li>
576</ol>
577</td>
578</tr>
579</table>
580