blob: bbf7cbe8cc78d51ff31d5eb58480ce1e90126360 [file] [log] [blame]
Dirk Dougherty7b229ef2010-03-26 17:32:26 -07001page.title=ADT Plugin for Eclipse
Robert Lyad2724d2011-07-06 17:47:47 -07002adt.zip.version=12.0.0
3adt.zip.download=ADT-12.0.0.zip
4adt.zip.bytes=5651973
5adt.zip.checksum=8ad85d0f3da4a2b8dadfddcc2d66dbcb
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>
Scott Main22d39262011-08-25 11:38:50 -070025
26 <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
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070069<script type="text/javascript">
70function toggleDiv(link) {
71 var toggleable = $(link).parent();
72 if (toggleable.hasClass("closed")) {
73 //$(".toggleme", toggleable).slideDown("fast");
74 toggleable.removeClass("closed");
75 toggleable.addClass("open");
76 $(".toggle-img", toggleable).attr("title", "hide").attr("src", (toRoot + "assets/images/triangle-opened.png"));
77 } else {
78 //$(".toggleme", toggleable).slideUp("fast");
79 toggleable.removeClass("open");
80 toggleable.addClass("closed");
81 $(".toggle-img", toggleable).attr("title", "show").attr("src", (toRoot + "assets/images/triangle-closed.png"));
82 }
83 return false;
84}
85</script>
86<style>
87.toggleable {
88padding: .25em 1em;
89}
90.toggleme {
91 padding: 1em 1em 0 2em;
92 line-height:1em;
93}
94.toggleable a {
95 text-decoration:none;
96}
Dirk Dougherty0d1b0812010-04-07 17:05:16 -070097.toggleme a {
98 text-decoration:underline;
99}
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700100.toggleable.closed .toggleme {
101 display:none;
102}
103#jd-content .toggle-img {
104 margin:0;
105}
106</style>
107
Dirk Dougherty022171b2010-07-30 19:24:17 -0700108
Dirk Dougherty0d1b0812010-04-07 17:05:16 -0700109<div class="toggleable opened">
110 <a href="#" onclick="return toggleDiv(this)">
Scott Main92b03082010-12-14 17:55:27 -0800111 <img src="{@docRoot}assets/images/triangle-opened.png" class="toggle-img" height="9px"
112width="9px" />
Robert Ly31ee77e2011-07-06 11:16:19 -0700113ADT 12.0.0</a> <em>(July 2011)</em>
Robert Ly205d1c32011-06-28 13:13:14 -0700114 <div class="toggleme">
115<dl>
116
117<dt>Dependencies:</dt>
118
119<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
120already installed SDK Tools r12 into your SDK, use
121the Android SDK and AVD Manager to do so.</dd>
122
123<dt>Visual Layout Editor:</dt>
124<dd>
125<ul>
126 <li>New RelativeLayout drop support with guideline suggestions for
127 attachments and cycle prevention
128 (<a href="http://tools.android.com/recent/revampedrelativelayoutsupport">more info</a>).</li>
129 <li>Resize support in most layouts along with
130 guideline snapping to the sizes dictated by <code>wrap_content</code> and <code>match_parent</code>.
131 In LinearLayout, sizes are mapped to weights instead of pixel widths.
132 (<a href="http://tools.android.com/recent/resizesupport">more info</a>).</li>
133 <li>Previews of drawables and colors in the resource chooser dialogs
134 (<a href="http://tools.android.com/recent/imageandcolorpreviews">more info</a>).</li>
135 <li>Improved error messages and links for rendering errors including
136 detection of misspelled class names
137 (<a href="http://tools.android.com/recent/improvedrenderingerrordiagnostics">more info</a>).</li>
138</ul>
139</dd>
140
141<dt>Build system</dt>
142<dd>
143<ul>
144 <li>A new option lets you disable the packaging step in the automatic
145 builders. This improves performance when saving files by not
146 performing a full build, which can take a long time for large projects.
147 If the option is enabled, the APK is packaged when the
148 application is deployed to a device or emulator or when the
149 release APK is exported (<a href="http://tools.android.com/recent/finercontroloveradtbuildprocess">more info</a>).</li>
150</ul>
151</dd>
152
153<dt>Bug fixes</dt>
154<dd>Many bug fixes are part of this release
155(<a href="http://tools.android.com/recent/adt12bugfixroundup">more info</a>).</dd>
156
157</div>
158</div>
159
160
161<div class="toggleable closed">
162 <a href="#" onclick="return toggleDiv(this)">
163 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px"
164width="9px" />
Scott Main25d0b9f2011-05-26 14:12:54 -0700165ADT 11.0.0</a> <em>(June 2011)</em>
Robert Ly205d1c32011-06-28 13:13:14 -0700166 <div class="toggleme">
Scott Main25d0b9f2011-05-26 14:12:54 -0700167
168<dl>
169
170<dt>Dependencies:</dt>
171
172<dd>ADT 11.0.0 is designed for use with SDK Tools r11. If you haven't
173already installed SDK Tools r11 into your SDK, use the Android SDK and AVD Manager to do
174so.</dd>
175
176<dt>Visual Refactoring:</dt>
177<dd>
178 <ul>
179 <li>"Extract Style" feature pulls out style-related attributes from your layout and extracts
180them as a new style defined in {@code styles.xml} (<a
181href="http://tools.android.com/recent/extractstylerefactoring">more info</a>).</li>
182 <li>"Wrap in Container" feature lets you select a group of views then surround them
183 in a new layout (a new view group, such as a LinearLayout), and transfers namespace and layout
184 parameters to the new parent (<a
185href="http://tools.android.com/recent/newrefactoringswrapinchangelayoutchangewidget">more
186info</a>).</li>
187 <li>"Change Layout" feature changes layouts from one type
188 to another, and can also flatten a layout hierarchy (<a
189href="http://tools.android.com/recent/newrefactoringswrapinchangelayoutchangewidget">more
190info</a>).</li>
191 <li>"Change Widget Type" feature changes the type of the
192 selected views to a new type. Also, a new selection context menu
193 in the visual layout editor makes it easy to select siblings as
194 well as views anywhere in the layout that have the same type (<a
195href="http://tools.android.com/recent/newrefactoringswrapinchangelayoutchangewidget">more
196info</a>).</li>
197 <li>"Extract as Include" feature finds identical collections of views
198 in other layouts and offers to combine them into a single layout that you can then include in
199 each layout (<a
200href="http://tools.android.com/recent/extractasincludeimprovements">more info</a>).</li>
201 <li>Quick Assistant in Eclipse can be invoked
202 from the XML editor (with Ctrl-1) to apply any of the above
203 refactorings (and Extract String) to the current selection (<a
204href="http://tools.android.com/recent/refactoringquickassistant">more info</a>).</li>
205 </ul>
206</dd>
207
208<dt>Visual Layout Editor:</dt>
209<dd>
210 <ul>
211 <li>This is the update to the layout editor you've been waiting for! It includes (almost) all
212the goodies demonstrated at Google I/O. <a href="http://www.youtube.com/watch?v=Oq05KqjXTvs">Watch
213the video</a> on YouTube.</li>
214 <li>The palette now supports different configurations for supported widgets. That is, a single
215view is presented in various different configurations that you can drag into your layout. For
216example, there is a <em>Text Fields</em> palette category where you can drag an {@link
217android.widget.EditText} widget in as a password field, an e-mail field, a phone field, or other
218types of text boxes. Similarly, {@link android.widget.TextView} widgets are preconfigured
219with large, normal and small theme sizes, and {@link android.widget.LinearLayout} elements are
220preconfigured in horizontal and vertical configurations (<a
221href="http://tools.android.com/recent/multipletextfieldandlayouttypes">more info</a>).</li>
222 <li>The palette supports custom views. You can pick up any custom
223 implementations of the View class you've created in your project or from included libraries and
224drag them into your layout (<a
225href="http://tools.android.com/recent/customviewsinthepalette">more info</a>).</li>
226 <li>Fragments are available in the palette for placement in your layout. In the tool, you can
227choose which layout to show rendered for a given fragment tag. Go to declaration works for fragment
228classes (<a href="http://tools.android.com/recent/fragmentsupport">more info</a>).</li>
229 <li>The layout editor automatically applies a "zoom to fit" for newly
230 opened files as well as on device size and orientation changes to
231 ensure that large layouts are always fully visible unless you
232 manually zoom in.</li>
233 <li>You can drop in an {@code &lt;include&gt;} element from the palette, which will pop up
234 a layout chooser. When you select the layout to include, it is added with an {@code
235&lt;include&gt;}. Similarly, dropping images or image buttons will pop up image
236 resource choosers (<a
237href="http://tools.android.com/recent/includetagdropsupport">more info</a>).</li>
238 <li>The configuration chooser now applies the "Render Target" and
239 "Locale" settings project wide, making it trivial to check the
240 layouts for different languages or render targets without having
241 to configure these individually for each layout.</li>
242 <li>The layout editor is smarter about picking a default theme to
243 render a layout with, consulting factors like theme registrations
244 in the manifest, the SDK version, and other factors.</li>
245 <li>The layout editor is smarter about picking a default configuration to render a layout
246with, defaulting to the currently visible configuration in the previous file. It also considers the
247SDK target to determine whether to default to a tablet or phone screen size.</li>
248 <li>Basic focus support. The first text field dropped in a layout is assigned focus, and there
249are <strong>Request Focus</strong> and <strong>Clear Focus</strong> context menu items on text
250fields to change the focus.</li>
251 </ul>
252</dd>
253
254<dt>XML editors:</dt>
255<dd>
256<ul>
257 <li>Code completion has been significantly improved. It now works
258 with {@code &lt;style&gt;} elements, completes dimensional units,
259 sorts resource paths in values based on the attribute name, and more. There are also many fixes to
260handle text replacement (<a
261href="http://tools.android.com/recent/xmlcodecompletionimprovements">more info</a>).</li>
262 <li>AAPT errors are handled better. They are now underlined for the
263 relevant range in the editor, and a new quickfix makes it trivial
264 to create missing resources.</li>
265 <li>Code completion for drawable, animation and color XML files (<a
266href="http://tools.android.com/recent/codecompletionfordrawablescolorsandanimationfiles">more
267info</a>).</li>
268</ul>
269</dd>
270
271<dt>DDMS:</dt>
272<dd>
273<ul>
274 <li>"New Folder" action in the File Explorer.</li>
275 <li>The screenshot dialog will add timestamps to the filenames and preserve the orientation on
276snapshot refresh.</li>
277</ul>
278</dd>
279
280<dt>General notes:</dt>
281<dd>
282 <ul>
283 <li>TraceView supports zooming with the mouse-wheel in the timeline.</li>
284 <li>The New Android Project wizard now supports Eclipse working sets.</li>
285 </ul>
286</dd>
287</dl>
288<p>More information about tool changes are available on the <a
289href="http://tools.android.com/recent">Android Tools Project Site</a>.</p>
290</div>
291</div>
292
293
Robert Ly205d1c32011-06-28 13:13:14 -0700294
295
296
Scott Main25d0b9f2011-05-26 14:12:54 -0700297<div class="toggleable closed">
298 <a href="#" onclick="return toggleDiv(this)">
299 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px"
300width="9px" />
Scott Main7b013bb2011-03-14 14:17:31 -0700301ADT 10.0.1</a> <em>(March 2011)</em>
302 <div class="toggleme">
303
304<dl>
305
306<dt>Dependencies:</dt>
307
308<dd>ADT 10.0.1 is designed for use with SDK Tools r10. If you haven't
309already installed SDK Tools r10 into your SDK, use the Android SDK and AVD Manager to do
310so.</dd>
311
312<dt>General notes:</dt>
313<dd>
314 <ul>
315 <li>Temporary work-around to resolve the rare cases in which the layout editor will
316not open.</li>
317 <li>Fix issue in which ADT 10.0.0 would install on Eclipse 3.4 and lower, even though ADT
318requires Eclipse 3.5 or higher (as of 10.0.0).</li>
319 </ul>
320</dd>
321</dl>
322</div>
323</div>
324
325
326
327<div class="toggleable closed">
328 <a href="#" onclick="return toggleDiv(this)">
329 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px"
330width="9px" />
Robert Lyccea5d22011-02-11 14:59:36 -0800331ADT 10.0.0</a> <em>(February 2011)</em>
332 <div class="toggleme">
333
334<dl>
335
336<dt>Dependencies:</dt>
337
338<dd>ADT 10.0.0 is designed for use with SDK Tools r10. If you haven't
339already installed SDK Tools r10 into your SDK, use the Android SDK and AVD Manager to do
340so.</dd>
341
342<dt>General notes:</dt>
343<dd>
344 <ul>
345 <li>The tools now automatically generate Java Programming Language source files (in the <code>gen/</code> directory) and
346 bytecode (in the <code>res/raw/</code> directory) from your <code>.rs</code> files.</li>
Robert Lya0ef3502011-02-15 16:08:03 -0800347 <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 -0800348 <li>Traceview is now integrated into the Eclipse UI (<a href="http://tools.android.com/recent/traceviewineclipse">details</a>).</li>
349 <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 -0800350 and allows you jump to specific items such as string translations or <code>onClick</code> handlers
351 (<a href="http://tools.android.com/recent/gotodeclarationimprovements">details</a>).</li>
352 <li>The Resource Chooser can create items such as dimensions, integers, ids, and booleans
353 (<a href="http://tools.android.com/recent/resourcechoosercannowcreatearbitraryvalues">details</a>).</li>
Robert Lyccea5d22011-02-11 14:59:36 -0800354 <li>Improvements to the Visual Layout Editor:
355 <ul>
356 <li>A new Palette with categories and rendering previews
357 (<a href="http://tools.android.com/recent/newpalette">details</a>).</li>
Robert Lya0ef3502011-02-15 16:08:03 -0800358 <li>A Layout Actions bar that provides quick access to common layout operations
359 (<a href="http://tools.android.com/recent/layoutactionsbar">details</a>).</li>
Robert Lyccea5d22011-02-11 14:59:36 -0800360 <li>When the Android 3.0 rendering library is selected, layouts render more like they do on devices.
361 This includes rendering of status and title bars to more accurately reflect the actual
Robert Lya0ef3502011-02-15 16:08:03 -0800362 screen space available to applications
363 (<a href="http://tools.android.com/recent/systembarandactionbar">details</a>).</li>
Robert Lyccea5d22011-02-11 14:59:36 -0800364 <li>Zoom improvements such as fit to view, persistent scale, and keyboard access.
365 (<a href="http://tools.android.com/recent/zoomimprovements">details</a>).</li>
Robert Lya0ef3502011-02-15 16:08:03 -0800366 <li>Further improvements to <code>&lt;merge&gt;</code> layouts, as well as layouts with gesture overlays
367 (<a href="http://tools.android.com/recent/improvedsupportformergetags">details</a>).</li>
Robert Lyccea5d22011-02-11 14:59:36 -0800368 <li>Improved rendering error diagnostics.</li>
369 </ul>
370 </li>
371 </ul>
372</dd>
373</dl>
374</div>
375</div>
376
377<div class="toggleable closed">
378 <a href="#" onclick="return toggleDiv(this)">
379 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px"
380width="9px" />
Robert Lyedc2aac2011-01-14 16:25:09 -0800381ADT 9.0.0</a> <em>(January 2011)</em>
382 <div class="toggleme">
383
384<dl>
385
386<dt>Dependencies:</dt>
387
388<dd>ADT 9.0.0 is designed for use with SDK Tools r9. If you haven't
389already installed SDK Tools r9 into your SDK, use the Android SDK and AVD Manager to do
390so.</dd>
391
392<dt>General notes:</dt>
393<dd>
394 <ul>
395 <li>"Go To Declaration" hyperlink support: You can jump directly from code references (such as
396 <code>R.id.main</code>) to the corresponding XML declaration, or from XML attributes (such as
397 <code>@string</code>) to the corresponding resource definition, or from manifest XML
398 registrations to activities and services.</li>
399 <li>Improvements were made to name refactoring.</li>
400 <li>AVDs now automatically save their state, so they can restart almost instantly. You can enable this feature when
401 creating an AVD or by editing an AVD with the AVD Manager.</li>
402 <li>Improvements to the Visual Layout Editor:
403 <ul>
404 <li>Support for rendering targets: You can now choose an arbitrary Android platform to
405 render the current page, regardless of the project's minimum platform. This makes it
406 easy to verify the layout and appearance of your activity on different versions of
407 the platform.
408 </li>
409 <li>Improved support for empty and nested layouts: Dragging items over nested and
410 invisible layouts automatically enlarges and highlights these layouts, so that they
411 can receive drops.
412 </li>
413 <li>XML formatting improvements: The editor generates cleaner XML and you can now enable
414 XML auto-formatting in the <strong>Preferences</strong> menu.</li>
415 <li>Improved Outline labels: The Outline tab now displays additional information about each
416 View. Textual Views display a snippet of the actual text. Views with a source
417 (such as ImageView) displays the resource name. Included Views display the name of the View.
418 </li>
419 <li>When you right click a View in the Layout Editor,
420 the context menu now contains <strong>Edit ID...</strong> and <strong>Edit Text...</strong>
421 items. The <strong>Properties...</strong> context menus now list all of the properties and
422 provide a way to edit them
423 (<a href="http://tools.android.com/recent/editidtextandotherpropertiesviamenu">Details</a>).
424 </li>
425 <li>The layout editor now properly handles
426 <a href="{@docRoot}guide/topics/resources/layout-resource.html#include-element"><code>&lt;include&gt;</code></a>
427 and <a href="{@docRoot}guide/topics/resources/layout-resource.html#merge-element"><code>&lt;merge&gt;</code></a>
428 tags (<a href="http://tools.android.com/recent/supportforincludeandmerge">Details</a>).</li>
429 <li>"Extract as Include" refactoring: The Layout Editor has a new refactoring that allows
430 you to select one or more views in a layout, and extract it into a separate layout
431 (<a href="http://tools.android.com/recent/extractasincluderefactoring">Details</a>).</li>
432 <li>Improved diagnostics for class loading and rendering errors: Class loading and rendering
433 error messages are more useful and provide better information about the root cause of the
434 error.</li>
435 <li>Improved error handling to prevent drag and reordering operations from adding children
436 into an {@link android.widget.AdapterView}.</li>
437 <li>Outline reordering: Reordering your views in the Outline tab is much easier
438 (<a href="http://tools.android.com/recent/outlineimprovements">Details</a>).</li>
439 <li>Fix for keybinding bug where keyboard shortcuts did not work (Issues
440 <a href="http://code.google.com/p/android/issues/detail?id=13231">13231</a> and
441 <a href="http://code.google.com/p/android/issues/detail?id=13134">13134</a>).</li>
442 <li>Fix for problems with Custom layout attribute menu (Issue
443 <a href="http://code.google.com/p/android/issues/detail?id=13134">13134</a>).</li>
444 <li>Automatic configuration for various view types: Certain views have properties configured
445 by default. For example, the width of an {@link android.widget.EditText} object is set to
446 <code>match_parent</code> when added to a vertical {@link android.widget.LinearLayout}
447 or a default image is added to an {@link android.widget.ImageButton}.</li>
448 <li>Previews during dragging: Dragging from the palette or dragging within the layout editor
449 now shows live previews of the dragged item.</li>
450 <li>Navigation improvements: In the Layout Editor, double-clicking Views jumps to the
451 corresponding XML element. In the Outline view, double-clicking opens the Properties view.</li>
452 <li>The editor has Honeycomb style animation preview support.</li>
453 <li>Improved rendering support for various Views (such as TabHosts and SlidingDrawers) in
454 Honeycomb (Issues <a href="http://code.google.com/p/android/issues/detail?id=3162">3162</a>
455 and <a href="http://code.google.com/p/android/issues/detail?id=13092">13092</a>).</li>
456 <li>Included layouts can be rendered and edited in the context of the layouts that include
457 them. From a layout using an <a href="{@docRoot}guide/topics/resources/layout-resource.html#include-element">
458 <code>&lt;include&gt;</code></a> tag, double-clicking on the
459 <a href="{@docRoot}guide/topics/resources/layout-resource.html#include-element">
460 <code>&lt;include&gt;</code></a> element edits the referenced layout in the context of the
461 current layout. Additionally, when editing a layout that is included by other layouts,
462 you can quickly change between context layouts, by right clicking in the editor and choosing
463 <strong>Show included in...</strong>. This feature is only available in Honeycomb.</li>
464 </ul>
465 </li>
466 <li>This release fixes many other bugs, but the most important ones are listed below:
467 <ul>
468 <li>Fixed issue that prevented launching debug builds on productions devices when
469 <code>debuggable=true</code> was not set in the Android manifest.</li>
470 <li>The LogCat view in DDMS properly handles UTF-8 characters.</li>
471 <li>The SDK Manager is more reliable on Windows
472 (<a href="http://tools.android.com/recent/sdkmanagerfixes">Details</a>).</li>
473 <li>A JUnit initialization bug that prevented you from working with JUnit tests was fixed
474 (Issue <a href="http://code.google.com/p/android/issues/detail?id=12411">12411</a>).</li>
475 </ul>
476</li>
477 </ul>
478</dd>
479</dl>
480</div>
481</div>
482
483
484
485
486<div class="toggleable closed">
487 <a href="#" onclick="return toggleDiv(this)">
488 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px"
489width="9px" />
Scott Main92b03082010-12-14 17:55:27 -0800490ADT 8.0.1</a> <em>(December 2010)</em>
491 <div class="toggleme">
492
493<dl>
494
495<dt>Dependencies:</dt>
496
497<p><p>ADT 8.0.1 is designed for use with SDK Tools r8. If you haven't
498already installed SDK Tools r8 into your SDK, use the Android SDK and AVD Manager to do
499so.</p></dd>
500
501<dt>General notes:</dt>
502<dd>
503<ul>
504 <li>This is a quick follow-up to ADT 8.0.0 to fix some bugs.</li>
505 <li>Fixes an issue in which projects failed to compile, citing a dex error.</li>
506 <li>Better ProGuard error reporting when exporting applications for release.</li>
507</ul>
508<p>Also see the recent release notes for 8.0.0, below.</p>
509</dd>
510</dl>
Robert Lyedc2aac2011-01-14 16:25:09 -0800511</div>
Scott Main92b03082010-12-14 17:55:27 -0800512</div>
513
514
515<div class="toggleable closed">
516 <a href="#" onclick="return toggleDiv(this)">
517 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px"
518width="9px" />
Dirk Dougherty9f7580d2010-10-26 09:29:03 -0700519ADT 8.0.0</a> <em>(December 2010)</em>
Dirk Dougherty9a97aaf2010-09-23 11:48:54 -0700520 <div class="toggleme">
521
Scott Mainc0c0c422010-11-05 15:23:36 -0700522<dl>
Dirk Dougherty9a97aaf2010-09-23 11:48:54 -0700523
Scott Mainc0c0c422010-11-05 15:23:36 -0700524<dt>Dependencies:</dt>
525
Dirk Dougherty9f7580d2010-10-26 09:29:03 -0700526<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 -0700527already installed SDK Tools r8 into your SDK, use the Android SDK and AVD Manager to do
528so.</p></dd>
529
530<dt>General notes:</dt>
531<dd>
532<ul>
533 <li>New version number scheme that follows the SDK Tools revision number. The major version
534number for your ADT plugin should now always match the revision number of your SDK Tools. For
535example, ADT 8.x is for SDK Tools r8.</li>
536 <li>Support for true debug build. You no longer need to change the value of the
537 <code>debuggable</code> attribute in the Android Manifest.
538 <p>Incremental builds automatically insert <code>debuggable="true"</code>, but if you perform
539 "export signed/unsigned application package", ADT does <em>not</em> insert it.
540 If you manually set <code>debuggable="true"</code> in the manifest file, then release builds will
541 actually create a debug build (it does not remove it if you placed it there).</p></li>
Scott Main60c4e032011-01-07 14:48:18 -0800542 <li>Automatic <a href="{@docRoot}guide/developing/tools/proguard.html">ProGuard</a> support in
543 release builds. For it to work, you need to have a <code>proguard.config</code>
544 property in the <code>default.properties</code> file that points to a ProGuard config file.</li>
Scott Mainc0c0c422010-11-05 15:23:36 -0700545 <li>Completely rewritten Visual Layout Editor. (This is still a work in progress.) Now includes:
546 <ul>
547 <li>Full drag and drop from palette to layout for all Layout classes.</li>
548 <li>Move widgets inside a Layout view, from one Layout view to another and from one layout file to another.</li>
549 <li>Contextual menu with enum/flag type properties.</li>
550 <li>New zoom controls.</li>
551 </ul></li>
552 <li>New HierarchyViewer plug-in integrated in Eclipse.</li>
553 <li>Android launch configurations don't recompile the whole workspace on launch anymore.</li>
554 <li><code>android.jar</code> source and javadoc location can now be configured.</li>
Dirk Dougherty9a97aaf2010-09-23 11:48:54 -0700555</ul>
556</dd>
Scott Mainc0c0c422010-11-05 15:23:36 -0700557</dl>
558 </div>
559</div>
560
561
562<div class="toggleable closed">
563 <a href="#" onclick="return toggleDiv(this)">
564 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
565ADT 0.9.9</a> <em>(September 2010)</em>
566 <div class="toggleme">
Dirk Dougherty9a97aaf2010-09-23 11:48:54 -0700567
568<dl>
569
570<dt>Dependencies:</dt>
571
572<dd><p>ADT 0.9.9 replaces ADT 0.9.8 and is designed for use with SDK Tools r7
573and later. ADT 0.9.9 includes the ADT 0.9.8 features as well as an important
574bugfix, so we recommend that you upgrade as soon as possible. If you haven't
575already installed SDK Tools r7 into your SDK, use the Android SDK Manager to do
576so.</p></dd>
577
578<dt>General notes:</dt>
579<dd>
580<ul>
581<li>Fixes a problem in project import, in which source files were deleted in some cases.</li>
582<li>Includes all other ADT 0.9.8 features (see below).</li>
583</ul>
584</dd>
585</dl>
586 </div>
587</div>
588
589<div class="toggleable closed">
590 <a href="#" onclick="return toggleDiv(this)">
591 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
Dirk Dougherty74a74d32010-09-09 18:40:13 -0700592ADT 0.9.8</a> <em>(September 2010)</em>
Dirk Dougherty022171b2010-07-30 19:24:17 -0700593 <div class="toggleme">
594
595
596</ul>
597</dd>
598
599<dl>
600
601<dt>Dependencies:</dt>
602
Dirk Dougherty9a97aaf2010-09-23 11:48:54 -0700603<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 -0700604
605<dt>General notes:</dt>
606<dd>
607<ul>
608<li>Adds a new Action, "Rename Application Package", to the Android Tools
609contextual menu. The Action does a full application package refactoring.
610<li>Adds support for library projects that don't have a source folder
611called <code>src/</code>. There is now support for any number of source folders,
612with no name restriction. They can even be in subfolder such as
613<code>src/java</code>. If you are already working with library projects created
Scott Main081127b2010-10-29 15:56:27 -0700614in ADT 0.9.7, see <a
Robert Lyc74a69a82011-01-04 22:48:02 -0800615href="{@docRoot}guide/developing/projects/index.html#libraryMigrating">Migrating
Dirk Dougherty022171b2010-07-30 19:24:17 -0700616library projects to ADT 0.9.8</a> for important information about moving
617to the new ADT environment.</li>
618<li>Adds support for library projects that depend on other library
619projects.</li>
620<li>Adds support for additional resource qualifiers:
621<code>car</code>/<code>desk</code>, <code>night</code>/<code>notnight</code> and
622<code>navexposed</code>/<code>navhidden</code>.</li>
623<li>Adds more device screen types in the layout editor. All screen
Scott Main081127b2010-10-29 15:56:27 -0700624resolution/density combinations listed in the <a
Dirk Dougherty022171b2010-07-30 19:24:17 -0700625href="{@docRoot}guide/practices/screens_support.html#range">Supporting
626Multiple Screens</a> are now available.</li>
627<li>Fixes problems with handling of library project names that
628contain characters that are incompatible with the Eclipse path variable.
629Now properly sets up the link between the main project and the library
630project.</li>
631</ul>
632</dd>
633</dl>
634 </div>
635</div>
636
637
638<div class="toggleable closed">
639 <a href="#" onclick="return toggleDiv(this)">
Dirk Dougherty0d1b0812010-04-07 17:05:16 -0700640 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
Dirk Doughertyc7c7afd2010-05-24 09:07:14 -0700641ADT 0.9.7</a> <em>(May 2010)</em>
Dirk Dougherty0d1b0812010-04-07 17:05:16 -0700642 <div class="toggleme">
643
644<dl>
645<dt>Library projects:</dt>
646<dd>
647<p>The ADT Plugin now supports the use of <em>library projects</em> during
648development, a capability that lets you store shared Android application
649code and resources in a separate development project. You can then reference the
650library project from other Android projects and, at build time, the tools
651compile the shared code and resources as part of the dependent applications.
652More information about this feature is available in the <a
Robert Lyc74a69a82011-01-04 22:48:02 -0800653href="{@docRoot}guide/developing/projects/index.html#LibraryProjects">Creating and Managing Projects</a> document. </p>
Scott Main081127b2010-10-29 15:56:27 -0700654<p>If you are not developing in Eclipse, <a
655href="tools-notes.html">SDK Tools r6</a> provides the equivalent library
Dirk Dougherty0d1b0812010-04-07 17:05:16 -0700656project support through the Ant build system.</p>
657</dd>
658</dl>
659 </div>
660</div>
661
Dirk Dougherty022171b2010-07-30 19:24:17 -0700662
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700663<div class="toggleable closed">
664 <a href="#" onclick="return toggleDiv(this)">
665 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
666ADT 0.9.6</a> <em>(March 2010)</em>
667 <div class="toggleme">
668
669<dl>
670<dt>Dependencies:</dt>
671
Scott Main081127b2010-10-29 15:56:27 -0700672<dd><p>ADT 0.9.6 is designed for use with SDK Tools r5 and later. Before
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700673updating to ADT 0.9.6, we highly recommend that you use the Android SDK and
674AVD Manager to install SDK Tools r5 into your SDK.</p></dd>
675
676<dt>General Notes:</dt>
677<dd>
678<ul>
679<li>Editing <code>default.properties</code> outside of Eclipse will now
680automatically update the project.</li>
681<li>Loads the SDK content only when a project requires it. This will make
682Eclipse use less resources when the SDK contains many versions of Android.</li>
683<li>Resolves potential deadlock between modal dialogs, when launching ADT the
684first time with the SDK Usage panel.</li>
685<li>Fixes issues with the New Project Wizard when selecting samples.</li>
686</ul>
687</dd>
688<dt>AVD/SDK Manager:</dt>
689<dd>
690<ul>
691<li>Adds support for platform samples components.</li>
692<li>Improves support for dependency between components.</li>
693<li>AVDs now sorted by API level.</li>
694<li>The AVD creation dialog now enforces a minimum SD card size of 9MB.</li>
695<li>Prevents deletion of running AVDs.</li>
696</ul>
697</dd>
698<dt>DDMS:</dt>
699<dd>
700<ul>
701<li>DDMS plug-in now contains the Allocation Tracker view.</li>
702<li>New action in the Logcat view: "Go to problem" lets you go directly from an
703exception trace output to the code.</li>
704</ul>
705</dd>
706<dt>Editors:</dt>
707<dd>
708<ul>
709<li>Explode mode in the Visual Layout Editor adds a margin to all layout objects
710so that it's easier to see embedded or empty layouts.</li>
711<li>Outline mode in the Visual Layout Editor draws layout outline to make it
712easier to see layout objects.</li>
713<li>Several fixes in the configuration selector of the Visual Layout
714Editor.</li>
715</ul>
716</dd>
717<dt>Application launching:</dt>
718<dd>
719<ul>
720<li>Applications launched from ADT now behave as if they were clicked from the
721Home screen.</li>
722<li>Fixes issue where add-on with no optional library would not show up as valid
723targets for application launches.</li>
724<li>Resolves possible crash when launching applications.</li>
725</ul>
726</dd>
727</dl>
728 </div>
729</div>
730
731<div class="toggleable closed">
732 <a href="#" onclick="return toggleDiv(this)">
733 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
734ADT 0.9.5</a> <em>(December 2009)</em>
735 <div class="toggleme">
736<dl>
737<dt>Dependencies:</dt>
738
739<dd><p>ADT 0.9.5 requires features provided in SDK Tools r4 or higher. If you install
740ADT 0.9.5, which is highly recommended, you should use the Android SDK and AVD
Scott Main92b03082010-12-14 17:55:27 -0800741Manager to download the latest SDK Tools into your SDK. For more information,
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700742see <a href="{@docRoot}sdk/adding-components.html">Adding SDK Components</a>.</p>
743</dd>
744
745<dt>General Notes:</dt>
746<dd>
747<ul>
748<li>AVD Launch dialog now shows scale value.</li>
749<li>Fixes potential NPE in SDK Manager on AVD launch, for older AVD with no skin name specified.</li>
750<li>Fixes XML validation issue in on older Java versions.</li>
751<li>.apk packaging now properly ignores vi swap files as well as hidden files.</li>
752</ul>
753</dd>
754</dl>
755 </div>
756</div>
757
758<div class="toggleable closed">
759 <a href="#" onclick="return toggleDiv(this)">
760 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
761ADT 0.9.4</a> <em>(October 2009)</em>
762 <div class="toggleme">
763<dl>
764<dt>Dependencies:</dt>
765
766<dd><p>ADT 0.9.4 requires features provided in SDK Tools r3 or higher. If you install
767ADT 0.9.4, which is highly recommended, you should use the Android SDK and AVD
768Manager to download the latest SDK Tools into your SDK. For more information,
769see <a href="{@docRoot}sdk/adding-components.html">Adding SDK Components</a>.</p>
770</dd>
771
772<dt>Project Creation Wizard:</dt>
773<dd>
774<ul>
775<li>New option to create a project from a sample by choosing it from a list.</li>
776</ul>
777</dd>
778
779<dt>Layout Editor:</dt>
780<dd>
781<ul>
782<li>Improved Configuration selector that lets you see how your layout will
783render on different devices. Default device descriptions include ADP1
784and Google Ion, while SDK add-ons can also provide new descriptions.
785A new UI allows you to create custom descriptions.</li>
786<li>Adds a new clipping toggle, to let you see your full layout even if it's
787bigger than the screen.</li>
788</ul>
789</dd>
790
791<dt>DDMS Integration:</dt>
792<dd>
793<ul>
794<li>Includes the improvements from the standlone DDMS, revision 3.</li>
795<li>Adds an option to open HPROF files into eclipse instead of writing them on
Scott Main081127b2010-10-29 15:56:27 -0700796disk. If a profiler such as MAT (<a href="http://eclipse.org/mat">Memory Analyzer
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700797Tool</a>) is installed, it'll open the file.</li>
798</ul>
799</dd>
800
801<dt>Android SDK and AVD Manager integration:</dt>
802<dd>
803<ul>
Scott Main081127b2010-10-29 15:56:27 -0700804<li>Includes the improvements from the standalone Android SDK and AVD Manager,
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700805revision 3.</li>
806</ul>
807</dd>
808</dl>
809 </div>
810</div>
811
Scott Main77847a32010-11-09 16:41:32 -0800812
813
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700814<h2 id="installing">Installing the ADT Plugin</h2>
815
816<p>The sections below provide instructions on how to download and install
817ADT into your Eclipse environment. If you encounter problems, see the <a
818href="#troubleshooting">Troubleshooting</a> section.</p>
819
Scott Main77847a32010-11-09 16:41:32 -0800820
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700821<h3 id="preparing">Preparing Your Development Computer</h3>
822
823<p>ADT is a plugin for the Eclipse IDE. Before you can install or use ADT,
824you must have a compatible version of Eclipse installed on your development
Robert Ly2a36cf42011-03-09 10:33:20 -0800825computer. Check the <a
826href="requirements.html">System Requirements</a> document for
827a list of Eclipse versions that are compatible with the Android SDK.</li></p>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700828
829<ul>
830<li>If Eclipse is already installed on your computer, make sure that it is
Robert Ly2a36cf42011-03-09 10:33:20 -0800831a version that is compatible with ADT and the Android SDK.
832
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700833<li>If you need to install or update Eclipse, you can download it from this
834location:
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700835
Dirk Dougherty22558d02009-12-10 16:25:06 -0800836<p style="margin-left:2em;"><a href=
837"http://www.eclipse.org/downloads/">http://www.eclipse.org/downloads/</a>
838</p>
839
Robert Ly2a36cf42011-03-09 10:33:20 -0800840<p>The "Eclipse Classic" version is recommended. Otherwise, a Java or RCP
Scott Main77847a32010-11-09 16:41:32 -0800841version of Eclipse is recommended.</p></li>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700842</ul>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700843
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700844<p>Additionally, before you can configure or use ADT, you must install the
845Android SDK starter package, as described in <a
Robert Lyef13d022010-07-12 14:32:22 -0700846href="installing.html#Installing">Downloading the SDK Starter Package</a>.
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700847Specifically, you need to install a compatible version of the Android SDK Tools
848and at least one development platform. To simplify ADT setup, we recommend
849installing the Android SDK prior to installing ADT. </p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700850
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700851<p>When your Eclipse and Android SDK environments are ready, continue with the
852ADT installation as described in the steps below. </p>
853
854<h3 id="downloading">Downloading the ADT Plugin</h3>
855
Robert Ly2a36cf42011-03-09 10:33:20 -0800856<p>Use the Update Manager feature of your Eclipse installation to install the latest
Bill Gruber604917b2011-04-04 12:11:49 -0700857revision of ADT on your development computer.<>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700858
859<p>Assuming that you have a compatible version of the Eclipse IDE installed, as
860described in <a href="#preparing">Preparing for Installation</a>, above, follow
861these steps to download the ADT plugin and install it in your Eclipse
Robert Ly2a36cf42011-03-09 10:33:20 -0800862environment.</p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700863
Robert Ly2a36cf42011-03-09 10:33:20 -0800864
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700865<ol>
Scott Main77847a32010-11-09 16:41:32 -0800866 <li>Start Eclipse, then select <strong>Help</strong> &gt; <strong>Install New
867Software...</strong>.</li>
868 <li>Click <strong>Add</strong>, in the top-right corner.</li>
869 <li>In the Add Repository dialog that appears, enter "ADT Plugin" for the <em>Name</em> and the
870following URL for the <em>Location</em>:
871 <pre>https://dl-ssl.google.com/android/eclipse/</pre>
Bill Gruber604917b2011-04-04 12:11:49 -0700872 </li>
873 <li>Click <strong>OK</strong>
874 <p>Note: If you have trouble acquiring the plugin, try using "http" in the Location URL,
875instead of "https" (https is preferred for security reasons).</p></li>
876 <li>In the Available Software dialog, select the checkbox next to Developer Tools and click
877<strong>Next</strong>.</li>
Scott Main77847a32010-11-09 16:41:32 -0800878 <li>In the next window, you'll see a list of the tools to be downloaded. Click
879<strong>Next</strong>. </li>
Bill Gruber604917b2011-04-04 12:11:49 -0700880 <li>Read and accept the license agreements, then click <strong>Finish</strong>.
881 <p>Note: If you get a security warning saying that the authenticity or validity of
882the software can't be established, click <strong>OK</strong>.</p></li>
Scott Main77847a32010-11-09 16:41:32 -0800883 <li>When the installation completes, restart Eclipse. </li>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700884</ol>
885
Scott Main369c1c12010-12-07 11:17:00 -0800886<h3 id="configuring">Configuring the ADT Plugin</h3>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700887
Bill Gruber604917b2011-04-04 12:11:49 -0700888<p>After you've successfully downloaded the ADT as described above, the next step
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700889is to modify your ADT preferences in Eclipse to point to the Android SDK directory:</p>
890
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700891<ol>
892 <li>Select <strong>Window</strong> &gt; <strong>Preferences...</strong> to open the Preferences
893 panel (Mac OS X: <strong>Eclipse</strong> &gt; <strong>Preferences</strong>).</li>
Bill Gruber604917b2011-04-04 12:11:49 -0700894 <li>Select <strong>Android</strong> from the left panel.</li>
895 <p>You may see a dialog asking whether you want to send usage statistics to Google. If so,
896make your choice and click <strong>Proceed</strong>. You cannot continue with this procedure until
897you click <strong>Proceed</strong>.</p>
Scott Main081127b2010-10-29 15:56:27 -0700898 <li>For the <em>SDK Location</em> in the main panel, click <strong>Browse...</strong> and
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700899 locate your downloaded SDK directory. </li>
900 <li>Click <strong>Apply</strong>, then <strong>OK</strong>.</li>
901</ol>
902
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700903<p>Done! If you haven't encountered any problems, then the installation is
Scott Main081127b2010-10-29 15:56:27 -0700904complete. If you're installing the Android SDK for the first time, return to <a
905href="{@docRoot}sdk/installing.html#InstallingADT">Installing the SDK</a> to complete your setup.
906</p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700907
908
909<h3 id="troubleshooting">Troubleshooting ADT Installation</h3>
910
911<p> If you are having trouble downloading the ADT plugin after following the
912steps above, here are some suggestions: </p>
913
914<ul>
915 <li>If Eclipse can not find the remote update site containing the ADT plugin,
916try changing the remote site URL to use http, rather than https. That is, set
917the Location for the remote site to:
Scott Main081127b2010-10-29 15:56:27 -0700918<pre>http://dl-ssl.google.com/android/eclipse/</pre></li>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700919<li>If you are behind a firewall (such as a corporate firewall), make sure that
Scott Main77847a32010-11-09 16:41:32 -0800920you have properly configured your proxy settings in Eclipse. In Eclipse,
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700921you can configure proxy information from the main Eclipse menu in
922<strong>Window</strong> (on Mac OS X, <strong>Eclipse</strong>) &gt;
923<strong>Preferences</strong> &gt; <strong>General</strong> &gt; <strong>Network
924Connections</strong>.</li>
925</ul>
926
927<p> If you are still unable to use Eclipse to download the ADT plugin as a
928remote update site, you can download the ADT zip file to your local machine and
929manually install it:</p>
930
931<ol>
932 <li>Download the current ADT Plugin zip file from the table below (do not unpack it).
933
934 <table class="download">
935 <tr>
936 <th>Name</th>
937 <th>Package</th>
938 <th>Size</th>
939 <th>MD5 Checksum</th>
940 </tr>
941 <tr>
942 <td>ADT {@adtZipVersion}</td>
943 <td>
944 <a href="http://dl.google.com/android/{@adtZipDownload}">{@adtZipDownload}</a>
945 </td>
946 <td>{@adtZipBytes} bytes</td>
947 <td>{@adtZipChecksum}</td>
948 </tr>
949</table>
950</li>
951
952</li>
Scott Main081127b2010-10-29 15:56:27 -0700953 <li>Follow steps 1 and 2 in the <a href="#installing">default install
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700954 instructions</a> (above).</li>
955 <li>In the Add Site dialog, click <strong>Archive</strong>.</li>
956 <li>Browse and select the downloaded zip file.</li>
Scott Main77847a32010-11-09 16:41:32 -0800957 <li>Enter a name for the local update site (e.g.,
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700958 "Android Plugin") in the "Name" field.</li>
959 <li>Click <strong>OK</strong>.
Scott Main081127b2010-10-29 15:56:27 -0700960 <li>Follow the remaining procedures as listed for
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700961 <a href="#installing">default installation</a> above,
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700962 starting from step 4.</li>
963</ol>
964
965<p>To update your plugin once you've installed using the zip file, you will have
966to follow these steps again instead of the default update instructions.</p>
967
968<h4>Other install errors</h4>
969
Scott Main081127b2010-10-29 15:56:27 -0700970<p>Note that there are features of ADT that require some optional
971Eclipse components (for example, WST). If you encounter an error when
972installing ADT, your Eclipse installion might not include these components.
973For information about how to quickly add the necessary components to your
974Eclipse installation, see the troubleshooting topic
975<a href="{@docRoot}resources/faq/troubleshooting.html#installeclipsecomponents">ADT
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700976Installation Error: "requires plug-in org.eclipse.wst.sse.ui"</a>.</p>
977
978<h4>For Linux users</h4>
Scott Main081127b2010-10-29 15:56:27 -0700979<p>If you encounter this error when installing the ADT Plugin for Eclipse:
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700980<pre>
981An error occurred during provisioning.
982Cannot connect to keystore.
983JKS</pre>
984<p>
985...then your development machine lacks a suitable Java VM. Installing Sun
986Java 6 will resolve this issue and you can then reinstall the ADT
987Plugin.</p>
988
989
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700990<h2 id="updating">Updating the ADT Plugin</h2>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700991
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700992<p>From time to time, a new revision of the ADT Plugin becomes available, with
993new features and bug fixes. Generally, when a new revision of ADT is available,
994you should update to it as soon as convenient. </p>
995
996<p>In some cases, a new revision of ADT will have a dependency on a specific
997revision of the Android SDK Tools. If such dependencies exist, you will need to
998update the SDK Tools component of the SDK after installing the new revision of
999ADT. To update the SDK Tools component, use the Android SDK and AVD Manager, as
1000described in <a href="adding-components.html">Adding SDK Components</a>.</p>
1001
1002<p>To learn about new features of each ADT revision and also any dependencies on
1003the SDK Tools, see the listings in the <a href="#notes">Revisions</a>
Scott Main081127b2010-10-29 15:56:27 -07001004section. To determine the version currently installed, open the
Dirk Dougherty7b229ef2010-03-26 17:32:26 -07001005Eclipse Installed Software window using <strong>Help</strong>
Scott Main081127b2010-10-29 15:56:27 -07001006&gt; <strong>Software Updates</strong> and refer to the version listed for
Dirk Dougherty7b229ef2010-03-26 17:32:26 -07001007"Android Development Tools".</p>
1008
Scott Main081127b2010-10-29 15:56:27 -07001009<p>Follow the steps below to check whether an update is available and, if so,
Dirk Dougherty7b229ef2010-03-26 17:32:26 -07001010to install it. </p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -07001011
Dirk Doughertyee58d1b2009-10-16 15:25:15 -07001012<ol>
Scott Main77847a32010-11-09 16:41:32 -08001013 <li>Select <strong>Help</strong> &gt; <strong>Check for Updates</strong>.
1014 <p>If there are no updates available, a dialog will say so and you're done.</p></li>
1015 <li>If there are updates available, select Android DDMS, Android Development Tools,
1016 and Android Hierarchy Viewer, then click <strong>Next</strong>.</li>
1017 <li>In the Update Details dialog, click <strong>Next</strong>.</li>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -07001018 <li>Read and accept the license agreement and then click <strong>Finish</strong>.
Scott Main081127b2010-10-29 15:56:27 -07001019 This will download and install the latest version of Android DDMS and
Dirk Doughertyee58d1b2009-10-16 15:25:15 -07001020 Android Development Tools.</li>
1021 <li>Restart Eclipse.</li>
1022</ol>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -07001023
1024
Scott Main090a3dc2010-12-07 10:38:55 -08001025<p>If you encounter problems during the update, remove the existing ADT plugin from Eclipse, then
1026perform a fresh installation, using the instructions for <a href="#installing">Installing the ADT
1027Plugin</a>.</p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -07001028