blob: a984d56eea6271ee393d66060e84e09d8d99b6c6 [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
Dirk Dougherty9519eab2010-09-14 18:15:08 -07003adt.zip.version=0.9.8
4adt.zip.download=ADT-0.9.8.zip
5adt.zip.bytes=8703591
6adt.zip.checksum=22070f8e52924605a3b3abf87c1ba39f
Dirk Doughertyee58d1b2009-10-16 15:25:15 -07007
8@jd:body
9
10<div id="qv-wrapper">
11<div id="qv">
12
13 <h2>In this document</h2>
14 <ol>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070015 <li><a href="#notes">Revisions</a></li>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070016 <li><a href="#installing">Installing the ADT Plugin</a>
17 <ol>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070018 <li><a href="#preparing">Preparing for Installation</a></li>
19 <li><a href="#downloading">Downloading the ADT Plugin</a>
20 <li><a href="#configuring">Configuring the ADT Plugin</a></li>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070021 <li><a href="#troubleshooting">Troubleshooting</a></li>
22 </ol>
23 </li>
24 <li><a href="#updating">Updating the ADT Plugin</a></li>
25 <li><a href="#uninstalling">Uninstalling the ADT Plugin</a></li>
26 </ol>
27
28</div>
29</div>
30
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070031<p>Android Development Tools (ADT) is a plugin for the Eclipse IDE
32that is designed to give you a powerful, integrated environment in which
33to build Android applications. </p>
Dirk Doughertybf15ce62009-10-23 19:17:12 -070034
Scott Main13244e52010-01-19 11:12:07 -080035<p>ADT extends the capabilities of Eclipse to let you quickly set up new Android
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070036projects, create an application UI, add components based on the Android
Dirk Doughertybf15ce62009-10-23 19:17:12 -070037Framework API, debug your applications using the Android SDK tools, and even
38export signed (or unsigned) APKs in order to distribute your application.</p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070039
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070040<p>Developing in Eclipse with ADT is highly recommended and is the fastest way
41to get started. With the guided project setup it provides, as well as tools
42integration, custom XML editors, and debug ouput pane, ADT gives you an
43incredible boost in developing Android applications. </p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070044
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070045<p>This document provides step-by-step instructions on how to download the ADT
46plugin and install it into your Eclipse development environment. Note that
47before you can install or use ADT, you must have compatible versions of both the
48Eclipse IDE and the Android SDK installed. For details, make sure to read <a
49href="#installing">Installing the ADT Plugin</a>, below. </p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070050
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070051<p>If you are already using ADT, this document also provides instructions on
52how to update ADT to the latest version or how to uninstall it, if necessary.
53</p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070054
Scott Main1c9bada2010-07-07 16:47:16 -070055<p class="caution"><strong>Caution:</strong> There are known issues with the ADT plugin running with
56Eclipse 3.6. Please stay on 3.5 until further notice.</p>
57
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070058<h2 id="notes">Revisions</h2>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070059
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070060<p>The sections below provide notes about successive releases of
61the ADT Plugin, as denoted by revision number. </p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070062
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070063<script type="text/javascript">
64function toggleDiv(link) {
65 var toggleable = $(link).parent();
66 if (toggleable.hasClass("closed")) {
67 //$(".toggleme", toggleable).slideDown("fast");
68 toggleable.removeClass("closed");
69 toggleable.addClass("open");
70 $(".toggle-img", toggleable).attr("title", "hide").attr("src", (toRoot + "assets/images/triangle-opened.png"));
71 } else {
72 //$(".toggleme", toggleable).slideUp("fast");
73 toggleable.removeClass("open");
74 toggleable.addClass("closed");
75 $(".toggle-img", toggleable).attr("title", "show").attr("src", (toRoot + "assets/images/triangle-closed.png"));
76 }
77 return false;
78}
79</script>
80<style>
81.toggleable {
82padding: .25em 1em;
83}
84.toggleme {
85 padding: 1em 1em 0 2em;
86 line-height:1em;
87}
88.toggleable a {
89 text-decoration:none;
90}
Dirk Dougherty0d1b0812010-04-07 17:05:16 -070091.toggleme a {
92 text-decoration:underline;
93}
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070094.toggleable.closed .toggleme {
95 display:none;
96}
97#jd-content .toggle-img {
98 margin:0;
99}
100</style>
101
Dirk Dougherty022171b2010-07-30 19:24:17 -0700102
103
104
Dirk Dougherty0d1b0812010-04-07 17:05:16 -0700105<div class="toggleable opened">
106 <a href="#" onclick="return toggleDiv(this)">
Dirk Dougherty022171b2010-07-30 19:24:17 -0700107 <img src="{@docRoot}assets/images/triangle-opened.png" class="toggle-img" height="9px" width="9px" />
Dirk Dougherty74a74d32010-09-09 18:40:13 -0700108ADT 0.9.8</a> <em>(September 2010)</em>
Dirk Dougherty022171b2010-07-30 19:24:17 -0700109 <div class="toggleme">
110
111
112</ul>
113</dd>
114
115<dl>
116
117<dt>Dependencies:</dt>
118
119<dd><p>ADT 0.9.8 is designed for use with SDK Tools r7 and later. Before
120updating to ADT 0.9.8, we highly recommend that you use the Android SDK and
121AVD Manager to install SDK Tools r7 into your SDK.</p></dd>
122
123<dt>General notes:</dt>
124<dd>
125<ul>
126<li>Adds a new Action, "Rename Application Package", to the Android Tools
127contextual menu. The Action does a full application package refactoring.
128<li>Adds support for library projects that don't have a source folder
129called <code>src/</code>. There is now support for any number of source folders,
130with no name restriction. They can even be in subfolder such as
131<code>src/java</code>. If you are already working with library projects created
132in ADT 0.9.7, see <a
133href="{@docRoot}guide/developing/eclipse-adt.html#libraryMigrating">Migrating
134library projects to ADT 0.9.8</a> for important information about moving
135to the new ADT environment.</li>
136<li>Adds support for library projects that depend on other library
137projects.</li>
138<li>Adds support for additional resource qualifiers:
139<code>car</code>/<code>desk</code>, <code>night</code>/<code>notnight</code> and
140<code>navexposed</code>/<code>navhidden</code>.</li>
141<li>Adds more device screen types in the layout editor. All screen
142resolution/density combinations listed in the <a
143href="{@docRoot}guide/practices/screens_support.html#range">Supporting
144Multiple Screens</a> are now available.</li>
145<li>Fixes problems with handling of library project names that
146contain characters that are incompatible with the Eclipse path variable.
147Now properly sets up the link between the main project and the library
148project.</li>
149</ul>
150</dd>
151</dl>
152 </div>
153</div>
154
155
156<div class="toggleable closed">
157 <a href="#" onclick="return toggleDiv(this)">
Dirk Dougherty0d1b0812010-04-07 17:05:16 -0700158 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
Dirk Doughertyc7c7afd2010-05-24 09:07:14 -0700159ADT 0.9.7</a> <em>(May 2010)</em>
Dirk Dougherty0d1b0812010-04-07 17:05:16 -0700160 <div class="toggleme">
161
162<dl>
163<dt>Library projects:</dt>
164<dd>
165<p>The ADT Plugin now supports the use of <em>library projects</em> during
166development, a capability that lets you store shared Android application
167code and resources in a separate development project. You can then reference the
168library project from other Android projects and, at build time, the tools
169compile the shared code and resources as part of the dependent applications.
170More information about this feature is available in the <a
171href="{@docRoot}guide/developing/eclipse-adt.html#libraryProject">Developing
172in Eclipse with ADT</a> document. </p>
173<p>If you are not developing in Eclipse, <a
174href="tools-notes.html">SDK Tools r6</a> provides the equivalent library
175project support through the Ant build system.</p>
176</dd>
177</dl>
178 </div>
179</div>
180
Dirk Dougherty022171b2010-07-30 19:24:17 -0700181
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700182<div class="toggleable closed">
183 <a href="#" onclick="return toggleDiv(this)">
184 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
185ADT 0.9.6</a> <em>(March 2010)</em>
186 <div class="toggleme">
187
188<dl>
189<dt>Dependencies:</dt>
190
191<dd><p>ADT 0.9.6 is designed for use with SDK Tools r5 and later. Before
192updating to ADT 0.9.6, we highly recommend that you use the Android SDK and
193AVD Manager to install SDK Tools r5 into your SDK.</p></dd>
194
195<dt>General Notes:</dt>
196<dd>
197<ul>
198<li>Editing <code>default.properties</code> outside of Eclipse will now
199automatically update the project.</li>
200<li>Loads the SDK content only when a project requires it. This will make
201Eclipse use less resources when the SDK contains many versions of Android.</li>
202<li>Resolves potential deadlock between modal dialogs, when launching ADT the
203first time with the SDK Usage panel.</li>
204<li>Fixes issues with the New Project Wizard when selecting samples.</li>
205</ul>
206</dd>
207<dt>AVD/SDK Manager:</dt>
208<dd>
209<ul>
210<li>Adds support for platform samples components.</li>
211<li>Improves support for dependency between components.</li>
212<li>AVDs now sorted by API level.</li>
213<li>The AVD creation dialog now enforces a minimum SD card size of 9MB.</li>
214<li>Prevents deletion of running AVDs.</li>
215</ul>
216</dd>
217<dt>DDMS:</dt>
218<dd>
219<ul>
220<li>DDMS plug-in now contains the Allocation Tracker view.</li>
221<li>New action in the Logcat view: "Go to problem" lets you go directly from an
222exception trace output to the code.</li>
223</ul>
224</dd>
225<dt>Editors:</dt>
226<dd>
227<ul>
228<li>Explode mode in the Visual Layout Editor adds a margin to all layout objects
229so that it's easier to see embedded or empty layouts.</li>
230<li>Outline mode in the Visual Layout Editor draws layout outline to make it
231easier to see layout objects.</li>
232<li>Several fixes in the configuration selector of the Visual Layout
233Editor.</li>
234</ul>
235</dd>
236<dt>Application launching:</dt>
237<dd>
238<ul>
239<li>Applications launched from ADT now behave as if they were clicked from the
240Home screen.</li>
241<li>Fixes issue where add-on with no optional library would not show up as valid
242targets for application launches.</li>
243<li>Resolves possible crash when launching applications.</li>
244</ul>
245</dd>
246</dl>
247 </div>
248</div>
249
250<div class="toggleable closed">
251 <a href="#" onclick="return toggleDiv(this)">
252 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
253ADT 0.9.5</a> <em>(December 2009)</em>
254 <div class="toggleme">
255<dl>
256<dt>Dependencies:</dt>
257
258<dd><p>ADT 0.9.5 requires features provided in SDK Tools r4 or higher. If you install
259ADT 0.9.5, which is highly recommended, you should use the Android SDK and AVD
260Manager to download thye latest SDK Tools into your SDK. For more information,
261see <a href="{@docRoot}sdk/adding-components.html">Adding SDK Components</a>.</p>
262</dd>
263
264<dt>General Notes:</dt>
265<dd>
266<ul>
267<li>AVD Launch dialog now shows scale value.</li>
268<li>Fixes potential NPE in SDK Manager on AVD launch, for older AVD with no skin name specified.</li>
269<li>Fixes XML validation issue in on older Java versions.</li>
270<li>.apk packaging now properly ignores vi swap files as well as hidden files.</li>
271</ul>
272</dd>
273</dl>
274 </div>
275</div>
276
277<div class="toggleable closed">
278 <a href="#" onclick="return toggleDiv(this)">
279 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
280ADT 0.9.4</a> <em>(October 2009)</em>
281 <div class="toggleme">
282<dl>
283<dt>Dependencies:</dt>
284
285<dd><p>ADT 0.9.4 requires features provided in SDK Tools r3 or higher. If you install
286ADT 0.9.4, which is highly recommended, you should use the Android SDK and AVD
287Manager to download the latest SDK Tools into your SDK. For more information,
288see <a href="{@docRoot}sdk/adding-components.html">Adding SDK Components</a>.</p>
289</dd>
290
291<dt>Project Creation Wizard:</dt>
292<dd>
293<ul>
294<li>New option to create a project from a sample by choosing it from a list.</li>
295</ul>
296</dd>
297
298<dt>Layout Editor:</dt>
299<dd>
300<ul>
301<li>Improved Configuration selector that lets you see how your layout will
302render on different devices. Default device descriptions include ADP1
303and Google Ion, while SDK add-ons can also provide new descriptions.
304A new UI allows you to create custom descriptions.</li>
305<li>Adds a new clipping toggle, to let you see your full layout even if it's
306bigger than the screen.</li>
307</ul>
308</dd>
309
310<dt>DDMS Integration:</dt>
311<dd>
312<ul>
313<li>Includes the improvements from the standlone DDMS, revision 3.</li>
314<li>Adds an option to open HPROF files into eclipse instead of writing them on
315disk. If a profiler such as MAT (<a href="http://eclipse.org/mat">Memory Analyzer
316Tool</a>) is installed, it'll open the file.</li>
317</ul>
318</dd>
319
320<dt>Android SDK and AVD Manager integration:</dt>
321<dd>
322<ul>
323<li>Includes the improvements from the standalone Android SDK and AVD Manager,
324revision 3.</li>
325</ul>
326</dd>
327</dl>
328 </div>
329</div>
330
331<h2 id="installing">Installing the ADT Plugin</h2>
332
333<p>The sections below provide instructions on how to download and install
334ADT into your Eclipse environment. If you encounter problems, see the <a
335href="#troubleshooting">Troubleshooting</a> section.</p>
336
337<h3 id="preparing">Preparing Your Development Computer</h3>
338
339<p>ADT is a plugin for the Eclipse IDE. Before you can install or use ADT,
340you must have a compatible version of Eclipse installed on your development
341computer. </p>
342
343<ul>
344<li>If Eclipse is already installed on your computer, make sure that it is
345a version that is compatible with ADT and the Android SDK. Check the <a
346href="requirements.html">System Requirements</a> document for
347a list of Eclipse versions that are compatible with the Android SDK.</li>
348<li>If you need to install or update Eclipse, you can download it from this
349location:
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700350
Dirk Dougherty22558d02009-12-10 16:25:06 -0800351<p style="margin-left:2em;"><a href=
352"http://www.eclipse.org/downloads/">http://www.eclipse.org/downloads/</a>
353</p>
354
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700355<p>A Java or RCP version of Eclipse is recommended.</p></li>
356</ul>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700357
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700358<p>Additionally, before you can configure or use ADT, you must install the
359Android SDK starter package, as described in <a
Robert Lyef13d022010-07-12 14:32:22 -0700360href="installing.html#Installing">Downloading the SDK Starter Package</a>.
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700361Specifically, you need to install a compatible version of the Android SDK Tools
362and at least one development platform. To simplify ADT setup, we recommend
363installing the Android SDK prior to installing ADT. </p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700364
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700365<p>When your Eclipse and Android SDK environments are ready, continue with the
366ADT installation as described in the steps below. </p>
367
368<h3 id="downloading">Downloading the ADT Plugin</h3>
369
370<p>Use Update Manager feature of your Eclipse installation to install the latest
371revision of ADT on your development computer.<p>
372
373<p>Assuming that you have a compatible version of the Eclipse IDE installed, as
374described in <a href="#preparing">Preparing for Installation</a>, above, follow
375these steps to download the ADT plugin and install it in your Eclipse
376environment. </p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700377
378<table style="font-size:100%">
379<tr><th>Eclipse 3.4 (Ganymede)</th><th>Eclipse 3.5 (Galileo)</th></tr>
380<tr>
381<td width="45%">
382<!-- 3.4 steps -->
383<ol>
384 <li>Start Eclipse, then select <strong>Help</strong> &gt; <strong>Software Updates...</strong>.
385 In the dialog that appears, click the <strong>Available Software</strong> tab. </li>
386 <li>Click <strong>Add Site...</strong> </li>
387 <li>In the Add Site dialog that appears, enter this URL in the "Location" field:
388 <pre style="margin-left:0">https://dl-ssl.google.com/android/eclipse/</pre>
Scott Main13244e52010-01-19 11:12:07 -0800389 <p>Note: If you have trouble acquiring the plugin, try using "http" in the Location URL,
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700390 instead of "https" (https is preferred for security reasons).</p>
391 <p>Click <strong>OK</strong>.</p></li>
392 <li>Back in the Available Software view, you should see the plugin listed by the URL,
393 with "Developer Tools" nested within it. Select the checkbox next to
394 Developer Tools and click <strong>Install...</strong></li>
395 <li>On the subsequent Install window, "Android DDMS" and "Android Development Tools"
396 should both be checked. Click <strong>Next</strong>. </li>
397 <li>Read and accept the license agreement, then click <strong>Finish</strong>.</li>
398 <li>Restart Eclipse. </li>
399</ol>
400
401</td>
402<td>
403<!-- 3.5 steps -->
404<ol>
405 <li>Start Eclipse, then select <strong>Help</strong> &gt; <strong>Install
Scott Main13244e52010-01-19 11:12:07 -0800406 New Software</strong>. </li>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700407 <li>In the Available Software dialog, click <strong>Add...</strong>.</li>
408 <li>In the Add Site dialog that appears, enter a name for the remote site
409 (for example, "Android Plugin") in the "Name" field.
410 <p>In the "Location" field, enter this URL:</p>
411 <pre>https://dl-ssl.google.com/android/eclipse/</pre>
Scott Main13244e52010-01-19 11:12:07 -0800412 <p>Note: If you have trouble acquiring the plugin, you can try
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700413 using "http" in the URL, instead of "https" (https is preferred for
414 security reasons).</p>
415 <p>Click <strong>OK</strong>.</p>
416 </li>
417 <li>Back in the Available Software view, you should now see "Developer
418 Tools" added to the list. Select the checkbox next to Developer Tools,
419 which will automatically select the nested tools Android DDMS and Android
420 Development Tools.
421 Click <strong>Next</strong>. </li>
422 <li>In the resulting Install Details dialog, the Android DDMS and Android
423 Development Tools features are listed. Click <strong>Next</strong> to
424 read and accept the license agreement and install any dependencies,
425 then click <strong>Finish</strong>. </li>
426 <li>Restart Eclipse. </li>
427
428</ol>
429</td>
430</tr>
431</table>
432
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700433<h3 id="preparing">Configuring the ADT Plugin</h3>
434
Dirk Dougherty4b4af992010-09-13 11:24:06 -0700435<p>Once you've successfully downloaded ADT as described above, the next step
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700436is to modify your ADT preferences in Eclipse to point to the Android SDK directory:</p>
437
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700438<ol>
439 <li>Select <strong>Window</strong> &gt; <strong>Preferences...</strong> to open the Preferences
440 panel (Mac OS X: <strong>Eclipse</strong> &gt; <strong>Preferences</strong>).</li>
441 <li>Select <strong>Android</strong> from the left panel. </li>
442 <li>For the <em>SDK Location</em> in the main panel, click <strong>Browse...</strong> and
443 locate your downloaded SDK directory. </li>
444 <li>Click <strong>Apply</strong>, then <strong>OK</strong>.</li>
445</ol>
446
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700447<p>Done! If you haven't encountered any problems, then the installation is
448complete. Now read <a href="installing.html#components">Adding Platforms and
449Other Components</a> for instructions on how to complete the setup of your
450SDK environment. </p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700451
452
453<h3 id="troubleshooting">Troubleshooting ADT Installation</h3>
454
455<p> If you are having trouble downloading the ADT plugin after following the
456steps above, here are some suggestions: </p>
457
458<ul>
459 <li>If Eclipse can not find the remote update site containing the ADT plugin,
460try changing the remote site URL to use http, rather than https. That is, set
461the Location for the remote site to:
462<pre>http://dl-ssl.google.com/android/eclipse/</pre></li>
463<li>If you are behind a firewall (such as a corporate firewall), make sure that
464you have properly configured your proxy settings in Eclipse. In Eclipse 3.3/3.4,
465you can configure proxy information from the main Eclipse menu in
466<strong>Window</strong> (on Mac OS X, <strong>Eclipse</strong>) &gt;
467<strong>Preferences</strong> &gt; <strong>General</strong> &gt; <strong>Network
468Connections</strong>.</li>
469</ul>
470
471<p> If you are still unable to use Eclipse to download the ADT plugin as a
472remote update site, you can download the ADT zip file to your local machine and
473manually install it:</p>
474
475<ol>
476 <li>Download the current ADT Plugin zip file from the table below (do not unpack it).
477
478 <table class="download">
479 <tr>
480 <th>Name</th>
481 <th>Package</th>
482 <th>Size</th>
483 <th>MD5 Checksum</th>
484 </tr>
485 <tr>
486 <td>ADT {@adtZipVersion}</td>
487 <td>
488 <a href="http://dl.google.com/android/{@adtZipDownload}">{@adtZipDownload}</a>
489 </td>
490 <td>{@adtZipBytes} bytes</td>
491 <td>{@adtZipChecksum}</td>
492 </tr>
493</table>
494</li>
495
496</li>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700497 <li>Follow steps 1 and 2 in the <a href="#installing">default install
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700498 instructions</a> (above).</li>
499 <li>In the Add Site dialog, click <strong>Archive</strong>.</li>
500 <li>Browse and select the downloaded zip file.</li>
501 <li>In Eclipse 3.5 only, enter a name for the local update site (e.g.,
502 "Android Plugin") in the "Name" field.</li>
503 <li>Click <strong>OK</strong>.
504 <li>Follow the remaining procedures as listed for
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700505 <a href="#installing">default installation</a> above,
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700506 starting from step 4.</li>
507</ol>
508
509<p>To update your plugin once you've installed using the zip file, you will have
510to follow these steps again instead of the default update instructions.</p>
511
512<h4>Other install errors</h4>
513
514<p>Note that there are features of ADT that require some optional
515Eclipse components (for example, WST). If you encounter an error when
516installing ADT, your Eclipse installion might not include these components.
517For information about how to quickly add the necessary components to your
518Eclipse installation, see the troubleshooting topic
Dirk Dougherty22558d02009-12-10 16:25:06 -0800519<a href="{@docRoot}resources/faq/troubleshooting.html#installeclipsecomponents">ADT
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700520Installation Error: "requires plug-in org.eclipse.wst.sse.ui"</a>.</p>
521
522<h4>For Linux users</h4>
523<p>If you encounter this error when installing the ADT Plugin for Eclipse:
524<pre>
525An error occurred during provisioning.
526Cannot connect to keystore.
527JKS</pre>
528<p>
529...then your development machine lacks a suitable Java VM. Installing Sun
530Java 6 will resolve this issue and you can then reinstall the ADT
531Plugin.</p>
532
533
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700534<h2 id="updating">Updating the ADT Plugin</h2>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700535
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700536<p>From time to time, a new revision of the ADT Plugin becomes available, with
537new features and bug fixes. Generally, when a new revision of ADT is available,
538you should update to it as soon as convenient. </p>
539
540<p>In some cases, a new revision of ADT will have a dependency on a specific
541revision of the Android SDK Tools. If such dependencies exist, you will need to
542update the SDK Tools component of the SDK after installing the new revision of
543ADT. To update the SDK Tools component, use the Android SDK and AVD Manager, as
544described in <a href="adding-components.html">Adding SDK Components</a>.</p>
545
546<p>To learn about new features of each ADT revision and also any dependencies on
547the SDK Tools, see the listings in the <a href="#notes">Revisions</a>
548section. To determine the version currently installed, open the
549Eclipse Installed Software window using <strong>Help</strong>
550&gt; <strong>Software Updates</strong> and refer to the version listed for
551"Android Development Tools".</p>
552
553<p>Follow the steps below to check whether an update is available and, if so,
554to install it. </p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700555
556<table style="font-size:100%">
557<tr><th>Eclipse 3.4 (Ganymede)</th><th>Eclipse 3.5 (Galileo)</th></tr>
558<tr>
559<td width="50%">
560<!-- 3.4 steps -->
561<ol>
562 <li>Select <strong>Help</strong> &gt; <strong>Software Updates</strong>.</li>
563 <li>Select the <strong>Available Software</strong> tab.</li>
564 <li>Select the checkboxes next to Android DDMS and Android Developer Tools,
565 then click <strong>Update</strong>.</li>
566 <li>In the resulting Available Updates dialog, ensure that both Android DDMS
567 and Android Development Tools are selected, then click
568 <strong>Next</strong>.</li>
569 <li>Read and accept the license agreement and then click <strong>Finish</strong>.
570 This will download and install the latest version of Android DDMS and
571 Android Development Tools.</li>
572 <li>Restart Eclipse.</li>
573</ol>
574</td>
575<td>
576<!-- 3.5 steps -->
577<ol>
578 <li>Select <strong>Help</strong> &gt; <strong>Check for Updates</strong>. </li>
579 <li>In the resulting Available Updates dialog, locate the Android DDMS and
580 Android Development Tools features in the list and ensure that the checkboxes
581 next to them are selected. Click <strong>Next</strong>.
582 <p>If the Available Updates dialog does not list Android DDMS and Android
583 Development tools, make sure that you have set up a remote update site
584 for them, as described in
585 <a href="#installing">Installing the ADT Plugin</a>.
586 </p></li>
587 <li>In the Update Details dialog, click <strong>Next</strong>.</li>
588 <li>Read and accept the license agreement and then click <strong>Finish</strong>.
589 This will download and install the latest version of Android DDMS and
590 Android Development Tools.</li>
591 <li>Restart Eclipse.</li>
592</ol>
593</td>
594</tr>
595</table>
596
597
598<p>If you encounter problems during the update of ADT, you
599can try removing the existing ADT plugin and then performing a fresh
Dirk Dougherty22558d02009-12-10 16:25:06 -0800600installation. To remove the plugin, follow the instructions in <a
601href="#uninstalling">Uninstalling the ADT Plugin</a>, below. To reinstall
602the plugin, follow the instructions in <a
603href="#installing">Installing the ADT Plugin</a>, above.</p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700604
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700605
606<h2 id="uninstalling">Uninstalling the ADT plugin</h2>
607
608<p><p>If you encounter problems when installing or updating ADT, you
609can try removing the existing ADT plugin and then performing a fresh
610installation. To remove ADT, follow these steps: </p>
611
612<table style="font-size:100%">
613<tr><th>Eclipse 3.4 (Ganymede)</th><th>Eclipse 3.5 (Galileo)</th></tr>
614<tr>
615<td width="50%">
616<!-- 3.4 steps -->
617<ol>
618 <li>Select <strong>Help</strong> &gt; <strong>Software Updates</strong> &gt;
619 <strong>Manage Configuration</strong>. </li>
620 <li>Expand the list in the left panel to reveal the installed tools.</li>
621 <li>Right-click "Android Editors" and click <strong>Uninstall</strong>. Click <strong>OK</strong>
622 to confirm.</li>
623 <li>Restart Eclipse.
624 <p>(Do not uninstall "Android Development Tools".)</p></li>
625</ol>
626</td>
627<td>
628<!-- 3.5 steps -->
629<ol>
630 <li>Select <strong>Help</strong> &gt; <strong>Install New Software</strong>.</li>
631 <li>In the "Details" panel, click the "What is already installed?" link.</li>
632 <li>In the <strong>Eclipse Installation Details</strong> dialog, select "Android DDMS" and "Android Development Tools" and then click <strong>Uninstall</strong>.</li>
633 <li>In the next window, confirm that the ADT features are selected for uninstall and then click <strong>Finish</strong> to uninstall.</li>
634 <li>Restart Eclipse.</li>
635</ol>
636</td>
637</tr>
638</table>
639