blob: d0fa7277224b97ad1328d6c10e2880b3e7d3f22d [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 Main60c4e032011-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
Robert Lyc74a69a82011-01-04 22:48:02 -0800228href="{@docRoot}guide/developing/projects/index.html#libraryMigrating">Migrating
Dirk Dougherty022171b2010-07-30 19:24:17 -0700229library 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
Robert Lyc74a69a82011-01-04 22:48:02 -0800266href="{@docRoot}guide/developing/projects/index.html#LibraryProjects">Creating and Managing Projects</a> document. </p>
Scott Main081127b2010-10-29 15:56:27 -0700267<p>If you are not developing in Eclipse, <a
268href="tools-notes.html">SDK Tools r6</a> provides the equivalent library
Dirk Dougherty0d1b0812010-04-07 17:05:16 -0700269project support through the Ant build system.</p>
270</dd>
271</dl>
272 </div>
273</div>
274
Dirk Dougherty022171b2010-07-30 19:24:17 -0700275
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700276<div class="toggleable closed">
277 <a href="#" onclick="return toggleDiv(this)">
278 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
279ADT 0.9.6</a> <em>(March 2010)</em>
280 <div class="toggleme">
281
282<dl>
283<dt>Dependencies:</dt>
284
Scott Main081127b2010-10-29 15:56:27 -0700285<dd><p>ADT 0.9.6 is designed for use with SDK Tools r5 and later. Before
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700286updating to ADT 0.9.6, we highly recommend that you use the Android SDK and
287AVD Manager to install SDK Tools r5 into your SDK.</p></dd>
288
289<dt>General Notes:</dt>
290<dd>
291<ul>
292<li>Editing <code>default.properties</code> outside of Eclipse will now
293automatically update the project.</li>
294<li>Loads the SDK content only when a project requires it. This will make
295Eclipse use less resources when the SDK contains many versions of Android.</li>
296<li>Resolves potential deadlock between modal dialogs, when launching ADT the
297first time with the SDK Usage panel.</li>
298<li>Fixes issues with the New Project Wizard when selecting samples.</li>
299</ul>
300</dd>
301<dt>AVD/SDK Manager:</dt>
302<dd>
303<ul>
304<li>Adds support for platform samples components.</li>
305<li>Improves support for dependency between components.</li>
306<li>AVDs now sorted by API level.</li>
307<li>The AVD creation dialog now enforces a minimum SD card size of 9MB.</li>
308<li>Prevents deletion of running AVDs.</li>
309</ul>
310</dd>
311<dt>DDMS:</dt>
312<dd>
313<ul>
314<li>DDMS plug-in now contains the Allocation Tracker view.</li>
315<li>New action in the Logcat view: "Go to problem" lets you go directly from an
316exception trace output to the code.</li>
317</ul>
318</dd>
319<dt>Editors:</dt>
320<dd>
321<ul>
322<li>Explode mode in the Visual Layout Editor adds a margin to all layout objects
323so that it's easier to see embedded or empty layouts.</li>
324<li>Outline mode in the Visual Layout Editor draws layout outline to make it
325easier to see layout objects.</li>
326<li>Several fixes in the configuration selector of the Visual Layout
327Editor.</li>
328</ul>
329</dd>
330<dt>Application launching:</dt>
331<dd>
332<ul>
333<li>Applications launched from ADT now behave as if they were clicked from the
334Home screen.</li>
335<li>Fixes issue where add-on with no optional library would not show up as valid
336targets for application launches.</li>
337<li>Resolves possible crash when launching applications.</li>
338</ul>
339</dd>
340</dl>
341 </div>
342</div>
343
344<div class="toggleable closed">
345 <a href="#" onclick="return toggleDiv(this)">
346 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
347ADT 0.9.5</a> <em>(December 2009)</em>
348 <div class="toggleme">
349<dl>
350<dt>Dependencies:</dt>
351
352<dd><p>ADT 0.9.5 requires features provided in SDK Tools r4 or higher. If you install
353ADT 0.9.5, which is highly recommended, you should use the Android SDK and AVD
Scott Main92b03082010-12-14 17:55:27 -0800354Manager to download the latest SDK Tools into your SDK. For more information,
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700355see <a href="{@docRoot}sdk/adding-components.html">Adding SDK Components</a>.</p>
356</dd>
357
358<dt>General Notes:</dt>
359<dd>
360<ul>
361<li>AVD Launch dialog now shows scale value.</li>
362<li>Fixes potential NPE in SDK Manager on AVD launch, for older AVD with no skin name specified.</li>
363<li>Fixes XML validation issue in on older Java versions.</li>
364<li>.apk packaging now properly ignores vi swap files as well as hidden files.</li>
365</ul>
366</dd>
367</dl>
368 </div>
369</div>
370
371<div class="toggleable closed">
372 <a href="#" onclick="return toggleDiv(this)">
373 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
374ADT 0.9.4</a> <em>(October 2009)</em>
375 <div class="toggleme">
376<dl>
377<dt>Dependencies:</dt>
378
379<dd><p>ADT 0.9.4 requires features provided in SDK Tools r3 or higher. If you install
380ADT 0.9.4, which is highly recommended, you should use the Android SDK and AVD
381Manager to download the latest SDK Tools into your SDK. For more information,
382see <a href="{@docRoot}sdk/adding-components.html">Adding SDK Components</a>.</p>
383</dd>
384
385<dt>Project Creation Wizard:</dt>
386<dd>
387<ul>
388<li>New option to create a project from a sample by choosing it from a list.</li>
389</ul>
390</dd>
391
392<dt>Layout Editor:</dt>
393<dd>
394<ul>
395<li>Improved Configuration selector that lets you see how your layout will
396render on different devices. Default device descriptions include ADP1
397and Google Ion, while SDK add-ons can also provide new descriptions.
398A new UI allows you to create custom descriptions.</li>
399<li>Adds a new clipping toggle, to let you see your full layout even if it's
400bigger than the screen.</li>
401</ul>
402</dd>
403
404<dt>DDMS Integration:</dt>
405<dd>
406<ul>
407<li>Includes the improvements from the standlone DDMS, revision 3.</li>
408<li>Adds an option to open HPROF files into eclipse instead of writing them on
Scott Main081127b2010-10-29 15:56:27 -0700409disk. If a profiler such as MAT (<a href="http://eclipse.org/mat">Memory Analyzer
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700410Tool</a>) is installed, it'll open the file.</li>
411</ul>
412</dd>
413
414<dt>Android SDK and AVD Manager integration:</dt>
415<dd>
416<ul>
Scott Main081127b2010-10-29 15:56:27 -0700417<li>Includes the improvements from the standalone Android SDK and AVD Manager,
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700418revision 3.</li>
419</ul>
420</dd>
421</dl>
422 </div>
423</div>
424
Scott Main77847a32010-11-09 16:41:32 -0800425
426
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700427<h2 id="installing">Installing the ADT Plugin</h2>
428
429<p>The sections below provide instructions on how to download and install
430ADT into your Eclipse environment. If you encounter problems, see the <a
431href="#troubleshooting">Troubleshooting</a> section.</p>
432
Scott Main77847a32010-11-09 16:41:32 -0800433
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700434<h3 id="preparing">Preparing Your Development Computer</h3>
435
436<p>ADT is a plugin for the Eclipse IDE. Before you can install or use ADT,
437you must have a compatible version of Eclipse installed on your development
438computer. </p>
439
440<ul>
441<li>If Eclipse is already installed on your computer, make sure that it is
442a version that is compatible with ADT and the Android SDK. Check the <a
443href="requirements.html">System Requirements</a> document for
444a list of Eclipse versions that are compatible with the Android SDK.</li>
445<li>If you need to install or update Eclipse, you can download it from this
446location:
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700447
Dirk Dougherty22558d02009-12-10 16:25:06 -0800448<p style="margin-left:2em;"><a href=
449"http://www.eclipse.org/downloads/">http://www.eclipse.org/downloads/</a>
450</p>
451
Scott Main77847a32010-11-09 16:41:32 -0800452<p>For Eclipse 3.5 or newer, the "Eclipse Classic" version is recommended. Otherwise, a Java or RCP
453version of Eclipse is recommended.</p></li>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700454</ul>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700455
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700456<p>Additionally, before you can configure or use ADT, you must install the
457Android SDK starter package, as described in <a
Robert Lyef13d022010-07-12 14:32:22 -0700458href="installing.html#Installing">Downloading the SDK Starter Package</a>.
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700459Specifically, you need to install a compatible version of the Android SDK Tools
460and at least one development platform. To simplify ADT setup, we recommend
461installing the Android SDK prior to installing ADT. </p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700462
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700463<p>When your Eclipse and Android SDK environments are ready, continue with the
464ADT installation as described in the steps below. </p>
465
466<h3 id="downloading">Downloading the ADT Plugin</h3>
467
468<p>Use Update Manager feature of your Eclipse installation to install the latest
469revision of ADT on your development computer.<p>
470
471<p>Assuming that you have a compatible version of the Eclipse IDE installed, as
472described in <a href="#preparing">Preparing for Installation</a>, above, follow
473these steps to download the ADT plugin and install it in your Eclipse
474environment. </p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700475
476<table style="font-size:100%">
Scott Main77847a32010-11-09 16:41:32 -0800477<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 -0700478<tr>
479<td width="45%">
Scott Main77847a32010-11-09 16:41:32 -0800480<!-- 3.5+ steps -->
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700481<ol>
Scott Main77847a32010-11-09 16:41:32 -0800482 <li>Start Eclipse, then select <strong>Help</strong> &gt; <strong>Install New
483Software...</strong>.</li>
484 <li>Click <strong>Add</strong>, in the top-right corner.</li>
485 <li>In the Add Repository dialog that appears, enter "ADT Plugin" for the <em>Name</em> and the
486following URL for the <em>Location</em>:
487 <pre>https://dl-ssl.google.com/android/eclipse/</pre>
Scott Main13244e52010-01-19 11:12:07 -0800488 <p>Note: If you have trouble acquiring the plugin, try using "http" in the Location URL,
Scott Main081127b2010-10-29 15:56:27 -0700489 instead of "https" (https is preferred for security reasons).</p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700490 <p>Click <strong>OK</strong>.</p></li>
Scott Main77847a32010-11-09 16:41:32 -0800491 <li>In the Available Software dialog, select
492the checkbox next to Developer Tools and click <strong>Next</strong>.</li>
493 <li>In the next window, you'll see a list of the tools to be downloaded. Click
494<strong>Next</strong>. </li>
495 <li>Read and accept the license agreements, then click <strong>Finish</strong>.</li>
496 <li>When the installation completes, restart Eclipse. </li>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700497</ol>
498
499</td>
Scott Main77847a32010-11-09 16:41:32 -0800500<td width="50%">
501
502<!-- 3.4 steps -->
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700503<ol>
Scott Main77847a32010-11-09 16:41:32 -0800504 <li>Start Eclipse, then select <strong>Help</strong> &gt; <strong>Software Updates...</strong>.
505In the dialog that appears, click the <strong>Available Software</strong> tab.</li>
506 <li>Click <strong>Add Site</strong>.</li>
507 <li>In the Add Site dialog that appears, enter this URL in the "Location" field:
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700508 <pre>https://dl-ssl.google.com/android/eclipse/</pre>
Scott Main13244e52010-01-19 11:12:07 -0800509 <p>Note: If you have trouble acquiring the plugin, you can try
Scott Main081127b2010-10-29 15:56:27 -0700510 using "http" in the URL, instead of "https" (https is preferred for
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700511 security reasons).</p>
512 <p>Click <strong>OK</strong>.</p>
513 </li>
Scott Main77847a32010-11-09 16:41:32 -0800514 <li>Back in the Available Software view, you should see the plugin listed by the URL,
515 with "Developer Tools" nested within it. Select the checkbox next to Developer Tools,
516 which will automatically select the nested tools. Then click
517 <strong>Install</strong></li>
518 <li>On the subsequent Install window, all of the included tools
519 should be checked. Click <strong>Next</strong>. </li>
520 <li>Read and accept the license agreements, then click <strong>Finish</strong>.</li>
521 <li>When the installation completes, restart Eclipse. </li>
Scott Main081127b2010-10-29 15:56:27 -0700522
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700523</ol>
524</td>
525</tr>
526</table>
527
Scott Main369c1c12010-12-07 11:17:00 -0800528<h3 id="configuring">Configuring the ADT Plugin</h3>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700529
Dirk Dougherty4b4af992010-09-13 11:24:06 -0700530<p>Once you've successfully downloaded ADT as described above, the next step
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700531is to modify your ADT preferences in Eclipse to point to the Android SDK directory:</p>
532
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700533<ol>
534 <li>Select <strong>Window</strong> &gt; <strong>Preferences...</strong> to open the Preferences
535 panel (Mac OS X: <strong>Eclipse</strong> &gt; <strong>Preferences</strong>).</li>
536 <li>Select <strong>Android</strong> from the left panel. </li>
Scott Main081127b2010-10-29 15:56:27 -0700537 <li>For the <em>SDK Location</em> in the main panel, click <strong>Browse...</strong> and
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700538 locate your downloaded SDK directory. </li>
539 <li>Click <strong>Apply</strong>, then <strong>OK</strong>.</li>
540</ol>
541
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700542<p>Done! If you haven't encountered any problems, then the installation is
Scott Main081127b2010-10-29 15:56:27 -0700543complete. If you're installing the Android SDK for the first time, return to <a
544href="{@docRoot}sdk/installing.html#InstallingADT">Installing the SDK</a> to complete your setup.
545</p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700546
547
548<h3 id="troubleshooting">Troubleshooting ADT Installation</h3>
549
550<p> If you are having trouble downloading the ADT plugin after following the
551steps above, here are some suggestions: </p>
552
553<ul>
554 <li>If Eclipse can not find the remote update site containing the ADT plugin,
555try changing the remote site URL to use http, rather than https. That is, set
556the Location for the remote site to:
Scott Main081127b2010-10-29 15:56:27 -0700557<pre>http://dl-ssl.google.com/android/eclipse/</pre></li>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700558<li>If you are behind a firewall (such as a corporate firewall), make sure that
Scott Main77847a32010-11-09 16:41:32 -0800559you have properly configured your proxy settings in Eclipse. In Eclipse,
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700560you can configure proxy information from the main Eclipse menu in
561<strong>Window</strong> (on Mac OS X, <strong>Eclipse</strong>) &gt;
562<strong>Preferences</strong> &gt; <strong>General</strong> &gt; <strong>Network
563Connections</strong>.</li>
564</ul>
565
566<p> If you are still unable to use Eclipse to download the ADT plugin as a
567remote update site, you can download the ADT zip file to your local machine and
568manually install it:</p>
569
570<ol>
571 <li>Download the current ADT Plugin zip file from the table below (do not unpack it).
572
573 <table class="download">
574 <tr>
575 <th>Name</th>
576 <th>Package</th>
577 <th>Size</th>
578 <th>MD5 Checksum</th>
579 </tr>
580 <tr>
581 <td>ADT {@adtZipVersion}</td>
582 <td>
583 <a href="http://dl.google.com/android/{@adtZipDownload}">{@adtZipDownload}</a>
584 </td>
585 <td>{@adtZipBytes} bytes</td>
586 <td>{@adtZipChecksum}</td>
587 </tr>
588</table>
589</li>
590
591</li>
Scott Main081127b2010-10-29 15:56:27 -0700592 <li>Follow steps 1 and 2 in the <a href="#installing">default install
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700593 instructions</a> (above).</li>
594 <li>In the Add Site dialog, click <strong>Archive</strong>.</li>
595 <li>Browse and select the downloaded zip file.</li>
Scott Main77847a32010-11-09 16:41:32 -0800596 <li>Enter a name for the local update site (e.g.,
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700597 "Android Plugin") in the "Name" field.</li>
598 <li>Click <strong>OK</strong>.
Scott Main081127b2010-10-29 15:56:27 -0700599 <li>Follow the remaining procedures as listed for
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700600 <a href="#installing">default installation</a> above,
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700601 starting from step 4.</li>
602</ol>
603
604<p>To update your plugin once you've installed using the zip file, you will have
605to follow these steps again instead of the default update instructions.</p>
606
607<h4>Other install errors</h4>
608
Scott Main081127b2010-10-29 15:56:27 -0700609<p>Note that there are features of ADT that require some optional
610Eclipse components (for example, WST). If you encounter an error when
611installing ADT, your Eclipse installion might not include these components.
612For information about how to quickly add the necessary components to your
613Eclipse installation, see the troubleshooting topic
614<a href="{@docRoot}resources/faq/troubleshooting.html#installeclipsecomponents">ADT
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700615Installation Error: "requires plug-in org.eclipse.wst.sse.ui"</a>.</p>
616
617<h4>For Linux users</h4>
Scott Main081127b2010-10-29 15:56:27 -0700618<p>If you encounter this error when installing the ADT Plugin for Eclipse:
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700619<pre>
620An error occurred during provisioning.
621Cannot connect to keystore.
622JKS</pre>
623<p>
624...then your development machine lacks a suitable Java VM. Installing Sun
625Java 6 will resolve this issue and you can then reinstall the ADT
626Plugin.</p>
627
628
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700629<h2 id="updating">Updating the ADT Plugin</h2>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700630
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700631<p>From time to time, a new revision of the ADT Plugin becomes available, with
632new features and bug fixes. Generally, when a new revision of ADT is available,
633you should update to it as soon as convenient. </p>
634
635<p>In some cases, a new revision of ADT will have a dependency on a specific
636revision of the Android SDK Tools. If such dependencies exist, you will need to
637update the SDK Tools component of the SDK after installing the new revision of
638ADT. To update the SDK Tools component, use the Android SDK and AVD Manager, as
639described in <a href="adding-components.html">Adding SDK Components</a>.</p>
640
641<p>To learn about new features of each ADT revision and also any dependencies on
642the SDK Tools, see the listings in the <a href="#notes">Revisions</a>
Scott Main081127b2010-10-29 15:56:27 -0700643section. To determine the version currently installed, open the
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700644Eclipse Installed Software window using <strong>Help</strong>
Scott Main081127b2010-10-29 15:56:27 -0700645&gt; <strong>Software Updates</strong> and refer to the version listed for
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700646"Android Development Tools".</p>
647
Scott Main081127b2010-10-29 15:56:27 -0700648<p>Follow the steps below to check whether an update is available and, if so,
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700649to install it. </p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700650
651<table style="font-size:100%">
Scott Main77847a32010-11-09 16:41:32 -0800652<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 -0700653<tr>
Scott Main77847a32010-11-09 16:41:32 -0800654<td>
655<!-- 3.5+ steps -->
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700656<ol>
Scott Main77847a32010-11-09 16:41:32 -0800657 <li>Select <strong>Help</strong> &gt; <strong>Check for Updates</strong>.
658 <p>If there are no updates available, a dialog will say so and you're done.</p></li>
659 <li>If there are updates available, select Android DDMS, Android Development Tools,
660 and Android Hierarchy Viewer, then click <strong>Next</strong>.</li>
661 <li>In the Update Details dialog, click <strong>Next</strong>.</li>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700662 <li>Read and accept the license agreement and then click <strong>Finish</strong>.
Scott Main081127b2010-10-29 15:56:27 -0700663 This will download and install the latest version of Android DDMS and
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700664 Android Development Tools.</li>
665 <li>Restart Eclipse.</li>
666</ol>
667</td>
Scott Main77847a32010-11-09 16:41:32 -0800668
669<td width="50%">
670<!-- 3.4 steps -->
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700671<ol>
Scott Main77847a32010-11-09 16:41:32 -0800672 <li>Select <strong>Help</strong> &gt; <strong>Software Updates</strong>.</li>
673 <li>Select the <strong>Available Software</strong> tab.</li>
674 <li>If there are updates available, select Android DDMS, Android Development Tools,
675 and Android Hierarchy Viewer, then click <strong>Update</strong>.</li>
676 <li>In the resulting Available Updates dialog, ensure that each of the listed tools
677 are selected, then click <strong>Next</strong>.</li>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700678 <li>Read and accept the license agreement and then click <strong>Finish</strong>.
Scott Main081127b2010-10-29 15:56:27 -0700679 This will download and install the latest version of Android DDMS and
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700680 Android Development Tools.</li>
681 <li>Restart Eclipse.</li>
682</ol>
683</td>
684</tr>
685</table>
686
687
Scott Main090a3dc2010-12-07 10:38:55 -0800688<p>If you encounter problems during the update, remove the existing ADT plugin from Eclipse, then
689perform a fresh installation, using the instructions for <a href="#installing">Installing the ADT
690Plugin</a>.</p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700691