blob: 0d1ea0c8c11ddadf8b8aabae1bdf6307b819d1ea [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
Scott Main92b03082010-12-14 17:55:27 -08003adt.zip.version=8.0.1
4adt.zip.download=ADT-8.0.1.zip
5adt.zip.bytes=8724909
6adt.zip.checksum=0e62185279083ddc01f18098ce7ba2d1
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>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070025 </ol>
26
27</div>
28</div>
29
Scott Main081127b2010-10-29 15:56:27 -070030<p>Android Development Tools (ADT) is a plugin for the Eclipse IDE
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070031that is designed to give you a powerful, integrated environment in which
32to build Android applications. </p>
Dirk Doughertybf15ce62009-10-23 19:17:12 -070033
Scott Main13244e52010-01-19 11:12:07 -080034<p>ADT extends the capabilities of Eclipse to let you quickly set up new Android
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070035projects, create an application UI, add components based on the Android
Dirk Doughertybf15ce62009-10-23 19:17:12 -070036Framework API, debug your applications using the Android SDK tools, and even
37export signed (or unsigned) APKs in order to distribute your application.</p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070038
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070039<p>Developing in Eclipse with ADT is highly recommended and is the fastest way
40to get started. With the guided project setup it provides, as well as tools
41integration, custom XML editors, and debug ouput pane, ADT gives you an
42incredible boost in developing Android applications. </p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070043
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070044<p>This document provides step-by-step instructions on how to download the ADT
45plugin and install it into your Eclipse development environment. Note that
46before you can install or use ADT, you must have compatible versions of both the
47Eclipse IDE and the Android SDK installed. For details, make sure to read <a
48href="#installing">Installing the ADT Plugin</a>, below. </p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070049
Scott Main081127b2010-10-29 15:56:27 -070050<p>If you are already using ADT, this document also provides instructions on
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070051how to update ADT to the latest version or how to uninstall it, if necessary.
52</p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070053
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
Dirk Dougherty0d1b0812010-04-07 17:05:16 -070099<div class="toggleable opened">
100 <a href="#" onclick="return toggleDiv(this)">
Scott Main92b03082010-12-14 17:55:27 -0800101 <img src="{@docRoot}assets/images/triangle-opened.png" class="toggle-img" height="9px"
102width="9px" />
103ADT 8.0.1</a> <em>(December 2010)</em>
104 <div class="toggleme">
105
106<dl>
107
108<dt>Dependencies:</dt>
109
110<p><p>ADT 8.0.1 is designed for use with SDK Tools r8. If you haven't
111already installed SDK Tools r8 into your SDK, use the Android SDK and AVD Manager to do
112so.</p></dd>
113
114<dt>General notes:</dt>
115<dd>
116<ul>
117 <li>This is a quick follow-up to ADT 8.0.0 to fix some bugs.</li>
118 <li>Fixes an issue in which projects failed to compile, citing a dex error.</li>
119 <li>Better ProGuard error reporting when exporting applications for release.</li>
120</ul>
121<p>Also see the recent release notes for 8.0.0, below.</p>
122</dd>
123</dl>
124 </div>
125</div>
126
127
128<div class="toggleable closed">
129 <a href="#" onclick="return toggleDiv(this)">
130 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px"
131width="9px" />
Dirk Dougherty9f7580d2010-10-26 09:29:03 -0700132ADT 8.0.0</a> <em>(December 2010)</em>
Dirk Dougherty9a97aaf2010-09-23 11:48:54 -0700133 <div class="toggleme">
134
Scott Mainc0c0c422010-11-05 15:23:36 -0700135<dl>
Dirk Dougherty9a97aaf2010-09-23 11:48:54 -0700136
Scott Mainc0c0c422010-11-05 15:23:36 -0700137<dt>Dependencies:</dt>
138
Dirk Dougherty9f7580d2010-10-26 09:29:03 -0700139<p><p>ADT 8.0.0 is designed for use with SDK Tools r8. If you haven't
Scott Mainc0c0c422010-11-05 15:23:36 -0700140already installed SDK Tools r8 into your SDK, use the Android SDK and AVD Manager to do
141so.</p></dd>
142
143<dt>General notes:</dt>
144<dd>
145<ul>
146 <li>New version number scheme that follows the SDK Tools revision number. The major version
147number for your ADT plugin should now always match the revision number of your SDK Tools. For
148example, ADT 8.x is for SDK Tools r8.</li>
149 <li>Support for true debug build. You no longer need to change the value of the
150 <code>debuggable</code> attribute in the Android Manifest.
151 <p>Incremental builds automatically insert <code>debuggable="true"</code>, but if you perform
152 "export signed/unsigned application package", ADT does <em>not</em> insert it.
153 If you manually set <code>debuggable="true"</code> in the manifest file, then release builds will
154 actually create a debug build (it does not remove it if you placed it there).</p></li>
Scott Main9b447d12011-01-07 14:48:18 -0800155 <li>Automatic <a href="{@docRoot}guide/developing/tools/proguard.html">ProGuard</a> support in
156 release builds. For it to work, you need to have a <code>proguard.config</code>
157 property in the <code>default.properties</code> file that points to a ProGuard config file.</li>
Scott Mainc0c0c422010-11-05 15:23:36 -0700158 <li>Completely rewritten Visual Layout Editor. (This is still a work in progress.) Now includes:
159 <ul>
160 <li>Full drag and drop from palette to layout for all Layout classes.</li>
161 <li>Move widgets inside a Layout view, from one Layout view to another and from one layout file to another.</li>
162 <li>Contextual menu with enum/flag type properties.</li>
163 <li>New zoom controls.</li>
164 </ul></li>
165 <li>New HierarchyViewer plug-in integrated in Eclipse.</li>
166 <li>Android launch configurations don't recompile the whole workspace on launch anymore.</li>
167 <li><code>android.jar</code> source and javadoc location can now be configured.</li>
Dirk Dougherty9a97aaf2010-09-23 11:48:54 -0700168</ul>
169</dd>
Scott Mainc0c0c422010-11-05 15:23:36 -0700170</dl>
171 </div>
172</div>
173
174
175<div class="toggleable closed">
176 <a href="#" onclick="return toggleDiv(this)">
177 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
178ADT 0.9.9</a> <em>(September 2010)</em>
179 <div class="toggleme">
Dirk Dougherty9a97aaf2010-09-23 11:48:54 -0700180
181<dl>
182
183<dt>Dependencies:</dt>
184
185<dd><p>ADT 0.9.9 replaces ADT 0.9.8 and is designed for use with SDK Tools r7
186and later. ADT 0.9.9 includes the ADT 0.9.8 features as well as an important
187bugfix, so we recommend that you upgrade as soon as possible. If you haven't
188already installed SDK Tools r7 into your SDK, use the Android SDK Manager to do
189so.</p></dd>
190
191<dt>General notes:</dt>
192<dd>
193<ul>
194<li>Fixes a problem in project import, in which source files were deleted in some cases.</li>
195<li>Includes all other ADT 0.9.8 features (see below).</li>
196</ul>
197</dd>
198</dl>
199 </div>
200</div>
201
202<div class="toggleable closed">
203 <a href="#" onclick="return toggleDiv(this)">
204 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
Dirk Dougherty74a74d32010-09-09 18:40:13 -0700205ADT 0.9.8</a> <em>(September 2010)</em>
Dirk Dougherty022171b2010-07-30 19:24:17 -0700206 <div class="toggleme">
207
208
209</ul>
210</dd>
211
212<dl>
213
214<dt>Dependencies:</dt>
215
Dirk Dougherty9a97aaf2010-09-23 11:48:54 -0700216<dd><p>ADT 0.9.8 is now deprecated. Please use ADT 0.9.9 instead.</p></dd>
Dirk Dougherty022171b2010-07-30 19:24:17 -0700217
218<dt>General notes:</dt>
219<dd>
220<ul>
221<li>Adds a new Action, "Rename Application Package", to the Android Tools
222contextual menu. The Action does a full application package refactoring.
223<li>Adds support for library projects that don't have a source folder
224called <code>src/</code>. There is now support for any number of source folders,
225with no name restriction. They can even be in subfolder such as
226<code>src/java</code>. If you are already working with library projects created
Scott Main081127b2010-10-29 15:56:27 -0700227in ADT 0.9.7, see <a
Dirk Dougherty022171b2010-07-30 19:24:17 -0700228href="{@docRoot}guide/developing/eclipse-adt.html#libraryMigrating">Migrating
229library projects to ADT 0.9.8</a> for important information about moving
230to the new ADT environment.</li>
231<li>Adds support for library projects that depend on other library
232projects.</li>
233<li>Adds support for additional resource qualifiers:
234<code>car</code>/<code>desk</code>, <code>night</code>/<code>notnight</code> and
235<code>navexposed</code>/<code>navhidden</code>.</li>
236<li>Adds more device screen types in the layout editor. All screen
Scott Main081127b2010-10-29 15:56:27 -0700237resolution/density combinations listed in the <a
Dirk Dougherty022171b2010-07-30 19:24:17 -0700238href="{@docRoot}guide/practices/screens_support.html#range">Supporting
239Multiple Screens</a> are now available.</li>
240<li>Fixes problems with handling of library project names that
241contain characters that are incompatible with the Eclipse path variable.
242Now properly sets up the link between the main project and the library
243project.</li>
244</ul>
245</dd>
246</dl>
247 </div>
248</div>
249
250
251<div class="toggleable closed">
252 <a href="#" onclick="return toggleDiv(this)">
Dirk Dougherty0d1b0812010-04-07 17:05:16 -0700253 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
Dirk Doughertyc7c7afd2010-05-24 09:07:14 -0700254ADT 0.9.7</a> <em>(May 2010)</em>
Dirk Dougherty0d1b0812010-04-07 17:05:16 -0700255 <div class="toggleme">
256
257<dl>
258<dt>Library projects:</dt>
259<dd>
260<p>The ADT Plugin now supports the use of <em>library projects</em> during
261development, a capability that lets you store shared Android application
262code and resources in a separate development project. You can then reference the
263library project from other Android projects and, at build time, the tools
264compile the shared code and resources as part of the dependent applications.
265More information about this feature is available in the <a
Scott Main081127b2010-10-29 15:56:27 -0700266href="{@docRoot}guide/developing/eclipse-adt.html#libraryProject">Developing
Dirk Dougherty0d1b0812010-04-07 17:05:16 -0700267in Eclipse with ADT</a> document. </p>
Scott Main081127b2010-10-29 15:56:27 -0700268<p>If you are not developing in Eclipse, <a
269href="tools-notes.html">SDK Tools r6</a> provides the equivalent library
Dirk Dougherty0d1b0812010-04-07 17:05:16 -0700270project support through the Ant build system.</p>
271</dd>
272</dl>
273 </div>
274</div>
275
Dirk Dougherty022171b2010-07-30 19:24:17 -0700276
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700277<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.6</a> <em>(March 2010)</em>
281 <div class="toggleme">
282
283<dl>
284<dt>Dependencies:</dt>
285
Scott Main081127b2010-10-29 15:56:27 -0700286<dd><p>ADT 0.9.6 is designed for use with SDK Tools r5 and later. Before
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700287updating to ADT 0.9.6, we highly recommend that you use the Android SDK and
288AVD Manager to install SDK Tools r5 into your SDK.</p></dd>
289
290<dt>General Notes:</dt>
291<dd>
292<ul>
293<li>Editing <code>default.properties</code> outside of Eclipse will now
294automatically update the project.</li>
295<li>Loads the SDK content only when a project requires it. This will make
296Eclipse use less resources when the SDK contains many versions of Android.</li>
297<li>Resolves potential deadlock between modal dialogs, when launching ADT the
298first time with the SDK Usage panel.</li>
299<li>Fixes issues with the New Project Wizard when selecting samples.</li>
300</ul>
301</dd>
302<dt>AVD/SDK Manager:</dt>
303<dd>
304<ul>
305<li>Adds support for platform samples components.</li>
306<li>Improves support for dependency between components.</li>
307<li>AVDs now sorted by API level.</li>
308<li>The AVD creation dialog now enforces a minimum SD card size of 9MB.</li>
309<li>Prevents deletion of running AVDs.</li>
310</ul>
311</dd>
312<dt>DDMS:</dt>
313<dd>
314<ul>
315<li>DDMS plug-in now contains the Allocation Tracker view.</li>
316<li>New action in the Logcat view: "Go to problem" lets you go directly from an
317exception trace output to the code.</li>
318</ul>
319</dd>
320<dt>Editors:</dt>
321<dd>
322<ul>
323<li>Explode mode in the Visual Layout Editor adds a margin to all layout objects
324so that it's easier to see embedded or empty layouts.</li>
325<li>Outline mode in the Visual Layout Editor draws layout outline to make it
326easier to see layout objects.</li>
327<li>Several fixes in the configuration selector of the Visual Layout
328Editor.</li>
329</ul>
330</dd>
331<dt>Application launching:</dt>
332<dd>
333<ul>
334<li>Applications launched from ADT now behave as if they were clicked from the
335Home screen.</li>
336<li>Fixes issue where add-on with no optional library would not show up as valid
337targets for application launches.</li>
338<li>Resolves possible crash when launching applications.</li>
339</ul>
340</dd>
341</dl>
342 </div>
343</div>
344
345<div class="toggleable closed">
346 <a href="#" onclick="return toggleDiv(this)">
347 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
348ADT 0.9.5</a> <em>(December 2009)</em>
349 <div class="toggleme">
350<dl>
351<dt>Dependencies:</dt>
352
353<dd><p>ADT 0.9.5 requires features provided in SDK Tools r4 or higher. If you install
354ADT 0.9.5, which is highly recommended, you should use the Android SDK and AVD
Scott Main92b03082010-12-14 17:55:27 -0800355Manager to download the latest SDK Tools into your SDK. For more information,
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700356see <a href="{@docRoot}sdk/adding-components.html">Adding SDK Components</a>.</p>
357</dd>
358
359<dt>General Notes:</dt>
360<dd>
361<ul>
362<li>AVD Launch dialog now shows scale value.</li>
363<li>Fixes potential NPE in SDK Manager on AVD launch, for older AVD with no skin name specified.</li>
364<li>Fixes XML validation issue in on older Java versions.</li>
365<li>.apk packaging now properly ignores vi swap files as well as hidden files.</li>
366</ul>
367</dd>
368</dl>
369 </div>
370</div>
371
372<div class="toggleable closed">
373 <a href="#" onclick="return toggleDiv(this)">
374 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
375ADT 0.9.4</a> <em>(October 2009)</em>
376 <div class="toggleme">
377<dl>
378<dt>Dependencies:</dt>
379
380<dd><p>ADT 0.9.4 requires features provided in SDK Tools r3 or higher. If you install
381ADT 0.9.4, which is highly recommended, you should use the Android SDK and AVD
382Manager to download the latest SDK Tools into your SDK. For more information,
383see <a href="{@docRoot}sdk/adding-components.html">Adding SDK Components</a>.</p>
384</dd>
385
386<dt>Project Creation Wizard:</dt>
387<dd>
388<ul>
389<li>New option to create a project from a sample by choosing it from a list.</li>
390</ul>
391</dd>
392
393<dt>Layout Editor:</dt>
394<dd>
395<ul>
396<li>Improved Configuration selector that lets you see how your layout will
397render on different devices. Default device descriptions include ADP1
398and Google Ion, while SDK add-ons can also provide new descriptions.
399A new UI allows you to create custom descriptions.</li>
400<li>Adds a new clipping toggle, to let you see your full layout even if it's
401bigger than the screen.</li>
402</ul>
403</dd>
404
405<dt>DDMS Integration:</dt>
406<dd>
407<ul>
408<li>Includes the improvements from the standlone DDMS, revision 3.</li>
409<li>Adds an option to open HPROF files into eclipse instead of writing them on
Scott Main081127b2010-10-29 15:56:27 -0700410disk. If a profiler such as MAT (<a href="http://eclipse.org/mat">Memory Analyzer
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700411Tool</a>) is installed, it'll open the file.</li>
412</ul>
413</dd>
414
415<dt>Android SDK and AVD Manager integration:</dt>
416<dd>
417<ul>
Scott Main081127b2010-10-29 15:56:27 -0700418<li>Includes the improvements from the standalone Android SDK and AVD Manager,
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700419revision 3.</li>
420</ul>
421</dd>
422</dl>
423 </div>
424</div>
425
Scott Main77847a32010-11-09 16:41:32 -0800426
427
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700428<h2 id="installing">Installing the ADT Plugin</h2>
429
430<p>The sections below provide instructions on how to download and install
431ADT into your Eclipse environment. If you encounter problems, see the <a
432href="#troubleshooting">Troubleshooting</a> section.</p>
433
Scott Main77847a32010-11-09 16:41:32 -0800434
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700435<h3 id="preparing">Preparing Your Development Computer</h3>
436
437<p>ADT is a plugin for the Eclipse IDE. Before you can install or use ADT,
438you must have a compatible version of Eclipse installed on your development
439computer. </p>
440
441<ul>
442<li>If Eclipse is already installed on your computer, make sure that it is
443a version that is compatible with ADT and the Android SDK. Check the <a
444href="requirements.html">System Requirements</a> document for
445a list of Eclipse versions that are compatible with the Android SDK.</li>
446<li>If you need to install or update Eclipse, you can download it from this
447location:
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700448
Dirk Dougherty22558d02009-12-10 16:25:06 -0800449<p style="margin-left:2em;"><a href=
450"http://www.eclipse.org/downloads/">http://www.eclipse.org/downloads/</a>
451</p>
452
Scott Main77847a32010-11-09 16:41:32 -0800453<p>For Eclipse 3.5 or newer, the "Eclipse Classic" version is recommended. Otherwise, a Java or RCP
454version of Eclipse is recommended.</p></li>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700455</ul>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700456
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700457<p>Additionally, before you can configure or use ADT, you must install the
458Android SDK starter package, as described in <a
Robert Lyef13d022010-07-12 14:32:22 -0700459href="installing.html#Installing">Downloading the SDK Starter Package</a>.
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700460Specifically, you need to install a compatible version of the Android SDK Tools
461and at least one development platform. To simplify ADT setup, we recommend
462installing the Android SDK prior to installing ADT. </p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700463
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700464<p>When your Eclipse and Android SDK environments are ready, continue with the
465ADT installation as described in the steps below. </p>
466
467<h3 id="downloading">Downloading the ADT Plugin</h3>
468
469<p>Use Update Manager feature of your Eclipse installation to install the latest
470revision of ADT on your development computer.<p>
471
472<p>Assuming that you have a compatible version of the Eclipse IDE installed, as
473described in <a href="#preparing">Preparing for Installation</a>, above, follow
474these steps to download the ADT plugin and install it in your Eclipse
475environment. </p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700476
477<table style="font-size:100%">
Scott Main77847a32010-11-09 16:41:32 -0800478<tr><th>Eclipse 3.5 (Galileo) and 3.6 (Helios)</th><th>Eclipse 3.4 (Ganymede)</th></tr>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700479<tr>
480<td width="45%">
Scott Main77847a32010-11-09 16:41:32 -0800481<!-- 3.5+ steps -->
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700482<ol>
Scott Main77847a32010-11-09 16:41:32 -0800483 <li>Start Eclipse, then select <strong>Help</strong> &gt; <strong>Install New
484Software...</strong>.</li>
485 <li>Click <strong>Add</strong>, in the top-right corner.</li>
486 <li>In the Add Repository dialog that appears, enter "ADT Plugin" for the <em>Name</em> and the
487following URL for the <em>Location</em>:
488 <pre>https://dl-ssl.google.com/android/eclipse/</pre>
Scott Main13244e52010-01-19 11:12:07 -0800489 <p>Note: If you have trouble acquiring the plugin, try using "http" in the Location URL,
Scott Main081127b2010-10-29 15:56:27 -0700490 instead of "https" (https is preferred for security reasons).</p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700491 <p>Click <strong>OK</strong>.</p></li>
Scott Main77847a32010-11-09 16:41:32 -0800492 <li>In the Available Software dialog, select
493the checkbox next to Developer Tools and click <strong>Next</strong>.</li>
494 <li>In the next window, you'll see a list of the tools to be downloaded. Click
495<strong>Next</strong>. </li>
496 <li>Read and accept the license agreements, then click <strong>Finish</strong>.</li>
497 <li>When the installation completes, restart Eclipse. </li>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700498</ol>
499
500</td>
Scott Main77847a32010-11-09 16:41:32 -0800501<td width="50%">
502
503<!-- 3.4 steps -->
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700504<ol>
Scott Main77847a32010-11-09 16:41:32 -0800505 <li>Start Eclipse, then select <strong>Help</strong> &gt; <strong>Software Updates...</strong>.
506In the dialog that appears, click the <strong>Available Software</strong> tab.</li>
507 <li>Click <strong>Add Site</strong>.</li>
508 <li>In the Add Site dialog that appears, enter this URL in the "Location" field:
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700509 <pre>https://dl-ssl.google.com/android/eclipse/</pre>
Scott Main13244e52010-01-19 11:12:07 -0800510 <p>Note: If you have trouble acquiring the plugin, you can try
Scott Main081127b2010-10-29 15:56:27 -0700511 using "http" in the URL, instead of "https" (https is preferred for
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700512 security reasons).</p>
513 <p>Click <strong>OK</strong>.</p>
514 </li>
Scott Main77847a32010-11-09 16:41:32 -0800515 <li>Back in the Available Software view, you should see the plugin listed by the URL,
516 with "Developer Tools" nested within it. Select the checkbox next to Developer Tools,
517 which will automatically select the nested tools. Then click
518 <strong>Install</strong></li>
519 <li>On the subsequent Install window, all of the included tools
520 should be checked. Click <strong>Next</strong>. </li>
521 <li>Read and accept the license agreements, then click <strong>Finish</strong>.</li>
522 <li>When the installation completes, restart Eclipse. </li>
Scott Main081127b2010-10-29 15:56:27 -0700523
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700524</ol>
525</td>
526</tr>
527</table>
528
Scott Main369c1c12010-12-07 11:17:00 -0800529<h3 id="configuring">Configuring the ADT Plugin</h3>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700530
Dirk Dougherty4b4af992010-09-13 11:24:06 -0700531<p>Once you've successfully downloaded ADT as described above, the next step
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700532is to modify your ADT preferences in Eclipse to point to the Android SDK directory:</p>
533
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700534<ol>
535 <li>Select <strong>Window</strong> &gt; <strong>Preferences...</strong> to open the Preferences
536 panel (Mac OS X: <strong>Eclipse</strong> &gt; <strong>Preferences</strong>).</li>
537 <li>Select <strong>Android</strong> from the left panel. </li>
Scott Main081127b2010-10-29 15:56:27 -0700538 <li>For the <em>SDK Location</em> in the main panel, click <strong>Browse...</strong> and
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700539 locate your downloaded SDK directory. </li>
540 <li>Click <strong>Apply</strong>, then <strong>OK</strong>.</li>
541</ol>
542
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700543<p>Done! If you haven't encountered any problems, then the installation is
Scott Main081127b2010-10-29 15:56:27 -0700544complete. If you're installing the Android SDK for the first time, return to <a
545href="{@docRoot}sdk/installing.html#InstallingADT">Installing the SDK</a> to complete your setup.
546</p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700547
548
549<h3 id="troubleshooting">Troubleshooting ADT Installation</h3>
550
551<p> If you are having trouble downloading the ADT plugin after following the
552steps above, here are some suggestions: </p>
553
554<ul>
555 <li>If Eclipse can not find the remote update site containing the ADT plugin,
556try changing the remote site URL to use http, rather than https. That is, set
557the Location for the remote site to:
Scott Main081127b2010-10-29 15:56:27 -0700558<pre>http://dl-ssl.google.com/android/eclipse/</pre></li>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700559<li>If you are behind a firewall (such as a corporate firewall), make sure that
Scott Main77847a32010-11-09 16:41:32 -0800560you have properly configured your proxy settings in Eclipse. In Eclipse,
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700561you can configure proxy information from the main Eclipse menu in
562<strong>Window</strong> (on Mac OS X, <strong>Eclipse</strong>) &gt;
563<strong>Preferences</strong> &gt; <strong>General</strong> &gt; <strong>Network
564Connections</strong>.</li>
565</ul>
566
567<p> If you are still unable to use Eclipse to download the ADT plugin as a
568remote update site, you can download the ADT zip file to your local machine and
569manually install it:</p>
570
571<ol>
572 <li>Download the current ADT Plugin zip file from the table below (do not unpack it).
573
574 <table class="download">
575 <tr>
576 <th>Name</th>
577 <th>Package</th>
578 <th>Size</th>
579 <th>MD5 Checksum</th>
580 </tr>
581 <tr>
582 <td>ADT {@adtZipVersion}</td>
583 <td>
584 <a href="http://dl.google.com/android/{@adtZipDownload}">{@adtZipDownload}</a>
585 </td>
586 <td>{@adtZipBytes} bytes</td>
587 <td>{@adtZipChecksum}</td>
588 </tr>
589</table>
590</li>
591
592</li>
Scott Main081127b2010-10-29 15:56:27 -0700593 <li>Follow steps 1 and 2 in the <a href="#installing">default install
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700594 instructions</a> (above).</li>
595 <li>In the Add Site dialog, click <strong>Archive</strong>.</li>
596 <li>Browse and select the downloaded zip file.</li>
Scott Main77847a32010-11-09 16:41:32 -0800597 <li>Enter a name for the local update site (e.g.,
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700598 "Android Plugin") in the "Name" field.</li>
599 <li>Click <strong>OK</strong>.
Scott Main081127b2010-10-29 15:56:27 -0700600 <li>Follow the remaining procedures as listed for
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700601 <a href="#installing">default installation</a> above,
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700602 starting from step 4.</li>
603</ol>
604
605<p>To update your plugin once you've installed using the zip file, you will have
606to follow these steps again instead of the default update instructions.</p>
607
608<h4>Other install errors</h4>
609
Scott Main081127b2010-10-29 15:56:27 -0700610<p>Note that there are features of ADT that require some optional
611Eclipse components (for example, WST). If you encounter an error when
612installing ADT, your Eclipse installion might not include these components.
613For information about how to quickly add the necessary components to your
614Eclipse installation, see the troubleshooting topic
615<a href="{@docRoot}resources/faq/troubleshooting.html#installeclipsecomponents">ADT
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700616Installation Error: "requires plug-in org.eclipse.wst.sse.ui"</a>.</p>
617
618<h4>For Linux users</h4>
Scott Main081127b2010-10-29 15:56:27 -0700619<p>If you encounter this error when installing the ADT Plugin for Eclipse:
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700620<pre>
621An error occurred during provisioning.
622Cannot connect to keystore.
623JKS</pre>
624<p>
625...then your development machine lacks a suitable Java VM. Installing Sun
626Java 6 will resolve this issue and you can then reinstall the ADT
627Plugin.</p>
628
629
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700630<h2 id="updating">Updating the ADT Plugin</h2>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700631
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700632<p>From time to time, a new revision of the ADT Plugin becomes available, with
633new features and bug fixes. Generally, when a new revision of ADT is available,
634you should update to it as soon as convenient. </p>
635
636<p>In some cases, a new revision of ADT will have a dependency on a specific
637revision of the Android SDK Tools. If such dependencies exist, you will need to
638update the SDK Tools component of the SDK after installing the new revision of
639ADT. To update the SDK Tools component, use the Android SDK and AVD Manager, as
640described in <a href="adding-components.html">Adding SDK Components</a>.</p>
641
642<p>To learn about new features of each ADT revision and also any dependencies on
643the SDK Tools, see the listings in the <a href="#notes">Revisions</a>
Scott Main081127b2010-10-29 15:56:27 -0700644section. To determine the version currently installed, open the
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700645Eclipse Installed Software window using <strong>Help</strong>
Scott Main081127b2010-10-29 15:56:27 -0700646&gt; <strong>Software Updates</strong> and refer to the version listed for
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700647"Android Development Tools".</p>
648
Scott Main081127b2010-10-29 15:56:27 -0700649<p>Follow the steps below to check whether an update is available and, if so,
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700650to install it. </p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700651
652<table style="font-size:100%">
Scott Main77847a32010-11-09 16:41:32 -0800653<tr><th>Eclipse 3.5 (Galileo) and 3.6 (Helios)</th><th>Eclipse 3.4 (Ganymede)</th></tr>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700654<tr>
Scott Main77847a32010-11-09 16:41:32 -0800655<td>
656<!-- 3.5+ steps -->
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700657<ol>
Scott Main77847a32010-11-09 16:41:32 -0800658 <li>Select <strong>Help</strong> &gt; <strong>Check for Updates</strong>.
659 <p>If there are no updates available, a dialog will say so and you're done.</p></li>
660 <li>If there are updates available, select Android DDMS, Android Development Tools,
661 and Android Hierarchy Viewer, then click <strong>Next</strong>.</li>
662 <li>In the Update Details dialog, click <strong>Next</strong>.</li>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700663 <li>Read and accept the license agreement and then click <strong>Finish</strong>.
Scott Main081127b2010-10-29 15:56:27 -0700664 This will download and install the latest version of Android DDMS and
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700665 Android Development Tools.</li>
666 <li>Restart Eclipse.</li>
667</ol>
668</td>
Scott Main77847a32010-11-09 16:41:32 -0800669
670<td width="50%">
671<!-- 3.4 steps -->
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700672<ol>
Scott Main77847a32010-11-09 16:41:32 -0800673 <li>Select <strong>Help</strong> &gt; <strong>Software Updates</strong>.</li>
674 <li>Select the <strong>Available Software</strong> tab.</li>
675 <li>If there are updates available, select Android DDMS, Android Development Tools,
676 and Android Hierarchy Viewer, then click <strong>Update</strong>.</li>
677 <li>In the resulting Available Updates dialog, ensure that each of the listed tools
678 are selected, then click <strong>Next</strong>.</li>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700679 <li>Read and accept the license agreement and then click <strong>Finish</strong>.
Scott Main081127b2010-10-29 15:56:27 -0700680 This will download and install the latest version of Android DDMS and
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700681 Android Development Tools.</li>
682 <li>Restart Eclipse.</li>
683</ol>
684</td>
685</tr>
686</table>
687
688
Scott Main090a3dc2010-12-07 10:38:55 -0800689<p>If you encounter problems during the update, remove the existing ADT plugin from Eclipse, then
690perform a fresh installation, using the instructions for <a href="#installing">Installing the ADT
691Plugin</a>.</p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700692