OSDN Git Service

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