blob: 3d4b6a12f2e28c2f8c1c451cefea3d3b82899d8d [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 Dougherty022171b2010-07-30 19:24:17 -070098
99
100
Dirk Dougherty0d1b0812010-04-07 17:05:16 -0700101<div class="toggleable opened">
102 <a href="#" onclick="return toggleDiv(this)">
Dirk Dougherty022171b2010-07-30 19:24:17 -0700103 <img src="{@docRoot}assets/images/triangle-opened.png" class="toggle-img" height="9px" width="9px" />
Dirk Dougherty74a74d32010-09-09 18:40:13 -0700104ADT 0.9.8</a> <em>(September 2010)</em>
Dirk Dougherty022171b2010-07-30 19:24:17 -0700105 <div class="toggleme">
106
107
108</ul>
109</dd>
110
111<dl>
112
113<dt>Dependencies:</dt>
114
115<dd><p>ADT 0.9.8 is designed for use with SDK Tools r7 and later. Before
116updating to ADT 0.9.8, we highly recommend that you use the Android SDK and
117AVD Manager to install SDK Tools r7 into your SDK.</p></dd>
118
119<dt>General notes:</dt>
120<dd>
121<ul>
122<li>Adds a new Action, "Rename Application Package", to the Android Tools
123contextual menu. The Action does a full application package refactoring.
124<li>Adds support for library projects that don't have a source folder
125called <code>src/</code>. There is now support for any number of source folders,
126with no name restriction. They can even be in subfolder such as
127<code>src/java</code>. If you are already working with library projects created
128in ADT 0.9.7, see <a
129href="{@docRoot}guide/developing/eclipse-adt.html#libraryMigrating">Migrating
130library projects to ADT 0.9.8</a> for important information about moving
131to the new ADT environment.</li>
132<li>Adds support for library projects that depend on other library
133projects.</li>
134<li>Adds support for additional resource qualifiers:
135<code>car</code>/<code>desk</code>, <code>night</code>/<code>notnight</code> and
136<code>navexposed</code>/<code>navhidden</code>.</li>
137<li>Adds more device screen types in the layout editor. All screen
138resolution/density combinations listed in the <a
139href="{@docRoot}guide/practices/screens_support.html#range">Supporting
140Multiple Screens</a> are now available.</li>
141<li>Fixes problems with handling of library project names that
142contain characters that are incompatible with the Eclipse path variable.
143Now properly sets up the link between the main project and the library
144project.</li>
145</ul>
146</dd>
147</dl>
148 </div>
149</div>
150
151
152<div class="toggleable closed">
153 <a href="#" onclick="return toggleDiv(this)">
Dirk Dougherty0d1b0812010-04-07 17:05:16 -0700154 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
Dirk Doughertyc7c7afd2010-05-24 09:07:14 -0700155ADT 0.9.7</a> <em>(May 2010)</em>
Dirk Dougherty0d1b0812010-04-07 17:05:16 -0700156 <div class="toggleme">
157
158<dl>
159<dt>Library projects:</dt>
160<dd>
161<p>The ADT Plugin now supports the use of <em>library projects</em> during
162development, a capability that lets you store shared Android application
163code and resources in a separate development project. You can then reference the
164library project from other Android projects and, at build time, the tools
165compile the shared code and resources as part of the dependent applications.
166More information about this feature is available in the <a
167href="{@docRoot}guide/developing/eclipse-adt.html#libraryProject">Developing
168in Eclipse with ADT</a> document. </p>
169<p>If you are not developing in Eclipse, <a
170href="tools-notes.html">SDK Tools r6</a> provides the equivalent library
171project support through the Ant build system.</p>
172</dd>
173</dl>
174 </div>
175</div>
176
Dirk Dougherty022171b2010-07-30 19:24:17 -0700177
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700178<div class="toggleable closed">
179 <a href="#" onclick="return toggleDiv(this)">
180 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
181ADT 0.9.6</a> <em>(March 2010)</em>
182 <div class="toggleme">
183
184<dl>
185<dt>Dependencies:</dt>
186
187<dd><p>ADT 0.9.6 is designed for use with SDK Tools r5 and later. Before
188updating to ADT 0.9.6, we highly recommend that you use the Android SDK and
189AVD Manager to install SDK Tools r5 into your SDK.</p></dd>
190
191<dt>General Notes:</dt>
192<dd>
193<ul>
194<li>Editing <code>default.properties</code> outside of Eclipse will now
195automatically update the project.</li>
196<li>Loads the SDK content only when a project requires it. This will make
197Eclipse use less resources when the SDK contains many versions of Android.</li>
198<li>Resolves potential deadlock between modal dialogs, when launching ADT the
199first time with the SDK Usage panel.</li>
200<li>Fixes issues with the New Project Wizard when selecting samples.</li>
201</ul>
202</dd>
203<dt>AVD/SDK Manager:</dt>
204<dd>
205<ul>
206<li>Adds support for platform samples components.</li>
207<li>Improves support for dependency between components.</li>
208<li>AVDs now sorted by API level.</li>
209<li>The AVD creation dialog now enforces a minimum SD card size of 9MB.</li>
210<li>Prevents deletion of running AVDs.</li>
211</ul>
212</dd>
213<dt>DDMS:</dt>
214<dd>
215<ul>
216<li>DDMS plug-in now contains the Allocation Tracker view.</li>
217<li>New action in the Logcat view: "Go to problem" lets you go directly from an
218exception trace output to the code.</li>
219</ul>
220</dd>
221<dt>Editors:</dt>
222<dd>
223<ul>
224<li>Explode mode in the Visual Layout Editor adds a margin to all layout objects
225so that it's easier to see embedded or empty layouts.</li>
226<li>Outline mode in the Visual Layout Editor draws layout outline to make it
227easier to see layout objects.</li>
228<li>Several fixes in the configuration selector of the Visual Layout
229Editor.</li>
230</ul>
231</dd>
232<dt>Application launching:</dt>
233<dd>
234<ul>
235<li>Applications launched from ADT now behave as if they were clicked from the
236Home screen.</li>
237<li>Fixes issue where add-on with no optional library would not show up as valid
238targets for application launches.</li>
239<li>Resolves possible crash when launching applications.</li>
240</ul>
241</dd>
242</dl>
243 </div>
244</div>
245
246<div class="toggleable closed">
247 <a href="#" onclick="return toggleDiv(this)">
248 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
249ADT 0.9.5</a> <em>(December 2009)</em>
250 <div class="toggleme">
251<dl>
252<dt>Dependencies:</dt>
253
254<dd><p>ADT 0.9.5 requires features provided in SDK Tools r4 or higher. If you install
255ADT 0.9.5, which is highly recommended, you should use the Android SDK and AVD
256Manager to download thye latest SDK Tools into your SDK. For more information,
257see <a href="{@docRoot}sdk/adding-components.html">Adding SDK Components</a>.</p>
258</dd>
259
260<dt>General Notes:</dt>
261<dd>
262<ul>
263<li>AVD Launch dialog now shows scale value.</li>
264<li>Fixes potential NPE in SDK Manager on AVD launch, for older AVD with no skin name specified.</li>
265<li>Fixes XML validation issue in on older Java versions.</li>
266<li>.apk packaging now properly ignores vi swap files as well as hidden files.</li>
267</ul>
268</dd>
269</dl>
270 </div>
271</div>
272
273<div class="toggleable closed">
274 <a href="#" onclick="return toggleDiv(this)">
275 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
276ADT 0.9.4</a> <em>(October 2009)</em>
277 <div class="toggleme">
278<dl>
279<dt>Dependencies:</dt>
280
281<dd><p>ADT 0.9.4 requires features provided in SDK Tools r3 or higher. If you install
282ADT 0.9.4, which is highly recommended, you should use the Android SDK and AVD
283Manager to download the latest SDK Tools into your SDK. For more information,
284see <a href="{@docRoot}sdk/adding-components.html">Adding SDK Components</a>.</p>
285</dd>
286
287<dt>Project Creation Wizard:</dt>
288<dd>
289<ul>
290<li>New option to create a project from a sample by choosing it from a list.</li>
291</ul>
292</dd>
293
294<dt>Layout Editor:</dt>
295<dd>
296<ul>
297<li>Improved Configuration selector that lets you see how your layout will
298render on different devices. Default device descriptions include ADP1
299and Google Ion, while SDK add-ons can also provide new descriptions.
300A new UI allows you to create custom descriptions.</li>
301<li>Adds a new clipping toggle, to let you see your full layout even if it's
302bigger than the screen.</li>
303</ul>
304</dd>
305
306<dt>DDMS Integration:</dt>
307<dd>
308<ul>
309<li>Includes the improvements from the standlone DDMS, revision 3.</li>
310<li>Adds an option to open HPROF files into eclipse instead of writing them on
311disk. If a profiler such as MAT (<a href="http://eclipse.org/mat">Memory Analyzer
312Tool</a>) is installed, it'll open the file.</li>
313</ul>
314</dd>
315
316<dt>Android SDK and AVD Manager integration:</dt>
317<dd>
318<ul>
319<li>Includes the improvements from the standalone Android SDK and AVD Manager,
320revision 3.</li>
321</ul>
322</dd>
323</dl>
324 </div>
325</div>
326
327<h2 id="installing">Installing the ADT Plugin</h2>
328
329<p>The sections below provide instructions on how to download and install
330ADT into your Eclipse environment. If you encounter problems, see the <a
331href="#troubleshooting">Troubleshooting</a> section.</p>
332
333<h3 id="preparing">Preparing Your Development Computer</h3>
334
335<p>ADT is a plugin for the Eclipse IDE. Before you can install or use ADT,
336you must have a compatible version of Eclipse installed on your development
337computer. </p>
338
339<ul>
340<li>If Eclipse is already installed on your computer, make sure that it is
341a version that is compatible with ADT and the Android SDK. Check the <a
342href="requirements.html">System Requirements</a> document for
343a list of Eclipse versions that are compatible with the Android SDK.</li>
344<li>If you need to install or update Eclipse, you can download it from this
345location:
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700346
Dirk Dougherty22558d02009-12-10 16:25:06 -0800347<p style="margin-left:2em;"><a href=
348"http://www.eclipse.org/downloads/">http://www.eclipse.org/downloads/</a>
349</p>
350
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700351<p>A Java or RCP version of Eclipse is recommended.</p></li>
352</ul>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700353
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700354<p>Additionally, before you can configure or use ADT, you must install the
355Android SDK starter package, as described in <a
Robert Lyef13d022010-07-12 14:32:22 -0700356href="installing.html#Installing">Downloading the SDK Starter Package</a>.
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700357Specifically, you need to install a compatible version of the Android SDK Tools
358and at least one development platform. To simplify ADT setup, we recommend
359installing the Android SDK prior to installing ADT. </p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700360
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700361<p>When your Eclipse and Android SDK environments are ready, continue with the
362ADT installation as described in the steps below. </p>
363
364<h3 id="downloading">Downloading the ADT Plugin</h3>
365
366<p>Use Update Manager feature of your Eclipse installation to install the latest
367revision of ADT on your development computer.<p>
368
369<p>Assuming that you have a compatible version of the Eclipse IDE installed, as
370described in <a href="#preparing">Preparing for Installation</a>, above, follow
371these steps to download the ADT plugin and install it in your Eclipse
372environment. </p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700373
374<table style="font-size:100%">
375<tr><th>Eclipse 3.4 (Ganymede)</th><th>Eclipse 3.5 (Galileo)</th></tr>
376<tr>
377<td width="45%">
378<!-- 3.4 steps -->
379<ol>
380 <li>Start Eclipse, then select <strong>Help</strong> &gt; <strong>Software Updates...</strong>.
381 In the dialog that appears, click the <strong>Available Software</strong> tab. </li>
382 <li>Click <strong>Add Site...</strong> </li>
383 <li>In the Add Site dialog that appears, enter this URL in the "Location" field:
384 <pre style="margin-left:0">https://dl-ssl.google.com/android/eclipse/</pre>
Scott Main13244e52010-01-19 11:12:07 -0800385 <p>Note: If you have trouble acquiring the plugin, try using "http" in the Location URL,
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700386 instead of "https" (https is preferred for security reasons).</p>
387 <p>Click <strong>OK</strong>.</p></li>
388 <li>Back in the Available Software view, you should see the plugin listed by the URL,
389 with "Developer Tools" nested within it. Select the checkbox next to
390 Developer Tools and click <strong>Install...</strong></li>
391 <li>On the subsequent Install window, "Android DDMS" and "Android Development Tools"
392 should both be checked. Click <strong>Next</strong>. </li>
393 <li>Read and accept the license agreement, then click <strong>Finish</strong>.</li>
394 <li>Restart Eclipse. </li>
395</ol>
396
397</td>
398<td>
399<!-- 3.5 steps -->
400<ol>
401 <li>Start Eclipse, then select <strong>Help</strong> &gt; <strong>Install
Scott Main13244e52010-01-19 11:12:07 -0800402 New Software</strong>. </li>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700403 <li>In the Available Software dialog, click <strong>Add...</strong>.</li>
404 <li>In the Add Site dialog that appears, enter a name for the remote site
405 (for example, "Android Plugin") in the "Name" field.
406 <p>In the "Location" field, enter this URL:</p>
407 <pre>https://dl-ssl.google.com/android/eclipse/</pre>
Scott Main13244e52010-01-19 11:12:07 -0800408 <p>Note: If you have trouble acquiring the plugin, you can try
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700409 using "http" in the URL, instead of "https" (https is preferred for
410 security reasons).</p>
411 <p>Click <strong>OK</strong>.</p>
412 </li>
413 <li>Back in the Available Software view, you should now see "Developer
414 Tools" added to the list. Select the checkbox next to Developer Tools,
415 which will automatically select the nested tools Android DDMS and Android
416 Development Tools.
417 Click <strong>Next</strong>. </li>
418 <li>In the resulting Install Details dialog, the Android DDMS and Android
419 Development Tools features are listed. Click <strong>Next</strong> to
420 read and accept the license agreement and install any dependencies,
421 then click <strong>Finish</strong>. </li>
422 <li>Restart Eclipse. </li>
423
424</ol>
425</td>
426</tr>
427</table>
428
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700429<h3 id="preparing">Configuring the ADT Plugin</h3>
430
Dirk Dougherty4b4af992010-09-13 11:24:06 -0700431<p>Once you've successfully downloaded ADT as described above, the next step
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700432is to modify your ADT preferences in Eclipse to point to the Android SDK directory:</p>
433
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700434<ol>
435 <li>Select <strong>Window</strong> &gt; <strong>Preferences...</strong> to open the Preferences
436 panel (Mac OS X: <strong>Eclipse</strong> &gt; <strong>Preferences</strong>).</li>
437 <li>Select <strong>Android</strong> from the left panel. </li>
438 <li>For the <em>SDK Location</em> in the main panel, click <strong>Browse...</strong> and
439 locate your downloaded SDK directory. </li>
440 <li>Click <strong>Apply</strong>, then <strong>OK</strong>.</li>
441</ol>
442
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700443<p>Done! If you haven't encountered any problems, then the installation is
444complete. Now read <a href="installing.html#components">Adding Platforms and
445Other Components</a> for instructions on how to complete the setup of your
446SDK environment. </p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700447
448
449<h3 id="troubleshooting">Troubleshooting ADT Installation</h3>
450
451<p> If you are having trouble downloading the ADT plugin after following the
452steps above, here are some suggestions: </p>
453
454<ul>
455 <li>If Eclipse can not find the remote update site containing the ADT plugin,
456try changing the remote site URL to use http, rather than https. That is, set
457the Location for the remote site to:
458<pre>http://dl-ssl.google.com/android/eclipse/</pre></li>
459<li>If you are behind a firewall (such as a corporate firewall), make sure that
460you have properly configured your proxy settings in Eclipse. In Eclipse 3.3/3.4,
461you can configure proxy information from the main Eclipse menu in
462<strong>Window</strong> (on Mac OS X, <strong>Eclipse</strong>) &gt;
463<strong>Preferences</strong> &gt; <strong>General</strong> &gt; <strong>Network
464Connections</strong>.</li>
465</ul>
466
467<p> If you are still unable to use Eclipse to download the ADT plugin as a
468remote update site, you can download the ADT zip file to your local machine and
469manually install it:</p>
470
471<ol>
472 <li>Download the current ADT Plugin zip file from the table below (do not unpack it).
473
474 <table class="download">
475 <tr>
476 <th>Name</th>
477 <th>Package</th>
478 <th>Size</th>
479 <th>MD5 Checksum</th>
480 </tr>
481 <tr>
482 <td>ADT {@adtZipVersion}</td>
483 <td>
484 <a href="http://dl.google.com/android/{@adtZipDownload}">{@adtZipDownload}</a>
485 </td>
486 <td>{@adtZipBytes} bytes</td>
487 <td>{@adtZipChecksum}</td>
488 </tr>
489</table>
490</li>
491
492</li>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700493 <li>Follow steps 1 and 2 in the <a href="#installing">default install
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700494 instructions</a> (above).</li>
495 <li>In the Add Site dialog, click <strong>Archive</strong>.</li>
496 <li>Browse and select the downloaded zip file.</li>
497 <li>In Eclipse 3.5 only, enter a name for the local update site (e.g.,
498 "Android Plugin") in the "Name" field.</li>
499 <li>Click <strong>OK</strong>.
500 <li>Follow the remaining procedures as listed for
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700501 <a href="#installing">default installation</a> above,
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700502 starting from step 4.</li>
503</ol>
504
505<p>To update your plugin once you've installed using the zip file, you will have
506to follow these steps again instead of the default update instructions.</p>
507
508<h4>Other install errors</h4>
509
510<p>Note that there are features of ADT that require some optional
511Eclipse components (for example, WST). If you encounter an error when
512installing ADT, your Eclipse installion might not include these components.
513For information about how to quickly add the necessary components to your
514Eclipse installation, see the troubleshooting topic
Dirk Dougherty22558d02009-12-10 16:25:06 -0800515<a href="{@docRoot}resources/faq/troubleshooting.html#installeclipsecomponents">ADT
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700516Installation Error: "requires plug-in org.eclipse.wst.sse.ui"</a>.</p>
517
518<h4>For Linux users</h4>
519<p>If you encounter this error when installing the ADT Plugin for Eclipse:
520<pre>
521An error occurred during provisioning.
522Cannot connect to keystore.
523JKS</pre>
524<p>
525...then your development machine lacks a suitable Java VM. Installing Sun
526Java 6 will resolve this issue and you can then reinstall the ADT
527Plugin.</p>
528
529
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700530<h2 id="updating">Updating the ADT Plugin</h2>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700531
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700532<p>From time to time, a new revision of the ADT Plugin becomes available, with
533new features and bug fixes. Generally, when a new revision of ADT is available,
534you should update to it as soon as convenient. </p>
535
536<p>In some cases, a new revision of ADT will have a dependency on a specific
537revision of the Android SDK Tools. If such dependencies exist, you will need to
538update the SDK Tools component of the SDK after installing the new revision of
539ADT. To update the SDK Tools component, use the Android SDK and AVD Manager, as
540described in <a href="adding-components.html">Adding SDK Components</a>.</p>
541
542<p>To learn about new features of each ADT revision and also any dependencies on
543the SDK Tools, see the listings in the <a href="#notes">Revisions</a>
544section. To determine the version currently installed, open the
545Eclipse Installed Software window using <strong>Help</strong>
546&gt; <strong>Software Updates</strong> and refer to the version listed for
547"Android Development Tools".</p>
548
549<p>Follow the steps below to check whether an update is available and, if so,
550to install it. </p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700551
552<table style="font-size:100%">
553<tr><th>Eclipse 3.4 (Ganymede)</th><th>Eclipse 3.5 (Galileo)</th></tr>
554<tr>
555<td width="50%">
556<!-- 3.4 steps -->
557<ol>
558 <li>Select <strong>Help</strong> &gt; <strong>Software Updates</strong>.</li>
559 <li>Select the <strong>Available Software</strong> tab.</li>
560 <li>Select the checkboxes next to Android DDMS and Android Developer Tools,
561 then click <strong>Update</strong>.</li>
562 <li>In the resulting Available Updates dialog, ensure that both Android DDMS
563 and Android Development Tools are selected, then click
564 <strong>Next</strong>.</li>
565 <li>Read and accept the license agreement and then click <strong>Finish</strong>.
566 This will download and install the latest version of Android DDMS and
567 Android Development Tools.</li>
568 <li>Restart Eclipse.</li>
569</ol>
570</td>
571<td>
572<!-- 3.5 steps -->
573<ol>
574 <li>Select <strong>Help</strong> &gt; <strong>Check for Updates</strong>. </li>
575 <li>In the resulting Available Updates dialog, locate the Android DDMS and
576 Android Development Tools features in the list and ensure that the checkboxes
577 next to them are selected. Click <strong>Next</strong>.
578 <p>If the Available Updates dialog does not list Android DDMS and Android
579 Development tools, make sure that you have set up a remote update site
580 for them, as described in
581 <a href="#installing">Installing the ADT Plugin</a>.
582 </p></li>
583 <li>In the Update Details dialog, click <strong>Next</strong>.</li>
584 <li>Read and accept the license agreement and then click <strong>Finish</strong>.
585 This will download and install the latest version of Android DDMS and
586 Android Development Tools.</li>
587 <li>Restart Eclipse.</li>
588</ol>
589</td>
590</tr>
591</table>
592
593
594<p>If you encounter problems during the update of ADT, you
595can try removing the existing ADT plugin and then performing a fresh
Dirk Dougherty22558d02009-12-10 16:25:06 -0800596installation. To remove the plugin, follow the instructions in <a
597href="#uninstalling">Uninstalling the ADT Plugin</a>, below. To reinstall
598the plugin, follow the instructions in <a
599href="#installing">Installing the ADT Plugin</a>, above.</p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700600
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700601
602<h2 id="uninstalling">Uninstalling the ADT plugin</h2>
603
604<p><p>If you encounter problems when installing or updating ADT, you
605can try removing the existing ADT plugin and then performing a fresh
606installation. To remove ADT, follow these steps: </p>
607
608<table style="font-size:100%">
609<tr><th>Eclipse 3.4 (Ganymede)</th><th>Eclipse 3.5 (Galileo)</th></tr>
610<tr>
611<td width="50%">
612<!-- 3.4 steps -->
613<ol>
614 <li>Select <strong>Help</strong> &gt; <strong>Software Updates</strong> &gt;
615 <strong>Manage Configuration</strong>. </li>
616 <li>Expand the list in the left panel to reveal the installed tools.</li>
617 <li>Right-click "Android Editors" and click <strong>Uninstall</strong>. Click <strong>OK</strong>
618 to confirm.</li>
619 <li>Restart Eclipse.
620 <p>(Do not uninstall "Android Development Tools".)</p></li>
621</ol>
622</td>
623<td>
624<!-- 3.5 steps -->
625<ol>
626 <li>Select <strong>Help</strong> &gt; <strong>Install New Software</strong>.</li>
627 <li>In the "Details" panel, click the "What is already installed?" link.</li>
628 <li>In the <strong>Eclipse Installation Details</strong> dialog, select "Android DDMS" and "Android Development Tools" and then click <strong>Uninstall</strong>.</li>
629 <li>In the next window, confirm that the ADT features are selected for uninstall and then click <strong>Finish</strong> to uninstall.</li>
630 <li>Restart Eclipse.</li>
631</ol>
632</td>
633</tr>
634</table>
635