blob: 6a99d3582fc94886e7bed75ea5ac277c066b5d49 [file] [log] [blame]
Dirk Dougherty7b229ef2010-03-26 17:32:26 -07001page.title=ADT Plugin for Eclipse
Robert Ly6c81c302011-10-05 12:59:29 -07002adt.zip.version=14.0.0
3adt.zip.download=ADT-14.0.0.zip
Robert Ly7bbbd392011-10-17 15:46:56 -07004adt.zip.bytes=6747816
5adt.zip.checksum=3883973cd229dc4336911117af949509
Dirk Doughertyee58d1b2009-10-16 15:25:15 -07006
7@jd:body
8
9<div id="qv-wrapper">
10<div id="qv">
11
12 <h2>In this document</h2>
13 <ol>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070014 <li><a href="#notes">Revisions</a></li>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070015 <li><a href="#installing">Installing the ADT Plugin</a>
16 <ol>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070017 <li><a href="#preparing">Preparing for Installation</a></li>
18 <li><a href="#downloading">Downloading the ADT Plugin</a>
19 <li><a href="#configuring">Configuring the ADT Plugin</a></li>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070020 <li><a href="#troubleshooting">Troubleshooting</a></li>
21 </ol>
22 </li>
23 <li><a href="#updating">Updating the ADT Plugin</a></li>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070024 </ol>
Robert Ly6c81c302011-10-05 12:59:29 -070025
Scott Main22d39262011-08-25 11:38:50 -070026 <h2>See also</h2>
27 <ol>
28 <li><a href="{@docRoot}guide/developing/tools/adt.html">Android Developer Tools</a></li>
29 </ol>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070030
31</div>
32</div>
33
Scott Main081127b2010-10-29 15:56:27 -070034<p>Android Development Tools (ADT) is a plugin for the Eclipse IDE
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070035that is designed to give you a powerful, integrated environment in which
Robert Lyccea5d22011-02-11 14:59:36 -080036to build Android applications.</p>
Dirk Doughertybf15ce62009-10-23 19:17:12 -070037
Scott Main13244e52010-01-19 11:12:07 -080038<p>ADT extends the capabilities of Eclipse to let you quickly set up new Android
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070039projects, create an application UI, add components based on the Android
Dirk Doughertybf15ce62009-10-23 19:17:12 -070040Framework API, debug your applications using the Android SDK tools, and even
Scott Main7b013bb2011-03-14 14:17:31 -070041export signed (or unsigned) {@code .apk} files in order to distribute your application.</p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070042
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070043<p>Developing in Eclipse with ADT is highly recommended and is the fastest way
44to get started. With the guided project setup it provides, as well as tools
45integration, custom XML editors, and debug ouput pane, ADT gives you an
46incredible boost in developing Android applications. </p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070047
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070048<p>This document provides step-by-step instructions on how to download the ADT
49plugin and install it into your Eclipse development environment. Note that
50before you can install or use ADT, you must have compatible versions of both the
51Eclipse IDE and the Android SDK installed. For details, make sure to read <a
52href="#installing">Installing the ADT Plugin</a>, below. </p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070053
Scott Main081127b2010-10-29 15:56:27 -070054<p>If you are already using ADT, this document also provides instructions on
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070055how to update ADT to the latest version or how to uninstall it, if necessary.
56</p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070057
Scott Main22d39262011-08-25 11:38:50 -070058<p>For information about the features provided by the ADT plugin, such as code
59editor features, SDK tool integration, and the graphical layout editor (for drag-and-drop layout
60editing), see the <a href="{@docRoot}guide/developing/tools/adt.html">Android Developer Tools</a>
61document.</p>
62
63
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070064<h2 id="notes">Revisions</h2>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070065
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070066<p>The sections below provide notes about successive releases of
67the ADT Plugin, as denoted by revision number. </p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070068
Scott Maine09743272011-10-14 11:25:46 -070069<p>For a summary of all known issues in ADT, see <a
Scott Mainb321cd92011-10-20 12:57:43 -070070href="http://tools.android.com/knownissues">http://tools.android.com/knownissues</a>.</p>
Scott Maine09743272011-10-14 11:25:46 -070071
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070072<script type="text/javascript">
73function toggleDiv(link) {
74 var toggleable = $(link).parent();
75 if (toggleable.hasClass("closed")) {
76 //$(".toggleme", toggleable).slideDown("fast");
77 toggleable.removeClass("closed");
78 toggleable.addClass("open");
79 $(".toggle-img", toggleable).attr("title", "hide").attr("src", (toRoot + "assets/images/triangle-opened.png"));
80 } else {
81 //$(".toggleme", toggleable).slideUp("fast");
82 toggleable.removeClass("open");
83 toggleable.addClass("closed");
84 $(".toggle-img", toggleable).attr("title", "show").attr("src", (toRoot + "assets/images/triangle-closed.png"));
85 }
86 return false;
87}
88</script>
89<style>
90.toggleable {
91padding: .25em 1em;
92}
93.toggleme {
94 padding: 1em 1em 0 2em;
95 line-height:1em;
96}
97.toggleable a {
98 text-decoration:none;
99}
Dirk Dougherty0d1b0812010-04-07 17:05:16 -0700100.toggleme a {
101 text-decoration:underline;
102}
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700103.toggleable.closed .toggleme {
104 display:none;
105}
106#jd-content .toggle-img {
107 margin:0;
108}
109</style>
110
Dirk Dougherty022171b2010-07-30 19:24:17 -0700111
Dirk Dougherty0d1b0812010-04-07 17:05:16 -0700112<div class="toggleable opened">
113 <a href="#" onclick="return toggleDiv(this)">
Scott Main92b03082010-12-14 17:55:27 -0800114 <img src="{@docRoot}assets/images/triangle-opened.png" class="toggle-img" height="9px"
115width="9px" />
Robert Ly6c81c302011-10-05 12:59:29 -0700116ADT 14.0.0</a> <em>(October 2011)</em>
117 <div class="toggleme">
118<dl>
119
120<dt>Dependencies:</dt>
121
122<dd>ADT 14.0.0 is designed for use with <a href="{@docRoot}sdk/tools-notes.html">SDK Tools r14</a>.
123If you haven't already installed SDK Tools r14 into your SDK, use the Android SDK and AVD Manager to
124do so.</dd>
125
126<dt>Build system</dt>
127<dd>
128 <ul>
129 <li>Changed <code>default.properties</code> to <code>project.properties</code> and
130 <code>build.properties</code> to <code>ant.properties</code>. ADT automatically
131 renames these files, if necessary, when you open a project in Eclipse.</li>
132 <li>Changed how library projects are built in Eclipse.</a></li>
133 <li>Changed output of <code>javac</code> from <code>bin/</code> to <code>bin/classes</code>
134 in Eclipse.</li>
135 <li>Improved incremental builds so that resource compilation runs less frequently. Builds no
136 longer run when you edit strings or layouts (unless you add a new <code>id</code>) and no longer
137 run once for each library project.</li>
138 <li>Introduced a "PNG crunch cache" that only runs on modified PNG files, instead of
139 crunching all existing PNG files, all the time.</li>
140 <li>Modified resource compilation so it no longer happens for normal save operations. It only
141 happens when running or debugging (the build option that lets you disable the packaging
142 step, which was introduced in ADT 12, is now on by default.)</li>
143 </ul>
144<p>For a complete overview of the build system changes and what you need to do to support them,
145see the <a href="http://tools.android.com/recent/buildchangesinrevision14">Android Tools Project
146site</a>.</p>
147</dd>
148
149<dt>General improvements</dt>
150<dd>
151 <ul>
152
153
154<li>Added a Welcome Wizard to help with the initial setup of the Android
155development environment (<a href="http://tools.android.com/recent/welcomewizard">more
156info</a>).</li>
157<li>Integrated the Android Asset Studio, which helps you create icons for things
158like the launcher, menus, and tabs. (<a
159href="http://tools.android.com/recent/assetstudiointegration">more
160info</a>).</li>
161<li>Revamped the Logcat view and added support to display and filter logs by
162 application names as well as PIDs (<a
163 href="http://tools.android.com/recent/updatedlogcatviewer">more info</a>).</li>
164<li>Revamped the SDK Manager UI (<a href="http://tools.android.com/recent/newsdkmanager">more
165info</a>).</li>
166<li>Revamped the New Project and the New XML File wizards to have
167multiple pages. Sample projects are now copied into the workspace such that they can be modified
168and deleted without affecting the master copy
169(<a href="http://tools.android.com/recent/revampedwizards">more info</a>).</li>
170<li>Removed the dependency on Eclipse GEF.</li>
171</ul>
172</dd>
173
174<dt>XML and Java editors</dt>
175<dd>
176 <ul>
177 <li>Added a new XML formatter that formats all XML files according to the
178 standard Android coding style. The formatter can also reorder
179 attributes to follow a recommended order and processes any changes made in the Layout editor.
180(<a href="http://tools.android.com/recent/xmlformatter">more info</a>).</li>
181 <li>Added the "Go to Matching" (Ctrl-Shift-P) feature, which lets you jump
182between opening and closing tags in XML files.</li>
183 <li>Added support for the "Select Enclosing Element" feature on Mac.</li>
184 <li>Added a Quickfix for extracting Strings when the caret is inside a String (<a href="">see
185more</a>).</li>
186 <li>Improved "smart indent", which allows automatic indentation and un-indentation
187 when pressing the Return key in XML editors (<a
188href="http://tools.android.com/recent/xmleditingimprovements">more info</a>).</li>
189
190 </ul>
191</dd>
192
193<dt>Layout editor</dt>
194<dd>
195 <ul>
196 <li>Added tooltip feedback for dragging and resizing operations. For
197 example, when dragging in a relative layout, the proposed
198 constraints are shown. When resizing, the new dimensions are
199 shown (<a href="http://tools.android.com/recent/layouteditorfeedbacktooltips">more
200info</a>).</li>
201 <li>Added the ability to suppress rendering fidelity warnings (<a
202href="http://tools.android.com/recent/suppressrenderwarnings">more info</a>).</li>
203 <li>Added "Remove Container" visual refactoring that removes the
204 children of a container up to the top level and transfers
205 namespace and layout attributes if necessary (<a
206href="http://tools.android.com/recent/removecontainervisualrefactoring">more info</a>).</li>
207 <li>Added pull-right menus to the context menu for accessing
208 properties of the parents, which is useful when the children fully
209 cover the parent and make it hard to select on their own.</li>
210 <li>Improved access to properties in the context menu. The most
211 frequently set attributes for each view are listed at the top of
212 the menu. The Properties menu offers access to the most
213 recently set attributes, attributes organized by their defining
214 view, and layout attributes only or all attributes alphabetically (<a
215href="http://tools.android.com/recent/layouteditorcontextmenuimprovements">more info</a>).</li>
216 </ul>
217</dd>
218
219<dt>Bug fixes</dt>
220<dd>Fixed many bugs and added <a
221href="http://tools.android.com/recent/miscellaneousrecentfixes">minor improvements</a>, in
222particular some <a href="http://tools.android.com/recent/linuxfixes">critical bug fixes on
223Linux</a>.</dd>
224
225</div>
226</div>
227
228
229
230<div class="toggleable closed">
231 <a href="#" onclick="return toggleDiv(this)">
232 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px"
233width="9px" />
Robert Ly31ee77e2011-07-06 11:16:19 -0700234ADT 12.0.0</a> <em>(July 2011)</em>
Robert Ly205d1c32011-06-28 13:13:14 -0700235 <div class="toggleme">
236<dl>
237
238<dt>Dependencies:</dt>
239
240<dd>ADT 12.0.0 is designed for use with <a href="{@docRoot}sdk/tools-notes.html">SDK Tools r12</a>. If you haven't
241already installed SDK Tools r12 into your SDK, use
242the Android SDK and AVD Manager to do so.</dd>
243
244<dt>Visual Layout Editor:</dt>
245<dd>
246<ul>
247 <li>New RelativeLayout drop support with guideline suggestions for
248 attachments and cycle prevention
249 (<a href="http://tools.android.com/recent/revampedrelativelayoutsupport">more info</a>).</li>
250 <li>Resize support in most layouts along with
251 guideline snapping to the sizes dictated by <code>wrap_content</code> and <code>match_parent</code>.
252 In LinearLayout, sizes are mapped to weights instead of pixel widths.
253 (<a href="http://tools.android.com/recent/resizesupport">more info</a>).</li>
254 <li>Previews of drawables and colors in the resource chooser dialogs
255 (<a href="http://tools.android.com/recent/imageandcolorpreviews">more info</a>).</li>
256 <li>Improved error messages and links for rendering errors including
257 detection of misspelled class names
258 (<a href="http://tools.android.com/recent/improvedrenderingerrordiagnostics">more info</a>).</li>
259</ul>
260</dd>
261
262<dt>Build system</dt>
263<dd>
264<ul>
Robert Ly6c81c302011-10-05 12:59:29 -0700265 <li id="build-option">A new option lets you disable the packaging step in the automatic
Robert Ly205d1c32011-06-28 13:13:14 -0700266 builders. This improves performance when saving files by not
267 performing a full build, which can take a long time for large projects.
268 If the option is enabled, the APK is packaged when the
269 application is deployed to a device or emulator or when the
270 release APK is exported (<a href="http://tools.android.com/recent/finercontroloveradtbuildprocess">more info</a>).</li>
271</ul>
272</dd>
273
274<dt>Bug fixes</dt>
275<dd>Many bug fixes are part of this release
276(<a href="http://tools.android.com/recent/adt12bugfixroundup">more info</a>).</dd>
277
278</div>
279</div>
280
281
282<div class="toggleable closed">
283 <a href="#" onclick="return toggleDiv(this)">
284 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px"
285width="9px" />
Scott Main25d0b9f2011-05-26 14:12:54 -0700286ADT 11.0.0</a> <em>(June 2011)</em>
Robert Ly205d1c32011-06-28 13:13:14 -0700287 <div class="toggleme">
Scott Main25d0b9f2011-05-26 14:12:54 -0700288
289<dl>
290
291<dt>Dependencies:</dt>
292
293<dd>ADT 11.0.0 is designed for use with SDK Tools r11. If you haven't
294already installed SDK Tools r11 into your SDK, use the Android SDK and AVD Manager to do
295so.</dd>
296
297<dt>Visual Refactoring:</dt>
298<dd>
299 <ul>
300 <li>"Extract Style" feature pulls out style-related attributes from your layout and extracts
301them as a new style defined in {@code styles.xml} (<a
302href="http://tools.android.com/recent/extractstylerefactoring">more info</a>).</li>
303 <li>"Wrap in Container" feature lets you select a group of views then surround them
304 in a new layout (a new view group, such as a LinearLayout), and transfers namespace and layout
305 parameters to the new parent (<a
306href="http://tools.android.com/recent/newrefactoringswrapinchangelayoutchangewidget">more
307info</a>).</li>
308 <li>"Change Layout" feature changes layouts from one type
309 to another, and can also flatten a layout hierarchy (<a
310href="http://tools.android.com/recent/newrefactoringswrapinchangelayoutchangewidget">more
311info</a>).</li>
312 <li>"Change Widget Type" feature changes the type of the
313 selected views to a new type. Also, a new selection context menu
314 in the visual layout editor makes it easy to select siblings as
315 well as views anywhere in the layout that have the same type (<a
316href="http://tools.android.com/recent/newrefactoringswrapinchangelayoutchangewidget">more
317info</a>).</li>
318 <li>"Extract as Include" feature finds identical collections of views
319 in other layouts and offers to combine them into a single layout that you can then include in
320 each layout (<a
321href="http://tools.android.com/recent/extractasincludeimprovements">more info</a>).</li>
322 <li>Quick Assistant in Eclipse can be invoked
323 from the XML editor (with Ctrl-1) to apply any of the above
324 refactorings (and Extract String) to the current selection (<a
325href="http://tools.android.com/recent/refactoringquickassistant">more info</a>).</li>
326 </ul>
327</dd>
328
329<dt>Visual Layout Editor:</dt>
330<dd>
331 <ul>
332 <li>This is the update to the layout editor you've been waiting for! It includes (almost) all
333the goodies demonstrated at Google I/O. <a href="http://www.youtube.com/watch?v=Oq05KqjXTvs">Watch
334the video</a> on YouTube.</li>
335 <li>The palette now supports different configurations for supported widgets. That is, a single
336view is presented in various different configurations that you can drag into your layout. For
337example, there is a <em>Text Fields</em> palette category where you can drag an {@link
338android.widget.EditText} widget in as a password field, an e-mail field, a phone field, or other
339types of text boxes. Similarly, {@link android.widget.TextView} widgets are preconfigured
340with large, normal and small theme sizes, and {@link android.widget.LinearLayout} elements are
341preconfigured in horizontal and vertical configurations (<a
342href="http://tools.android.com/recent/multipletextfieldandlayouttypes">more info</a>).</li>
343 <li>The palette supports custom views. You can pick up any custom
344 implementations of the View class you've created in your project or from included libraries and
345drag them into your layout (<a
346href="http://tools.android.com/recent/customviewsinthepalette">more info</a>).</li>
347 <li>Fragments are available in the palette for placement in your layout. In the tool, you can
348choose which layout to show rendered for a given fragment tag. Go to declaration works for fragment
Robert Ly6c81c302011-10-05 12:59:29 -0700349classes (<a href="http://tools.android.com/recent/fragmentsupport">more info</a>).</li>
Scott Main25d0b9f2011-05-26 14:12:54 -0700350 <li>The layout editor automatically applies a "zoom to fit" for newly
351 opened files as well as on device size and orientation changes to
352 ensure that large layouts are always fully visible unless you
353 manually zoom in.</li>
354 <li>You can drop in an {@code &lt;include&gt;} element from the palette, which will pop up
355 a layout chooser. When you select the layout to include, it is added with an {@code
356&lt;include&gt;}. Similarly, dropping images or image buttons will pop up image
357 resource choosers (<a
358href="http://tools.android.com/recent/includetagdropsupport">more info</a>).</li>
359 <li>The configuration chooser now applies the "Render Target" and
360 "Locale" settings project wide, making it trivial to check the
361 layouts for different languages or render targets without having
362 to configure these individually for each layout.</li>
363 <li>The layout editor is smarter about picking a default theme to
364 render a layout with, consulting factors like theme registrations
365 in the manifest, the SDK version, and other factors.</li>
366 <li>The layout editor is smarter about picking a default configuration to render a layout
367with, defaulting to the currently visible configuration in the previous file. It also considers the
368SDK target to determine whether to default to a tablet or phone screen size.</li>
369 <li>Basic focus support. The first text field dropped in a layout is assigned focus, and there
370are <strong>Request Focus</strong> and <strong>Clear Focus</strong> context menu items on text
371fields to change the focus.</li>
372 </ul>
373</dd>
374
375<dt>XML editors:</dt>
376<dd>
Robert Ly6c81c302011-10-05 12:59:29 -0700377<ul>
Scott Main25d0b9f2011-05-26 14:12:54 -0700378 <li>Code completion has been significantly improved. It now works
379 with {@code &lt;style&gt;} elements, completes dimensional units,
380 sorts resource paths in values based on the attribute name, and more. There are also many fixes to
381handle text replacement (<a
382href="http://tools.android.com/recent/xmlcodecompletionimprovements">more info</a>).</li>
383 <li>AAPT errors are handled better. They are now underlined for the
384 relevant range in the editor, and a new quickfix makes it trivial
385 to create missing resources.</li>
386 <li>Code completion for drawable, animation and color XML files (<a
387href="http://tools.android.com/recent/codecompletionfordrawablescolorsandanimationfiles">more
388info</a>).</li>
389</ul>
390</dd>
391
392<dt>DDMS:</dt>
393<dd>
Robert Ly6c81c302011-10-05 12:59:29 -0700394<ul>
Scott Main25d0b9f2011-05-26 14:12:54 -0700395 <li>"New Folder" action in the File Explorer.</li>
396 <li>The screenshot dialog will add timestamps to the filenames and preserve the orientation on
397snapshot refresh.</li>
398</ul>
399</dd>
400
401<dt>General notes:</dt>
402<dd>
403 <ul>
404 <li>TraceView supports zooming with the mouse-wheel in the timeline.</li>
405 <li>The New Android Project wizard now supports Eclipse working sets.</li>
406 </ul>
407</dd>
408</dl>
409<p>More information about tool changes are available on the <a
410href="http://tools.android.com/recent">Android Tools Project Site</a>.</p>
411</div>
412</div>
413
414
Robert Ly205d1c32011-06-28 13:13:14 -0700415
416
417
Scott Main25d0b9f2011-05-26 14:12:54 -0700418<div class="toggleable closed">
419 <a href="#" onclick="return toggleDiv(this)">
420 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px"
421width="9px" />
Scott Main7b013bb2011-03-14 14:17:31 -0700422ADT 10.0.1</a> <em>(March 2011)</em>
423 <div class="toggleme">
424
425<dl>
426
427<dt>Dependencies:</dt>
428
429<dd>ADT 10.0.1 is designed for use with SDK Tools r10. If you haven't
430already installed SDK Tools r10 into your SDK, use the Android SDK and AVD Manager to do
431so.</dd>
432
433<dt>General notes:</dt>
434<dd>
435 <ul>
436 <li>Temporary work-around to resolve the rare cases in which the layout editor will
437not open.</li>
438 <li>Fix issue in which ADT 10.0.0 would install on Eclipse 3.4 and lower, even though ADT
439requires Eclipse 3.5 or higher (as of 10.0.0).</li>
440 </ul>
441</dd>
442</dl>
443</div>
444</div>
445
446
447
448<div class="toggleable closed">
449 <a href="#" onclick="return toggleDiv(this)">
450 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px"
451width="9px" />
Robert Lyccea5d22011-02-11 14:59:36 -0800452ADT 10.0.0</a> <em>(February 2011)</em>
453 <div class="toggleme">
454
455<dl>
456
457<dt>Dependencies:</dt>
458
459<dd>ADT 10.0.0 is designed for use with SDK Tools r10. If you haven't
460already installed SDK Tools r10 into your SDK, use the Android SDK and AVD Manager to do
461so.</dd>
462
463<dt>General notes:</dt>
464<dd>
465 <ul>
466 <li>The tools now automatically generate Java Programming Language source files (in the <code>gen/</code> directory) and
467 bytecode (in the <code>res/raw/</code> directory) from your <code>.rs</code> files.</li>
Robert Lya0ef3502011-02-15 16:08:03 -0800468 <li>A Binary XML editor has been added (<a href="http://tools.android.com/recent/binaryxmleditor">details</a>).</li>
Robert Lyccea5d22011-02-11 14:59:36 -0800469 <li>Traceview is now integrated into the Eclipse UI (<a href="http://tools.android.com/recent/traceviewineclipse">details</a>).</li>
470 <li>The "Go To Declaration" feature for XML and <code>.java</code> files quickly show all the matches in the project
Robert Lya0ef3502011-02-15 16:08:03 -0800471 and allows you jump to specific items such as string translations or <code>onClick</code> handlers
472 (<a href="http://tools.android.com/recent/gotodeclarationimprovements">details</a>).</li>
473 <li>The Resource Chooser can create items such as dimensions, integers, ids, and booleans
474 (<a href="http://tools.android.com/recent/resourcechoosercannowcreatearbitraryvalues">details</a>).</li>
Robert Lyccea5d22011-02-11 14:59:36 -0800475 <li>Improvements to the Visual Layout Editor:
476 <ul>
477 <li>A new Palette with categories and rendering previews
478 (<a href="http://tools.android.com/recent/newpalette">details</a>).</li>
Robert Lya0ef3502011-02-15 16:08:03 -0800479 <li>A Layout Actions bar that provides quick access to common layout operations
480 (<a href="http://tools.android.com/recent/layoutactionsbar">details</a>).</li>
Robert Lyccea5d22011-02-11 14:59:36 -0800481 <li>When the Android 3.0 rendering library is selected, layouts render more like they do on devices.
482 This includes rendering of status and title bars to more accurately reflect the actual
Robert Lya0ef3502011-02-15 16:08:03 -0800483 screen space available to applications
484 (<a href="http://tools.android.com/recent/systembarandactionbar">details</a>).</li>
Robert Lyccea5d22011-02-11 14:59:36 -0800485 <li>Zoom improvements such as fit to view, persistent scale, and keyboard access.
486 (<a href="http://tools.android.com/recent/zoomimprovements">details</a>).</li>
Robert Lya0ef3502011-02-15 16:08:03 -0800487 <li>Further improvements to <code>&lt;merge&gt;</code> layouts, as well as layouts with gesture overlays
488 (<a href="http://tools.android.com/recent/improvedsupportformergetags">details</a>).</li>
Robert Lyccea5d22011-02-11 14:59:36 -0800489 <li>Improved rendering error diagnostics.</li>
490 </ul>
Robert Ly6c81c302011-10-05 12:59:29 -0700491 </li>
Robert Lyccea5d22011-02-11 14:59:36 -0800492 </ul>
493</dd>
494</dl>
495</div>
496</div>
497
498<div class="toggleable closed">
499 <a href="#" onclick="return toggleDiv(this)">
500 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px"
501width="9px" />
Robert Lyedc2aac2011-01-14 16:25:09 -0800502ADT 9.0.0</a> <em>(January 2011)</em>
503 <div class="toggleme">
504
505<dl>
506
507<dt>Dependencies:</dt>
508
509<dd>ADT 9.0.0 is designed for use with SDK Tools r9. If you haven't
510already installed SDK Tools r9 into your SDK, use the Android SDK and AVD Manager to do
511so.</dd>
512
513<dt>General notes:</dt>
514<dd>
Robert Ly6c81c302011-10-05 12:59:29 -0700515 <ul>
Robert Lyedc2aac2011-01-14 16:25:09 -0800516 <li>"Go To Declaration" hyperlink support: You can jump directly from code references (such as
517 <code>R.id.main</code>) to the corresponding XML declaration, or from XML attributes (such as
518 <code>@string</code>) to the corresponding resource definition, or from manifest XML
519 registrations to activities and services.</li>
520 <li>Improvements were made to name refactoring.</li>
521 <li>AVDs now automatically save their state, so they can restart almost instantly. You can enable this feature when
Robert Ly6c81c302011-10-05 12:59:29 -0700522 creating an AVD or by editing an AVD with the AVD Manager.</li>
Robert Lyedc2aac2011-01-14 16:25:09 -0800523 <li>Improvements to the Visual Layout Editor:
524 <ul>
525 <li>Support for rendering targets: You can now choose an arbitrary Android platform to
526 render the current page, regardless of the project's minimum platform. This makes it
527 easy to verify the layout and appearance of your activity on different versions of
528 the platform.
529 </li>
530 <li>Improved support for empty and nested layouts: Dragging items over nested and
531 invisible layouts automatically enlarges and highlights these layouts, so that they
532 can receive drops.
533 </li>
534 <li>XML formatting improvements: The editor generates cleaner XML and you can now enable
535 XML auto-formatting in the <strong>Preferences</strong> menu.</li>
536 <li>Improved Outline labels: The Outline tab now displays additional information about each
537 View. Textual Views display a snippet of the actual text. Views with a source
538 (such as ImageView) displays the resource name. Included Views display the name of the View.
539 </li>
540 <li>When you right click a View in the Layout Editor,
541 the context menu now contains <strong>Edit ID...</strong> and <strong>Edit Text...</strong>
542 items. The <strong>Properties...</strong> context menus now list all of the properties and
543 provide a way to edit them
544 (<a href="http://tools.android.com/recent/editidtextandotherpropertiesviamenu">Details</a>).
545 </li>
546 <li>The layout editor now properly handles
547 <a href="{@docRoot}guide/topics/resources/layout-resource.html#include-element"><code>&lt;include&gt;</code></a>
548 and <a href="{@docRoot}guide/topics/resources/layout-resource.html#merge-element"><code>&lt;merge&gt;</code></a>
549 tags (<a href="http://tools.android.com/recent/supportforincludeandmerge">Details</a>).</li>
550 <li>"Extract as Include" refactoring: The Layout Editor has a new refactoring that allows
551 you to select one or more views in a layout, and extract it into a separate layout
552 (<a href="http://tools.android.com/recent/extractasincluderefactoring">Details</a>).</li>
553 <li>Improved diagnostics for class loading and rendering errors: Class loading and rendering
554 error messages are more useful and provide better information about the root cause of the
555 error.</li>
556 <li>Improved error handling to prevent drag and reordering operations from adding children
557 into an {@link android.widget.AdapterView}.</li>
558 <li>Outline reordering: Reordering your views in the Outline tab is much easier
559 (<a href="http://tools.android.com/recent/outlineimprovements">Details</a>).</li>
Robert Ly6c81c302011-10-05 12:59:29 -0700560 <li>Fix for keybinding bug where keyboard shortcuts did not work (Issues
561 <a href="http://code.google.com/p/android/issues/detail?id=13231">13231</a> and
Robert Lyedc2aac2011-01-14 16:25:09 -0800562 <a href="http://code.google.com/p/android/issues/detail?id=13134">13134</a>).</li>
Robert Ly6c81c302011-10-05 12:59:29 -0700563 <li>Fix for problems with Custom layout attribute menu (Issue
Robert Lyedc2aac2011-01-14 16:25:09 -0800564 <a href="http://code.google.com/p/android/issues/detail?id=13134">13134</a>).</li>
565 <li>Automatic configuration for various view types: Certain views have properties configured
566 by default. For example, the width of an {@link android.widget.EditText} object is set to
567 <code>match_parent</code> when added to a vertical {@link android.widget.LinearLayout}
568 or a default image is added to an {@link android.widget.ImageButton}.</li>
569 <li>Previews during dragging: Dragging from the palette or dragging within the layout editor
570 now shows live previews of the dragged item.</li>
571 <li>Navigation improvements: In the Layout Editor, double-clicking Views jumps to the
572 corresponding XML element. In the Outline view, double-clicking opens the Properties view.</li>
573 <li>The editor has Honeycomb style animation preview support.</li>
574 <li>Improved rendering support for various Views (such as TabHosts and SlidingDrawers) in
575 Honeycomb (Issues <a href="http://code.google.com/p/android/issues/detail?id=3162">3162</a>
576 and <a href="http://code.google.com/p/android/issues/detail?id=13092">13092</a>).</li>
577 <li>Included layouts can be rendered and edited in the context of the layouts that include
578 them. From a layout using an <a href="{@docRoot}guide/topics/resources/layout-resource.html#include-element">
Robert Ly6c81c302011-10-05 12:59:29 -0700579 <code>&lt;include&gt;</code></a> tag, double-clicking on the
Robert Lyedc2aac2011-01-14 16:25:09 -0800580 <a href="{@docRoot}guide/topics/resources/layout-resource.html#include-element">
581 <code>&lt;include&gt;</code></a> element edits the referenced layout in the context of the
582 current layout. Additionally, when editing a layout that is included by other layouts,
583 you can quickly change between context layouts, by right clicking in the editor and choosing
584 <strong>Show included in...</strong>. This feature is only available in Honeycomb.</li>
585 </ul>
586 </li>
587 <li>This release fixes many other bugs, but the most important ones are listed below:
588 <ul>
589 <li>Fixed issue that prevented launching debug builds on productions devices when
Robert Ly6c81c302011-10-05 12:59:29 -0700590 <code>debuggable=true</code> was not set in the Android manifest.</li>
Robert Lyedc2aac2011-01-14 16:25:09 -0800591 <li>The LogCat view in DDMS properly handles UTF-8 characters.</li>
592 <li>The SDK Manager is more reliable on Windows
593 (<a href="http://tools.android.com/recent/sdkmanagerfixes">Details</a>).</li>
Robert Ly6c81c302011-10-05 12:59:29 -0700594 <li>A JUnit initialization bug that prevented you from working with JUnit tests was fixed
595 (Issue <a href="http://code.google.com/p/android/issues/detail?id=12411">12411</a>).</li>
Robert Lyedc2aac2011-01-14 16:25:09 -0800596 </ul>
597</li>
598 </ul>
599</dd>
600</dl>
601</div>
602</div>
603
604
605
606
607<div class="toggleable closed">
608 <a href="#" onclick="return toggleDiv(this)">
609 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px"
610width="9px" />
Scott Main92b03082010-12-14 17:55:27 -0800611ADT 8.0.1</a> <em>(December 2010)</em>
612 <div class="toggleme">
613
614<dl>
615
616<dt>Dependencies:</dt>
617
618<p><p>ADT 8.0.1 is designed for use with SDK Tools r8. If you haven't
619already installed SDK Tools r8 into your SDK, use the Android SDK and AVD Manager to do
620so.</p></dd>
621
622<dt>General notes:</dt>
623<dd>
624<ul>
625 <li>This is a quick follow-up to ADT 8.0.0 to fix some bugs.</li>
626 <li>Fixes an issue in which projects failed to compile, citing a dex error.</li>
627 <li>Better ProGuard error reporting when exporting applications for release.</li>
628</ul>
629<p>Also see the recent release notes for 8.0.0, below.</p>
630</dd>
631</dl>
Robert Lyedc2aac2011-01-14 16:25:09 -0800632</div>
Scott Main92b03082010-12-14 17:55:27 -0800633</div>
634
635
636<div class="toggleable closed">
637 <a href="#" onclick="return toggleDiv(this)">
638 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px"
639width="9px" />
Dirk Dougherty9f7580d2010-10-26 09:29:03 -0700640ADT 8.0.0</a> <em>(December 2010)</em>
Dirk Dougherty9a97aaf2010-09-23 11:48:54 -0700641 <div class="toggleme">
642
Scott Mainc0c0c422010-11-05 15:23:36 -0700643<dl>
Dirk Dougherty9a97aaf2010-09-23 11:48:54 -0700644
Scott Mainc0c0c422010-11-05 15:23:36 -0700645<dt>Dependencies:</dt>
646
Dirk Dougherty9f7580d2010-10-26 09:29:03 -0700647<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 -0700648already installed SDK Tools r8 into your SDK, use the Android SDK and AVD Manager to do
649so.</p></dd>
650
651<dt>General notes:</dt>
652<dd>
653<ul>
654 <li>New version number scheme that follows the SDK Tools revision number. The major version
655number for your ADT plugin should now always match the revision number of your SDK Tools. For
656example, ADT 8.x is for SDK Tools r8.</li>
657 <li>Support for true debug build. You no longer need to change the value of the
658 <code>debuggable</code> attribute in the Android Manifest.
659 <p>Incremental builds automatically insert <code>debuggable="true"</code>, but if you perform
660 "export signed/unsigned application package", ADT does <em>not</em> insert it.
661 If you manually set <code>debuggable="true"</code> in the manifest file, then release builds will
662 actually create a debug build (it does not remove it if you placed it there).</p></li>
Scott Main60c4e032011-01-07 14:48:18 -0800663 <li>Automatic <a href="{@docRoot}guide/developing/tools/proguard.html">ProGuard</a> support in
664 release builds. For it to work, you need to have a <code>proguard.config</code>
665 property in the <code>default.properties</code> file that points to a ProGuard config file.</li>
Scott Mainc0c0c422010-11-05 15:23:36 -0700666 <li>Completely rewritten Visual Layout Editor. (This is still a work in progress.) Now includes:
667 <ul>
668 <li>Full drag and drop from palette to layout for all Layout classes.</li>
669 <li>Move widgets inside a Layout view, from one Layout view to another and from one layout file to another.</li>
670 <li>Contextual menu with enum/flag type properties.</li>
671 <li>New zoom controls.</li>
672 </ul></li>
673 <li>New HierarchyViewer plug-in integrated in Eclipse.</li>
674 <li>Android launch configurations don't recompile the whole workspace on launch anymore.</li>
675 <li><code>android.jar</code> source and javadoc location can now be configured.</li>
Dirk Dougherty9a97aaf2010-09-23 11:48:54 -0700676</ul>
677</dd>
Scott Mainc0c0c422010-11-05 15:23:36 -0700678</dl>
679 </div>
680</div>
681
682
683<div class="toggleable closed">
684 <a href="#" onclick="return toggleDiv(this)">
685 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
686ADT 0.9.9</a> <em>(September 2010)</em>
687 <div class="toggleme">
Dirk Dougherty9a97aaf2010-09-23 11:48:54 -0700688
689<dl>
690
691<dt>Dependencies:</dt>
692
693<dd><p>ADT 0.9.9 replaces ADT 0.9.8 and is designed for use with SDK Tools r7
694and later. ADT 0.9.9 includes the ADT 0.9.8 features as well as an important
695bugfix, so we recommend that you upgrade as soon as possible. If you haven't
696already installed SDK Tools r7 into your SDK, use the Android SDK Manager to do
697so.</p></dd>
698
699<dt>General notes:</dt>
700<dd>
701<ul>
702<li>Fixes a problem in project import, in which source files were deleted in some cases.</li>
703<li>Includes all other ADT 0.9.8 features (see below).</li>
704</ul>
705</dd>
706</dl>
707 </div>
708</div>
709
710<div class="toggleable closed">
711 <a href="#" onclick="return toggleDiv(this)">
712 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
Dirk Dougherty74a74d32010-09-09 18:40:13 -0700713ADT 0.9.8</a> <em>(September 2010)</em>
Dirk Dougherty022171b2010-07-30 19:24:17 -0700714 <div class="toggleme">
715
716
717</ul>
718</dd>
719
720<dl>
721
722<dt>Dependencies:</dt>
723
Dirk Dougherty9a97aaf2010-09-23 11:48:54 -0700724<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 -0700725
726<dt>General notes:</dt>
727<dd>
728<ul>
729<li>Adds a new Action, "Rename Application Package", to the Android Tools
730contextual menu. The Action does a full application package refactoring.
731<li>Adds support for library projects that don't have a source folder
732called <code>src/</code>. There is now support for any number of source folders,
733with no name restriction. They can even be in subfolder such as
734<code>src/java</code>. If you are already working with library projects created
Scott Main081127b2010-10-29 15:56:27 -0700735in ADT 0.9.7, see <a
Robert Lyc74a69a82011-01-04 22:48:02 -0800736href="{@docRoot}guide/developing/projects/index.html#libraryMigrating">Migrating
Dirk Dougherty022171b2010-07-30 19:24:17 -0700737library projects to ADT 0.9.8</a> for important information about moving
738to the new ADT environment.</li>
739<li>Adds support for library projects that depend on other library
740projects.</li>
741<li>Adds support for additional resource qualifiers:
742<code>car</code>/<code>desk</code>, <code>night</code>/<code>notnight</code> and
743<code>navexposed</code>/<code>navhidden</code>.</li>
744<li>Adds more device screen types in the layout editor. All screen
Scott Main081127b2010-10-29 15:56:27 -0700745resolution/density combinations listed in the <a
Dirk Dougherty022171b2010-07-30 19:24:17 -0700746href="{@docRoot}guide/practices/screens_support.html#range">Supporting
747Multiple Screens</a> are now available.</li>
748<li>Fixes problems with handling of library project names that
749contain characters that are incompatible with the Eclipse path variable.
750Now properly sets up the link between the main project and the library
751project.</li>
752</ul>
753</dd>
754</dl>
755 </div>
756</div>
757
758
759<div class="toggleable closed">
760 <a href="#" onclick="return toggleDiv(this)">
Dirk Dougherty0d1b0812010-04-07 17:05:16 -0700761 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
Dirk Doughertyc7c7afd2010-05-24 09:07:14 -0700762ADT 0.9.7</a> <em>(May 2010)</em>
Dirk Dougherty0d1b0812010-04-07 17:05:16 -0700763 <div class="toggleme">
764
765<dl>
766<dt>Library projects:</dt>
767<dd>
768<p>The ADT Plugin now supports the use of <em>library projects</em> during
769development, a capability that lets you store shared Android application
770code and resources in a separate development project. You can then reference the
771library project from other Android projects and, at build time, the tools
772compile the shared code and resources as part of the dependent applications.
773More information about this feature is available in the <a
Robert Lyc74a69a82011-01-04 22:48:02 -0800774href="{@docRoot}guide/developing/projects/index.html#LibraryProjects">Creating and Managing Projects</a> document. </p>
Scott Main081127b2010-10-29 15:56:27 -0700775<p>If you are not developing in Eclipse, <a
776href="tools-notes.html">SDK Tools r6</a> provides the equivalent library
Dirk Dougherty0d1b0812010-04-07 17:05:16 -0700777project support through the Ant build system.</p>
778</dd>
779</dl>
780 </div>
781</div>
782
Dirk Dougherty022171b2010-07-30 19:24:17 -0700783
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700784<div class="toggleable closed">
785 <a href="#" onclick="return toggleDiv(this)">
786 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
787ADT 0.9.6</a> <em>(March 2010)</em>
788 <div class="toggleme">
789
790<dl>
791<dt>Dependencies:</dt>
792
Scott Main081127b2010-10-29 15:56:27 -0700793<dd><p>ADT 0.9.6 is designed for use with SDK Tools r5 and later. Before
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700794updating to ADT 0.9.6, we highly recommend that you use the Android SDK and
795AVD Manager to install SDK Tools r5 into your SDK.</p></dd>
796
797<dt>General Notes:</dt>
798<dd>
799<ul>
800<li>Editing <code>default.properties</code> outside of Eclipse will now
801automatically update the project.</li>
802<li>Loads the SDK content only when a project requires it. This will make
803Eclipse use less resources when the SDK contains many versions of Android.</li>
804<li>Resolves potential deadlock between modal dialogs, when launching ADT the
805first time with the SDK Usage panel.</li>
806<li>Fixes issues with the New Project Wizard when selecting samples.</li>
807</ul>
808</dd>
809<dt>AVD/SDK Manager:</dt>
810<dd>
811<ul>
812<li>Adds support for platform samples components.</li>
813<li>Improves support for dependency between components.</li>
814<li>AVDs now sorted by API level.</li>
815<li>The AVD creation dialog now enforces a minimum SD card size of 9MB.</li>
816<li>Prevents deletion of running AVDs.</li>
817</ul>
818</dd>
819<dt>DDMS:</dt>
820<dd>
821<ul>
822<li>DDMS plug-in now contains the Allocation Tracker view.</li>
823<li>New action in the Logcat view: "Go to problem" lets you go directly from an
824exception trace output to the code.</li>
825</ul>
826</dd>
827<dt>Editors:</dt>
828<dd>
829<ul>
830<li>Explode mode in the Visual Layout Editor adds a margin to all layout objects
831so that it's easier to see embedded or empty layouts.</li>
832<li>Outline mode in the Visual Layout Editor draws layout outline to make it
833easier to see layout objects.</li>
834<li>Several fixes in the configuration selector of the Visual Layout
835Editor.</li>
836</ul>
837</dd>
838<dt>Application launching:</dt>
839<dd>
840<ul>
841<li>Applications launched from ADT now behave as if they were clicked from the
842Home screen.</li>
843<li>Fixes issue where add-on with no optional library would not show up as valid
844targets for application launches.</li>
845<li>Resolves possible crash when launching applications.</li>
846</ul>
847</dd>
848</dl>
849 </div>
850</div>
851
852<div class="toggleable closed">
853 <a href="#" onclick="return toggleDiv(this)">
854 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
855ADT 0.9.5</a> <em>(December 2009)</em>
856 <div class="toggleme">
857<dl>
858<dt>Dependencies:</dt>
859
860<dd><p>ADT 0.9.5 requires features provided in SDK Tools r4 or higher. If you install
861ADT 0.9.5, which is highly recommended, you should use the Android SDK and AVD
Scott Main92b03082010-12-14 17:55:27 -0800862Manager to download the latest SDK Tools into your SDK. For more information,
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700863see <a href="{@docRoot}sdk/adding-components.html">Adding SDK Components</a>.</p>
864</dd>
865
866<dt>General Notes:</dt>
867<dd>
868<ul>
869<li>AVD Launch dialog now shows scale value.</li>
870<li>Fixes potential NPE in SDK Manager on AVD launch, for older AVD with no skin name specified.</li>
871<li>Fixes XML validation issue in on older Java versions.</li>
872<li>.apk packaging now properly ignores vi swap files as well as hidden files.</li>
873</ul>
874</dd>
875</dl>
876 </div>
877</div>
878
879<div class="toggleable closed">
880 <a href="#" onclick="return toggleDiv(this)">
881 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
882ADT 0.9.4</a> <em>(October 2009)</em>
883 <div class="toggleme">
884<dl>
885<dt>Dependencies:</dt>
886
887<dd><p>ADT 0.9.4 requires features provided in SDK Tools r3 or higher. If you install
888ADT 0.9.4, which is highly recommended, you should use the Android SDK and AVD
889Manager to download the latest SDK Tools into your SDK. For more information,
890see <a href="{@docRoot}sdk/adding-components.html">Adding SDK Components</a>.</p>
891</dd>
892
893<dt>Project Creation Wizard:</dt>
894<dd>
895<ul>
896<li>New option to create a project from a sample by choosing it from a list.</li>
897</ul>
898</dd>
899
900<dt>Layout Editor:</dt>
901<dd>
902<ul>
903<li>Improved Configuration selector that lets you see how your layout will
904render on different devices. Default device descriptions include ADP1
905and Google Ion, while SDK add-ons can also provide new descriptions.
906A new UI allows you to create custom descriptions.</li>
907<li>Adds a new clipping toggle, to let you see your full layout even if it's
908bigger than the screen.</li>
909</ul>
910</dd>
911
912<dt>DDMS Integration:</dt>
913<dd>
914<ul>
915<li>Includes the improvements from the standlone DDMS, revision 3.</li>
916<li>Adds an option to open HPROF files into eclipse instead of writing them on
Scott Main081127b2010-10-29 15:56:27 -0700917disk. If a profiler such as MAT (<a href="http://eclipse.org/mat">Memory Analyzer
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700918Tool</a>) is installed, it'll open the file.</li>
919</ul>
920</dd>
921
922<dt>Android SDK and AVD Manager integration:</dt>
923<dd>
924<ul>
Scott Main081127b2010-10-29 15:56:27 -0700925<li>Includes the improvements from the standalone Android SDK and AVD Manager,
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700926revision 3.</li>
927</ul>
928</dd>
929</dl>
930 </div>
931</div>
932
Scott Main77847a32010-11-09 16:41:32 -0800933
934
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700935<h2 id="installing">Installing the ADT Plugin</h2>
936
937<p>The sections below provide instructions on how to download and install
938ADT into your Eclipse environment. If you encounter problems, see the <a
939href="#troubleshooting">Troubleshooting</a> section.</p>
940
Scott Main77847a32010-11-09 16:41:32 -0800941
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700942<h3 id="preparing">Preparing Your Development Computer</h3>
943
944<p>ADT is a plugin for the Eclipse IDE. Before you can install or use ADT,
945you must have a compatible version of Eclipse installed on your development
Robert Ly2a36cf42011-03-09 10:33:20 -0800946computer. Check the <a
947href="requirements.html">System Requirements</a> document for
948a list of Eclipse versions that are compatible with the Android SDK.</li></p>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700949
950<ul>
951<li>If Eclipse is already installed on your computer, make sure that it is
Robert Ly6c81c302011-10-05 12:59:29 -0700952a version that is compatible with ADT and the Android SDK.
Robert Ly2a36cf42011-03-09 10:33:20 -0800953
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700954<li>If you need to install or update Eclipse, you can download it from this
955location:
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700956
Dirk Dougherty22558d02009-12-10 16:25:06 -0800957<p style="margin-left:2em;"><a href=
958"http://www.eclipse.org/downloads/">http://www.eclipse.org/downloads/</a>
959</p>
960
Robert Ly2a36cf42011-03-09 10:33:20 -0800961<p>The "Eclipse Classic" version is recommended. Otherwise, a Java or RCP
Scott Main77847a32010-11-09 16:41:32 -0800962version of Eclipse is recommended.</p></li>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700963</ul>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700964
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700965<p>Additionally, before you can configure or use ADT, you must install the
966Android SDK starter package, as described in <a
Robert Lyef13d022010-07-12 14:32:22 -0700967href="installing.html#Installing">Downloading the SDK Starter Package</a>.
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700968Specifically, you need to install a compatible version of the Android SDK Tools
969and at least one development platform. To simplify ADT setup, we recommend
970installing the Android SDK prior to installing ADT. </p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700971
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700972<p>When your Eclipse and Android SDK environments are ready, continue with the
973ADT installation as described in the steps below. </p>
974
975<h3 id="downloading">Downloading the ADT Plugin</h3>
976
Robert Ly2a36cf42011-03-09 10:33:20 -0800977<p>Use the Update Manager feature of your Eclipse installation to install the latest
Bill Gruber604917b2011-04-04 12:11:49 -0700978revision of ADT on your development computer.<>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700979
980<p>Assuming that you have a compatible version of the Eclipse IDE installed, as
981described in <a href="#preparing">Preparing for Installation</a>, above, follow
982these steps to download the ADT plugin and install it in your Eclipse
Robert Ly2a36cf42011-03-09 10:33:20 -0800983environment.</p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700984
Robert Ly2a36cf42011-03-09 10:33:20 -0800985
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700986<ol>
Scott Main77847a32010-11-09 16:41:32 -0800987 <li>Start Eclipse, then select <strong>Help</strong> &gt; <strong>Install New
988Software...</strong>.</li>
989 <li>Click <strong>Add</strong>, in the top-right corner.</li>
990 <li>In the Add Repository dialog that appears, enter "ADT Plugin" for the <em>Name</em> and the
991following URL for the <em>Location</em>:
992 <pre>https://dl-ssl.google.com/android/eclipse/</pre>
Bill Gruber604917b2011-04-04 12:11:49 -0700993 </li>
994 <li>Click <strong>OK</strong>
995 <p>Note: If you have trouble acquiring the plugin, try using "http" in the Location URL,
996instead of "https" (https is preferred for security reasons).</p></li>
997 <li>In the Available Software dialog, select the checkbox next to Developer Tools and click
998<strong>Next</strong>.</li>
Scott Main77847a32010-11-09 16:41:32 -0800999 <li>In the next window, you'll see a list of the tools to be downloaded. Click
1000<strong>Next</strong>. </li>
Bill Gruber604917b2011-04-04 12:11:49 -07001001 <li>Read and accept the license agreements, then click <strong>Finish</strong>.
1002 <p>Note: If you get a security warning saying that the authenticity or validity of
1003the software can't be established, click <strong>OK</strong>.</p></li>
Scott Main77847a32010-11-09 16:41:32 -08001004 <li>When the installation completes, restart Eclipse. </li>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -07001005</ol>
1006
Scott Main369c1c12010-12-07 11:17:00 -08001007<h3 id="configuring">Configuring the ADT Plugin</h3>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -07001008
Bill Gruber604917b2011-04-04 12:11:49 -07001009<p>After you've successfully downloaded the ADT as described above, the next step
Dirk Dougherty7b229ef2010-03-26 17:32:26 -07001010is to modify your ADT preferences in Eclipse to point to the Android SDK directory:</p>
1011
Dirk Doughertyee58d1b2009-10-16 15:25:15 -07001012<ol>
1013 <li>Select <strong>Window</strong> &gt; <strong>Preferences...</strong> to open the Preferences
1014 panel (Mac OS X: <strong>Eclipse</strong> &gt; <strong>Preferences</strong>).</li>
Bill Gruber604917b2011-04-04 12:11:49 -07001015 <li>Select <strong>Android</strong> from the left panel.</li>
1016 <p>You may see a dialog asking whether you want to send usage statistics to Google. If so,
1017make your choice and click <strong>Proceed</strong>. You cannot continue with this procedure until
1018you click <strong>Proceed</strong>.</p>
Scott Main081127b2010-10-29 15:56:27 -07001019 <li>For the <em>SDK Location</em> in the main panel, click <strong>Browse...</strong> and
Dirk Doughertyee58d1b2009-10-16 15:25:15 -07001020 locate your downloaded SDK directory. </li>
1021 <li>Click <strong>Apply</strong>, then <strong>OK</strong>.</li>
1022</ol>
1023
Dirk Dougherty7b229ef2010-03-26 17:32:26 -07001024<p>Done! If you haven't encountered any problems, then the installation is
Scott Main081127b2010-10-29 15:56:27 -07001025complete. If you're installing the Android SDK for the first time, return to <a
1026href="{@docRoot}sdk/installing.html#InstallingADT">Installing the SDK</a> to complete your setup.
1027</p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -07001028
1029
1030<h3 id="troubleshooting">Troubleshooting ADT Installation</h3>
1031
1032<p> If you are having trouble downloading the ADT plugin after following the
1033steps above, here are some suggestions: </p>
1034
1035<ul>
1036 <li>If Eclipse can not find the remote update site containing the ADT plugin,
1037try changing the remote site URL to use http, rather than https. That is, set
1038the Location for the remote site to:
Scott Main081127b2010-10-29 15:56:27 -07001039<pre>http://dl-ssl.google.com/android/eclipse/</pre></li>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -07001040<li>If you are behind a firewall (such as a corporate firewall), make sure that
Scott Main77847a32010-11-09 16:41:32 -08001041you have properly configured your proxy settings in Eclipse. In Eclipse,
Dirk Doughertyee58d1b2009-10-16 15:25:15 -07001042you can configure proxy information from the main Eclipse menu in
1043<strong>Window</strong> (on Mac OS X, <strong>Eclipse</strong>) &gt;
1044<strong>Preferences</strong> &gt; <strong>General</strong> &gt; <strong>Network
1045Connections</strong>.</li>
1046</ul>
1047
1048<p> If you are still unable to use Eclipse to download the ADT plugin as a
1049remote update site, you can download the ADT zip file to your local machine and
1050manually install it:</p>
1051
1052<ol>
1053 <li>Download the current ADT Plugin zip file from the table below (do not unpack it).
1054
1055 <table class="download">
1056 <tr>
1057 <th>Name</th>
1058 <th>Package</th>
1059 <th>Size</th>
1060 <th>MD5 Checksum</th>
1061 </tr>
1062 <tr>
1063 <td>ADT {@adtZipVersion}</td>
1064 <td>
1065 <a href="http://dl.google.com/android/{@adtZipDownload}">{@adtZipDownload}</a>
1066 </td>
1067 <td>{@adtZipBytes} bytes</td>
1068 <td>{@adtZipChecksum}</td>
1069 </tr>
1070</table>
1071</li>
1072
1073</li>
Scott Main081127b2010-10-29 15:56:27 -07001074 <li>Follow steps 1 and 2 in the <a href="#installing">default install
Dirk Doughertyee58d1b2009-10-16 15:25:15 -07001075 instructions</a> (above).</li>
1076 <li>In the Add Site dialog, click <strong>Archive</strong>.</li>
1077 <li>Browse and select the downloaded zip file.</li>
Scott Main77847a32010-11-09 16:41:32 -08001078 <li>Enter a name for the local update site (e.g.,
Dirk Doughertyee58d1b2009-10-16 15:25:15 -07001079 "Android Plugin") in the "Name" field.</li>
1080 <li>Click <strong>OK</strong>.
Scott Main081127b2010-10-29 15:56:27 -07001081 <li>Follow the remaining procedures as listed for
Dirk Dougherty7b229ef2010-03-26 17:32:26 -07001082 <a href="#installing">default installation</a> above,
Dirk Doughertyee58d1b2009-10-16 15:25:15 -07001083 starting from step 4.</li>
1084</ol>
1085
1086<p>To update your plugin once you've installed using the zip file, you will have
1087to follow these steps again instead of the default update instructions.</p>
1088
1089<h4>Other install errors</h4>
1090
Scott Main081127b2010-10-29 15:56:27 -07001091<p>Note that there are features of ADT that require some optional
1092Eclipse components (for example, WST). If you encounter an error when
1093installing ADT, your Eclipse installion might not include these components.
1094For information about how to quickly add the necessary components to your
1095Eclipse installation, see the troubleshooting topic
1096<a href="{@docRoot}resources/faq/troubleshooting.html#installeclipsecomponents">ADT
Dirk Doughertyee58d1b2009-10-16 15:25:15 -07001097Installation Error: "requires plug-in org.eclipse.wst.sse.ui"</a>.</p>
1098
1099<h4>For Linux users</h4>
Scott Main081127b2010-10-29 15:56:27 -07001100<p>If you encounter this error when installing the ADT Plugin for Eclipse:
Dirk Doughertyee58d1b2009-10-16 15:25:15 -07001101<pre>
1102An error occurred during provisioning.
1103Cannot connect to keystore.
1104JKS</pre>
1105<p>
1106...then your development machine lacks a suitable Java VM. Installing Sun
1107Java 6 will resolve this issue and you can then reinstall the ADT
1108Plugin.</p>
1109
1110
Dirk Dougherty7b229ef2010-03-26 17:32:26 -07001111<h2 id="updating">Updating the ADT Plugin</h2>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -07001112
Dirk Dougherty7b229ef2010-03-26 17:32:26 -07001113<p>From time to time, a new revision of the ADT Plugin becomes available, with
1114new features and bug fixes. Generally, when a new revision of ADT is available,
1115you should update to it as soon as convenient. </p>
1116
1117<p>In some cases, a new revision of ADT will have a dependency on a specific
1118revision of the Android SDK Tools. If such dependencies exist, you will need to
1119update the SDK Tools component of the SDK after installing the new revision of
1120ADT. To update the SDK Tools component, use the Android SDK and AVD Manager, as
1121described in <a href="adding-components.html">Adding SDK Components</a>.</p>
1122
1123<p>To learn about new features of each ADT revision and also any dependencies on
1124the SDK Tools, see the listings in the <a href="#notes">Revisions</a>
Scott Main081127b2010-10-29 15:56:27 -07001125section. To determine the version currently installed, open the
Dirk Dougherty7b229ef2010-03-26 17:32:26 -07001126Eclipse Installed Software window using <strong>Help</strong>
Scott Main081127b2010-10-29 15:56:27 -07001127&gt; <strong>Software Updates</strong> and refer to the version listed for
Dirk Dougherty7b229ef2010-03-26 17:32:26 -07001128"Android Development Tools".</p>
1129
Scott Main081127b2010-10-29 15:56:27 -07001130<p>Follow the steps below to check whether an update is available and, if so,
Dirk Dougherty7b229ef2010-03-26 17:32:26 -07001131to install it. </p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -07001132
Dirk Doughertyee58d1b2009-10-16 15:25:15 -07001133<ol>
Scott Main77847a32010-11-09 16:41:32 -08001134 <li>Select <strong>Help</strong> &gt; <strong>Check for Updates</strong>.
1135 <p>If there are no updates available, a dialog will say so and you're done.</p></li>
1136 <li>If there are updates available, select Android DDMS, Android Development Tools,
1137 and Android Hierarchy Viewer, then click <strong>Next</strong>.</li>
1138 <li>In the Update Details dialog, click <strong>Next</strong>.</li>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -07001139 <li>Read and accept the license agreement and then click <strong>Finish</strong>.
Scott Main081127b2010-10-29 15:56:27 -07001140 This will download and install the latest version of Android DDMS and
Dirk Doughertyee58d1b2009-10-16 15:25:15 -07001141 Android Development Tools.</li>
1142 <li>Restart Eclipse.</li>
1143</ol>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -07001144
1145
Scott Main090a3dc2010-12-07 10:38:55 -08001146<p>If you encounter problems during the update, remove the existing ADT plugin from Eclipse, then
1147perform a fresh installation, using the instructions for <a href="#installing">Installing the ADT
1148Plugin</a>.</p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -07001149