1page.title=ADT Plugin 2 3@jd:body 4 5<div id="qv-wrapper"> 6<div id="qv"> 7 8 <h2>See also</h2> 9 <ol> 10 <li><a href="{@docRoot}sdk/installing/installing-adt.html">Installing the Eclipse 11Plugin</a></li> 12 </ol> 13 14</div> 15</div> 16 17<p>Android Development Tools (ADT) is a plugin for the Eclipse IDE 18that is designed to give you a powerful, integrated environment in which 19to build Android applications.</p> 20 21<p>ADT extends the capabilities of Eclipse to let you quickly set up new Android 22projects, create an application UI, add packages based on the Android 23Framework API, debug your applications using the Android SDK tools, and even 24export signed (or unsigned) {@code .apk} files in order to distribute your application.</p> 25 26<p>Developing in Eclipse with ADT is highly recommended and is the fastest way 27to get started. With the guided project setup it provides, as well as tools 28integration, custom XML editors, and debug output pane, ADT gives you an 29incredible boost in developing Android applications. </p> 30 31<p>This document provides step-by-step instructions on how to download the ADT 32plugin and install it into your Eclipse development environment. Note that 33before you can install or use ADT, you must have compatible versions of both the 34Eclipse IDE and the Android SDK installed. For details, make sure to read <a 35href="{@docRoot}sdk/installing/installing-adt.html">Installing the Eclipse 36Plugin</a>. </p> 37 38<p>If you are already using ADT, this document also provides instructions on 39how to update ADT to the latest version or how to uninstall it, if necessary. 40</p> 41 42<p>For information about the features provided by the ADT plugin, such as code 43editor features, SDK tool integration, and the graphical layout editor (for drag-and-drop layout 44editing), see the <a href="{@docRoot}tools/help/adt.html">Android Developer Tools</a> 45document.</p> 46 47 48<h2 id="notes">Revisions</h2> 49 50<p>The sections below provide notes about successive releases of 51the ADT Plugin, as denoted by revision number. </p> 52 53<p>For a summary of all known issues in ADT, see <a 54href="http://tools.android.com/knownissues">http://tools.android.com/knownissues</a>.</p> 55 56 57<div class="toggle-content opened"> 58 <p><a href="#" onclick="return toggleContent(this)"> 59 <img src="{@docRoot}assets/images/triangle-opened.png" class="toggle-content-img" 60 alt=""/>ADT 21.0.1</a> <em>(December 2012)</em> 61 </p> 62 63 <div class="toggle-content-toggleme"> 64<dl> 65 <dt>Dependencies:</dt> 66 67 <dd> 68 <ul> 69 <li>Java 1.6 or higher is required for ADT 21.0.1.</li> 70 <li>Eclipse Helios (Version 3.6.2) or higher is required for ADT 21.0.1.</li> 71 <li>ADT 21.0.1 is designed for use with <a href="{@docRoot}tools/sdk/tools-notes.html">SDK 72 Tools r21.0.1</a>. If you haven't already installed SDK Tools r21.0.1 into your SDK, use the 73 Android SDK Manager to do so.</li> 74 </ul> 75 </dd> 76 77 <dt>General Notes:</dt> 78 <dd> 79 <ul> 80 <li>Build 81 <ul> 82 <li>Updated build to detect and handle package name conflicts between an application and 83 the libraries it depends on. Libraries cannot share package names unless all of them 84 share the same package name. 85 (<a href="http://code.google.com/p/android/issues/detail?id=40152">Issue 40152</a>, 86 <a href="http://code.google.com/p/android/issues/detail?id=40273">Issue 40273</a>) 87 </li> 88 <li>Added a flag to disable dex merging to deal with cases where merging could generate 89 a broken dex file. If this happens to your project, add the following setting to your 90 {@code project.properties} file: {@code dex.disable.merger=true} This setting 91 causes the build system to revert to the older, slower dex processing that does not 92 pre-dex libraries.</li> 93 </ul> 94 </li> 95 </ul> 96 </dd> 97 98 <dt>Bug fixes:</dt> 99 <dd> 100 <ul> 101 <li>Lint 102 <ul> 103 <li>Corrected check for {@code 0px} values in style XML elements. 104 (<a href="http://code.google.com/p/android/issues/detail?id=39601">Issue 39601</a>) 105 </li> 106 <li>Fixed incorrect flagging of formatting strings. 107 (<a href="http://code.google.com/p/android/issues/detail?id=39758">Issue 39758</a>) 108 </li> 109 <li>Fixed problem where {@code tools:ignore} directive in the manifest file was ignored 110 by the Lint tool. 111 (<a href="http://code.google.com/p/android/issues/detail?id=40136">Issue 40136</a>) 112 </li> 113 <li>Fixed problem with flagging a wakelock release inside a conditional. 114 (<a href="http://code.google.com/p/android/issues/detail?id=40424">Issue 40424</a>) 115 </li> 116 <li>Fixed incorrect reporting of missing {@code layout_width} and {@code layout_height} 117 XML fields. 118 (<a href="http://code.google.com/p/android/issues/detail?id=38958">Issue 38958</a>) 119 </li> 120 <li>Fixed handling of custom namespace attributes.</li> 121 <li>Added fixes for filtering out library project warnings.</li> 122 <li>Removed warnings about missing classes before a build.</li> 123 </ul> 124 </li> 125 126 <li>Android Virtual Device Manager 127 <ul> 128 <li>Fixed handling of {@code devices.xml} file in other locales. 129 (<a href="http://code.google.com/p/android/issues/detail?id=39704">Issue 39704</a>) 130 </li> 131 <li>Fixed problem where the AVD Manager would not allow you to create a new AVD using 132 the <strong>4.0" WVGA</strong> or <strong> 4.65" 720p</strong> device definitions. 133 (<a href="http://code.google.com/p/android/issues/detail?id=39939">Issue 39939</a>) 134 </li> 135 <li>Fixed problem where deleted device definitions were not removed.</li> 136 <li>Fixed incorrect screen resolution setting for the Nexus One device definition.</li> 137 <li>Fixed problem where writing of an AVD settings file does not properly escape 138 {@code \\} path characters.</li> 139 </ul> 140 </li> 141 142 <li>Layout Editor 143 <ul> 144 <li>Fixed problem where layout cannot render strings starting with {@code \@}. 145 (<a href="http://code.google.com/p/android/issues/detail?id=40222">Issue 40222</a>) 146 </li> 147 <li>Fixed preview error when using the {@code android:numColumns} attribute in a layout. 148 (<a href="http://code.google.com/p/android/issues/detail?id=21296">Issue 21296</a>) 149 </li> 150 <li>Fixed compatibility issue with IntelliJ layout preview caused by layout editor 151 deleting the {@code .android/devices.xml} file.</li> 152 <li>Added fixes to editor for {@link android.widget.GridLayout}.</li> 153 </ul> 154 </li> 155 156 <li>Added support for {@code ldrtl} and {@code ldltr} resource qualifiers.</li> 157 <li>Fixed problem where Android XML resources mistakenly get compiled into {@code *.out.xml} 158 output files, causing project errors. 159 (<a href="http://code.google.com/p/android/issues/detail?id=3767">Issue 3767</a>)</li> 160 <li>Fixed error which caused resource refresh operations to fail. 161 (<a href="http://code.google.com/p/android/issues/detail?id=39213">Issue 39213</a>)</li> 162 <li>Updated the Custom View code template handle to library projects properly.</li> 163 <li>Fixed support for library string resources ({@code strings.xml}) when exporting an 164 application that references a library with string resources. 165 (<a href="http://code.google.com/p/android/issues/detail?id=39751">Issue 39751</a>)</li> 166 <li>Fixed problem where bad AVD setting files caused Device Manager and graphical XML editors 167 to crash. 168 (<a href="http://code.google.com/p/android/issues/detail?id=40400">Issue 40400</a>)</li> 169 </ul> 170 </dd> 171 172</dl> 173</div> 174</div> 175 176<div class="toggle-content closed"> 177 <p><a href="#" onclick="return toggleContent(this)"> 178 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img" 179 alt=""/>ADT 21.0.0</a> <em>(November 2012)</em> 180 </p> 181 182 <div class="toggle-content-toggleme"> 183<dl> 184 <dt>Dependencies:</dt> 185 186 <dd> 187 <ul> 188 <li>Java 1.6 or higher is required for ADT 20.0.3.</li> 189 <li>Eclipse Helios (Version 3.6.2) or higher is required for ADT 21.0.0.</li> 190 <li>ADT 21.0.0 is designed for use with <a href="{@docRoot}tools/sdk/tools-notes.html">SDK 191 Tools r21</a>. If you haven't already installed SDK Tools r21.0.0 into your SDK, use the 192 Android SDK Manager to do so.</li> 193 </ul> 194 </dd> 195 196 <dt>General improvements:</dt> 197 <dd> 198 <ul> 199 <li>Layout Editor 200 <ul> 201 <li>Added multi-configuration editing feature that was previewed at Google I/O 202 developer tools talk in June. For an overview, see the 203 <a href="https://www.youtube.com/watch?v=Erd2k6EKxCQ">session recording</a> 204 (starting at: 20:30).</li> 205 <li>Modified the layout logic so that setting a {@link android.app.Fragment} layout or 206 a {@link android.widget.ListView} preview layout is now applied not 207 only to the current layout but to all other configurations of the same layout.</li> 208 <li>Updated the editor to include resources from library projects in the resource chooser, 209 XML code completion, Go To Declaration and other editing contexts.</li> 210 <li>Updated the editor so that it no longer forces all variations of a single 211 layout into a single editor. You can, for example, open both the landscape and portrait 212 versions of a layout as separate editors and quickly switch between them, or even 213 re-dock your editors to edit them simultaneously. If you prefer the previous behavior, 214 set the new option in <strong>Preferences > Android > Editors</strong> to use the 215 old behavior.</li> 216 <li>Improved the handling of {@link android.widget.RelativeLayout} in the layout editor, 217 so that dragging widgets around and deleting them should now result in the layout 218 working more intuitively. In particular, deleting a widget causes the constraints 219 flowing through the deleted widgets to be intelligently adjusted, and when moving 220 widgets the constraints are preserved whenever possible.</li> 221 <li>Added the ability to specify a default action in Layout Editor views, which you can 222 invoke with the <em>F2</em> key. For example, after dropping a button or text view, 223 you can press <em>F2</em> to edit its text.</li> 224 <li>Added renaming of an ID (changing the {@code android:id} attribute) by invoking the 225 <strong>Rename</strong> shortcut.</li> 226 <li>Adding a new locale is now easier with the new <strong>Add Locale...</strong> action 227 in the locale menu. In addition to creating the new values folder, it lets you edit an 228 initial set of translations for the new locale.</li> 229 <li>Updated the editor so that when a custom view (or incorrectly configured view) 230 throws an exception during initialization or painting, part of the relevant stack trace 231 is shown inline in the layout editor, and you can click on the stack frames to jump to 232 the relevant location</li> 233 <li>Improved the editor error display to show the relevant part of a stack trace 234 when a custom view throws exceptions during rendering or construction, and provides 235 hyperlinks to the stack frames.</li> 236 <li>Improved the stack trace display for exceptions for custom views that are generated 237 during rendering.</li> 238 <li>Updated the configuration chooser so that it shows full language and region names (not 239 just 2-letter codes) in menus, in the configuration dialog and other editing contexts. 240 </li> 241 <li>Improved the device menu in the configuration chooser.</li> 242 </ul> 243 </li> 244 <li>Lint 245 <ul> 246 <li>Added over 25 new lint rules for resources, locale settings, layout 247 files, incorrect use of {@link android.util.SparseArray} and 248 {@link android.os.PowerManager.WakeLock} and manifest issues.</li> 249 <li>Improved the XML export function to support the 250 <a href="https://wiki.jenkins-ci.org/display/JENKINS/Android+Lint+Plugin">Jenkins Lint 251 plugin</a>. 252 </li> 253 </ul> 254 </li> 255 <li>Editors 256 <ul> 257 <li>Modified the plugin to remember which editor mode (text or graphical) you were last 258 using for each type of editor (layout, manifest or values) and uses that mode for newly 259 opened files. This means that if you prefer to work with just XML, the editors start 260 showing you XML text editors after you have switched to them for each type of editor.</li> 261 <li>Updated XML code completion so that it completes (and shows documentation for) theme 262 references, such as {@code ?android:attr/dividerHeight}.</li> 263 </ul> 264 </li> 265 <li>Android Virtual Devices (AVD) 266 <ul> 267 <li>Added new <strong>Device Definitions</strong> tab in the AVD Manager for configuring 268 standard size and Nexus virtual devices.</li> 269 <li>Improved emulators so that they launch with a skin that is dynamically generated and 270 reflects the actual hardware configured in the AVD Manager.</li> 271 </ul> 272 </li> 273 <li>Improved the new template mechanism, cleaned up the existing templates and added 274 several new templates</li> 275 <li>Added ability to export images and frames in the Tracer for OpenGL ES tool.</li> 276 <li>Integrated the Systrace tool into the DDMS perspective.</li> 277 <li>Improved the JUnit test runner to allow a test to be run on all connected devices 278 simultaneously.</li> 279 </ul> 280 </dd> 281 282 <dt>Bug fixes:</dt> 283 <dd> 284 <ul> 285 <li>Fixed the editors so that attributes and resources specified by XML files in the 286 {@code /values} directory are validated when files are saved.</li> 287 <li>Added a workaround for a bug in Eclipse on Mac OS X 10.8 where the Property Sheet was not 288 working properly.</li> 289 </ul> 290 </dd> 291 292</dl> 293 294</div> 295</div> 296 297<div class="toggle-content closed"> 298 <p><a href="#" onclick="return toggleContent(this)"> 299 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img" 300 alt=""/>ADT 20.0.3</a> <em>(August 2012)</em> 301 </p> 302 303 <div class="toggle-content-toggleme"> 304<dl> 305 <dt>Dependencies:</dt> 306 307 <dd> 308 <ul> 309 <li>Java 1.6 or higher is required for ADT 20.0.3.</li> 310 <li>Eclipse Helios (Version 3.6.2) or higher is required for ADT 20.0.3.</li> 311 <li>ADT 20.0.3 is designed for use with <a href="{@docRoot}tools/sdk/tools-notes.html">SDK 312 Tools r20.0.3</a>. If you haven't already installed SDK Tools r20.0.3 into your SDK, use the 313 Android SDK Manager to do so.</li> 314 </ul> 315 </dd> 316 317 <dt>Bug fixes:</dt> 318 <dd> 319 <ul> 320 <li>Fixed issue with keyboard shortcuts for editors in Eclipse Juno (Version 4.x).</li> 321 <li>Fixed problem with cached download lists in SDK Manager.</li> 322 </ul> 323 </dd> 324 325</dl> 326 327</div> 328</div> 329 330 331<div class="toggle-content closed"> 332 <p><a href="#" onclick="return toggleContent(this)"> 333 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img" 334 alt=""/>ADT 20.0.2</a> <em>(July 2012)</em> 335 </p> 336 337 <div class="toggle-content-toggleme"> 338<dl> 339 <dt>Dependencies:</dt> 340 341 <dd> 342 <ul> 343 <li>Java 1.6 or higher is required for ADT 20.0.2.</li> 344 <li>Eclipse Helios (Version 3.6.2) or higher is required for ADT 20.0.2.</li> 345 <li>ADT 20.0.2 is designed for use with <a href="{@docRoot}tools/sdk/tools-notes.html">SDK 346 Tools r20.0.1</a>. If you haven't already installed SDK Tools r20.0.1 into your SDK, use the 347 Android SDK Manager to do so.</li> 348 </ul> 349 </dd> 350 351 <dt>Bug fixes:</dt> 352 <dd> 353 <ul> 354 <li>Fixed keybindings in various XML editors for Eclipse 4.x.</li> 355 <li>Fixed a bug that occurs when you try to create layout configurations that already 356 exist.</li> 357 </ul> 358 </dd> 359 360</dl> 361 362</div> 363</div> 364 365 366<div class="toggle-content closed"> 367 <p><a href="#" onclick="return toggleContent(this)"> 368 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img" 369 alt=""/>ADT 20.0.1</a> <em>(July 2012)</em> 370 </p> 371 372 <div class="toggle-content-toggleme"> 373<dl> 374 <dt>Dependencies:</dt> 375 376 <dd> 377 <ul> 378 <li>Java 1.6 or higher is required for ADT 20.0.1.</li> 379 <li>Eclipse Helios (Version 3.6.2) or higher is required for ADT 20.0.1.</li> 380 <li>ADT 20.0.1 is designed for use with <a href="{@docRoot}tools/sdk/tools-notes.html">SDK 381 Tools r20.0.1</a>. If you haven't already installed SDK Tools r20.0.1 into your SDK, use the 382 Android SDK Manager to do so.</li> 383 </ul> 384 </dd> 385 386 <dt>Bug fixes:</dt> 387 <dd> 388 <ul> 389 <li>Fixed issue in the New Project Wizard related to installation of the Support Library.</li> 390 <li>Fixed several issues with New Project Wizard related to templates.</li> 391 <li>Fixed issue with the text-based launcher icon in New Project Wizard.</li> 392 <li>Fixed issue with sticky error markers in Java files.</li> 393 <li>Fixed problem with manifest merger when exporting release {@code .apk} files.</li> 394 <li>Fixed NDK support to automatically find include path on Windows.</li> 395 <li>Fixed editor startup exception for new configurations where editor would come up blank.</li> 396 <li>Added support for {@code xxhdpi} density, which was included in API Level 16.</li> 397 <li>Fixed a bug in the {@code lint} check for unprotected broadcast receivers to ignore 398unprotected receivers for default Android actions.</li> 399 </ul> 400 </dd> 401 402</dl> 403 404</div> 405</div> 406 407<div class="toggle-content closed"> 408 <p><a href="#" onclick="return toggleContent(this)"> 409 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img" 410 alt=""/>ADT 20.0.0</a> <em>(June 2012)</em> 411 </p> 412 413 <div class="toggle-content-toggleme"> 414<dl> 415 <dt>Dependencies:</dt> 416 417 <dd> 418 <ul> 419 <li>Java 1.6 or higher is required for ADT 20.0.0.</li> 420 <li>Eclipse Helios (Version 3.6.2) or higher is required for ADT 20.0.0.</li> 421 <li>ADT 20.0.0 is designed for use with <a href="{@docRoot}sdk/tools-notes.html">SDK Tools 422 r20</a>. If you haven't already installed SDK Tools r20 into your SDK, use the Android SDK 423 Manager to do so.</li> 424 </ul> 425 </dd> 426 427 <dt>General improvements:</dt> 428 <dd> 429 <ul> 430 <li>Application Templates 431 <ul> 432 <li>Added Android application templates to allow developers to create specific types of 433applications faster, using Android-recommended best practices.</li> 434 </ul> 435 </li> 436 <li>Performance 437 <ul> 438 <li>Improved overall ADT performance and fixed memory issues. Loading SDK data 439should be up to 30% faster.</li> 440 </ul> 441 </li> 442 <li>Tracer for GLES 443 <ul> 444 <li>Added new perspective view and tools for tracing OpenGL calls for an application and 445track the visual results of each call. (<a href="{@docRoot}tools/help/gltracer.html">more info</a>)</li> 446 </ul> 447 </li> 448 <li>Lint 449 <ul> 450 <li>Added new Lint rules for manifest registrations, duplicate activity 451registrations, security checking, correct use of Toast, missing SharedPreferences commit() 452calls, Fragment class instantiation, and handler leaks.</li> 453 <li>Created tighter integration of lint with the layout editor. (<a 454href="http://tools.android.com/recent/lintfeedback">more info</a>)</li> 455 <li>Added execution of Lint tool on save option for Java files. (<a 456href="http://tools.android.com/recent/lintonsave">more info</a>)</li> 457 </ul> 458 </li> 459 <li>Layout Editor (<a href="http://tools.android.com/recent/newlayouteditorpropertysheet">more 460info</a>) 461 <ul> 462 <li>Added highlighting (in bold) for important attributes, inline preview of colors and 463images, including the corresponding resource name.</li> 464 <li>Added display of default values, when available.</li> 465 <li>Added completion of resource values and enum and flag constants.</li> 466 <li>Added support for displaying advanced properties, and nested properties for better 467categorization, for example, layout params are listed first as a single nested property.</li> 468 <li>Display Tooltips over the attribute names, not values, so they never obscure the value 469column.</li> 470 <li>Provided checkbox support for boolean values.</li> 471 <li>Added support for switching between alphabetical and natural sort orders.</li> 472 <li>Improved layout editor tool's window management for more usable editing views.</li> 473 <li>Improved the layout editor's configuration chooser header user interface.</li> 474 </ul> 475 </li> 476 <li>XML Editing 477 <ul> 478 <li>Added go to declaration support for theme references (?android:attr, ?attr:).</li> 479 <li>Improved code completion in style definitions.</li> 480 <li>Improved code completion for the {@code minSdkVersion} and {@code targetSdkVersion} 481attributes in manifest files so that version descriptions are displayed for each of the API 482levels</li> 483 <li>Provided support for code completion of custom attributes for custom views, 484including current edits to the style files.</li> 485 <li>Improved synchronization of text and graphic editors with the XML outline view, 486including outline changes and display of current selection.</li> 487 </ul> 488 </li> 489 <li>Build System 490 <ul> 491 <li>Added automatic merging of library project manifest files into the including 492project's manifest. Enable this feature with the {@code manifestmerger.enabled} property.</li> 493 <li>Added automatic ProGuard support for the {@code aapt -G} flag. This change causes 494the build system to generate a temporary ProGuard keep-rules file containing classes that 495are referenced from XML files (such as custom views) and pass this to ProGuard at shrink-time. This 496can make the resulting APK much smaller when using just a small portion of a large library project 497(such as the Android Support library), since the catch-all rules to keep all custom views from the 498default ProGuard configuration file have also been removed.</li> 499 </ul> 500 </li> 501 <li>Added support building and debugging NDK-based Android projects.</li> 502 </li> 503 <li>Added support to the Asset Studio Wizard for padding and turning off background 504shapes.</li> 505 <li>Improved LogCat to allow developers to set colors for different priorities.</li> 506 <li>Improved app Run functionality to allow running on multiple devices with a single launch. 507The target tab in the launch configuration dialog includes an option to allow launching on all 508connected devices, with the option to further narrow the list to just physical devices or just 509emulators. (This feature is available only for Run configurations, and not for Debug or JUnit 510tests.)</li> 511 <ul> 512 </dd> 513 514 <dt>Bug fixes:</dt> 515 <dd> 516 <ul> 517 <li>Fixed a number of issues where Lint incorrectly reported code errors or failed to 518flag code issues.</li> 519 <li>Fixed several bugs in the layout editor.</li> 520 <li>Fixed compatibility issues with Eclipse 4.x (Juno), including cut/copy/paste 521functions.</li> 522 </ul> 523 </dd> 524 525</dl> 526 527</div> 528</div> 529 530<div class="toggle-content closed"> 531 <p><a href="#" onclick="return toggleContent(this)"> 532 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img" 533 alt=""/>ADT 18.0.0</a> <em>(April 2012)</em> 534 </p> 535 536 <div class="toggle-content-toggleme"> 537<dl> 538 <dt>Dependencies:</dt> 539 540 <dd> 541 <ul> 542 <li>Java 1.6 or higher is required for ADT 18.0.0.</li> 543 <li>Eclipse Helios (Version 3.6.2) or higher is required for ADT 18.0.0.</li> 544 <li>ADT 18.0.0 is designed for use with <a href="{@docRoot}tools/sdk/tools-notes.html">SDK Tools 545 r18</a>. If you haven't already installed SDK Tools r18 into your SDK, use the Android SDK 546 Manager to do so.</li> 547 </ul> 548 </dd> 549 550 <dt>Bug fixes:</dt> 551 <dd> 552 <ul> 553 <li>Fixed problem where exporting release package does not recompile libraries in release 554 mode. 555 (<a href="http://code.google.com/p/android/issues/detail?id=27940">Issue 27940</a>)</li> 556 </ul> 557 </dd> 558 559</dl> 560 561</div> 562</div> 563 564 565<div class="toggle-content closed"> 566 <p><a href="#" onclick="return toggleContent(this)"> 567 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img" 568 alt=""/>ADT 17.0.0</a> <em>(March 2012)</em> 569 </p> 570 571 <div class="toggle-content-toggleme"> 572<dl> 573 <dt>Dependencies:</dt> 574 575 <dd> 576 <ul> 577 <li>Java 1.6 or higher is required for ADT 17.0.0.</li> 578 <li>Eclipse Helios (Version 3.6.2) or higher is required for ADT 17.0.0.</li> 579 <li>ADT 17.0.0 is designed for use with <a href="{@docRoot}tools/sdk/tools-notes.html">SDK Tools 580 r17</a>. If you haven't already installed SDK Tools r17 into your SDK, use the Android SDK 581 Manager to do so.</li> 582 </ul> 583 </dd> 584 585 <dt>General improvements:</dt> 586 <dd> 587 <ul> 588 <li>New build features 589 <ul> 590 <li>Added feature to automatically setup JAR dependencies. Any {@code .jar} files in the 591 {@code /libs} folder are added to the build configuration (similar to how the Ant build 592 system works). Also, {@code .jar} files needed by library projects are also automatically 593 added to projects that depend on those library projects. 594 (<a href="http://tools.android.com/recent/dealingwithdependenciesinandroidprojects">more 595 info</a>)</li> 596 <li>Added a feature that allows you to run some code only in debug mode. Builds now 597generate a class called {@code BuildConfig} containing a {@code DEBUG} constant that is 598automatically set according to your build type. You can check the ({@code BuildConfig.DEBUG}) 599constant in your code to run debug-only functions.</li> 600 <li>Added support for custom views with custom attributes in libraries. Layouts using 601custom attributes must use the namespace URI {@code http://schemas.android.com/apk/res-auto} instead 602of the URI that includes the app package name. This URI is replaced with the app specific one at 603build time.</li> 604 </ul> 605 </li> 606 <li>Improved Lint features. See the <a href="{@docRoot}tools/sdk/tools-notes.html">SDK Tools r17</a> 607release notes.</li> 608 <li>Improved the Lint user interface 609 <ul> 610 <li>Added <strong>Run Lint</strong> toolbar action with a dropdown menu for selecting 611specific (or all) projects, clearing results and other actions.</li> 612 <li>Updated the results window to be organized as a tree rather than a flat list. Each 613issue type has a single top level item, which makes it easier to quickly scan through the reported 614issues and narrow down to the issues you are most interested in.</li> 615 <li>Added many new toolbar actions to the results window, including expand/collapse, 616ignore in file, ignore in project, ignore everywhere, show options, and configure columns.</li> 617 <li>Added new column options for the <strong>Lint Warnings</strong> tab, such as 618category, priority, project, file and line. The column selection (as well as the column sizes) are 619persisted. You can also click on columns to sort by those values.</li> 620 <li>Added Enable All and Disable All buttons to the Lint Options dialog, and a search 621filter textbox to filter by issue id, summary and severity.</li> 622 </ul> 623 </li> 624 <li>Added Quick Outline for XML editors (Ctrl-O, Command-O). This feature shows the structure 625of the current file including icons and ids, lets you filter and quickly jump to specific ids.</li> 626 <li>Updated the resource chooser to shows the resolved value for resources. For example, 627when selecting {@code @string/hello} the chooser displays a resolved value such as "Hello World"). 628The resource chooser also now allows you to edit the chosen value directly.</li> 629 <li>Updated Layout Editor so that it does not assign default ids to layouts, includes and 630merge tags. This behavior tended to pollute the namespace with a lot of unused resources since 631layouts are not usually manipulated via code, or referenced from XML. (The RelativeLayout editor 632automatically assigns ids to views without ids when pointing to them.)</li> 633 <li>Added ability to export screenshots from the Layout Editor</li> 634 </ul> 635 </dd> 636 637 <dt>Bug fixes:</dt> 638 <dd> 639 <ul> 640 <li>Fixed problem using Layout Editor with {@link android.widget.SlidingDrawer} which could 641 not be dragged into the layout on some platforms.</li> 642 <li>Fixed preview rendering for {@link android.widget.SlidingDrawer} and 643 {@link android.widget.TabHost}. 644 (<a href="http://code.google.com/p/android/issues/detail?id=23022">Issue 23022</a>).</li> 645 <li>Fixed issues that could prevent layout rendering due to unresolvable resources. 646 (<a href="http://code.google.com/p/android/issues/detail?id=21046">Issue 21046</a>, 647 <a href="http://code.google.com/p/android/issues/detail?id=21051">Issue 21051</a>)</li> 648 <li>Fixed a bug in resource chooser which made some types of framework resources impossible to 649select. (<a href="http://code.google.com/p/android/issues/detail?id=20589">Issue 20589</a>)</li> 650 <li>Fixed a bug in the formatter where a certain whitespace pattern could result in a 651 non-space character getting deleted. 652 (<a href="http://code.google.com/p/android/issues/detail?id=23940">Issue 23940</a>)</li> 653 <li>Fixed a locale bug affecting Turkish locales in particular. 654 (<a href="http://code.google.com/p/android/issues/detail?id=23747">Issue 23747</a>)</li> 655 <li>Fixed an issue where dex complains about duplicate classes in cases where a Library 656 Project depends on the same jar files or Java-only projects.</li> 657 <li>Fixed an issue where test projects had to independently reference the library projects 658 used by an app project. Now referencing only the app project is enough.</li> 659 </ul> 660 </dd> 661 662</dl> 663 664</div> 665</div> 666 667<div class="toggle-content closed"> 668 <p><a href="#" onclick="return toggleContent(this)"> 669 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img" 670 alt=""/>ADT 16.0.1</a> <em>(December 2011)</em> 671 </p> 672 673 <div class="toggle-content-toggleme"> 674<dl> 675 <dt>Dependencies:</dt> 676 677 <dd> 678 <ul> 679 <li>Eclipse Helios (Version 3.6) or higher is required for ADT 16.0.1.</li> 680 <li>ADT 16.0.1 is designed for use with <a href="{@docRoot}tools/sdk/tools-notes.html">SDK Tools 681 r16</a>. If you haven't already installed SDK Tools r16 into your SDK, use the Android SDK 682 Manager to do so.</li> 683 </ul> 684 </dd> 685 686 <dt>Bug fixes:</dt> 687 <dd> 688 <ul> 689 <li>Fixed build issue where the 9-patch could be packaged as normal bitmap in some cases.</li> 690 <li>Fixed minor issues in the <a href="http://tools.android.com/recent/lint">Lint</a> 691 tool.</li> 692 <li>Fixed minor issues in the SDK Manager.</li> 693 </ul> 694 </dd> 695</dl> 696 697</div> 698</div> 699 700 701<div class="toggle-content closed"> 702 <p><a href="#" onclick="return toggleContent(this)"> 703 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img" 704 alt=""/>ADT 16.0.0</a> <em>(December 2011)</em> 705 </p> 706 707 <div class="toggle-content-toggleme"> 708<dl> 709 <dt>Dependencies:</dt> 710 711 <dd> 712 <ul> 713 <li>Eclipse Helios (Version 3.6) or higher is required for ADT 71416.0.0.</li> 715 <li>ADT 16.0.0 is designed for use with <a 716href="{@docRoot}tools/sdk/tools-notes.html">SDK Tools r16</a>. If you haven't already installed SDK Tools 717r16 into your SDK, use the Android SDK Manager to do so.</li> 718 </ul> 719 </dd> 720 721 <dt>General improvements:</dt> 722 <dd> 723 <ul> 724 <li>Added Lint tool to detect common errors in Android projects. (<a 725href="http://tools.android.com/recent/lint">more info</a>)</li> 726 </ul> 727 </dd> 728</dl> 729 730</div> 731</div> 732 733 734<div class="toggle-content closed"> 735 <p><a href="#" onclick="return toggleContent(this)"> 736 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img" 737 alt=""/>ADT 15.0.1</a> <em>(November 2011)</em> 738 </p> 739 740 <div class="toggle-content-toggleme"> 741<dl> 742 <dt>Dependencies:</dt> 743 744 <dd>ADT 15.0.1 is designed for use with <a href="{@docRoot}tools/sdk/tools-notes.html">SDK Tools r15</a>. 745 If you haven't already installed SDK Tools r15 into your SDK, use the Android SDK Manager to 746 do so.</dd> 747 748 <dt>Bug fixes:</dt> 749 <dd> 750 <ul> 751 <li>Fixed how source files are attached to library project <code>.jar</code> files.</li> 752 <li>Fixed how the <code>bin/</code> folder for library projects are refreshed. This ensures that parent projects pick up changes in library projects.</li> 753 <li>Fixed how a parent project's library container is updated when a library project is recompiled. This ensures that parent projects are 754 recompiled when code in a library project changes.</li> 755 <li>Fixed how <code>res/</code> folders are checked in library projects. This ensures that all <code>res</code> folders are properly included 756 even if Eclipse is not aware of them due to refresh issues.</li> 757 <li>Fixed issue that prevented <code>aapt</code> from running when editing certain XML files.</li> 758 <li>Fixed minor XML formatting issues.</li> 759 </ul> 760 </dd> 761</dl> 762 763</div> 764</div> 765 766 767 768<div class="toggle-content closed"> 769 <p><a href="#" onclick="return toggleContent(this)"> 770 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img" 771 alt=""/>ADT 15.0.0</a> <em>(October 2011)</em> 772 </p> 773 774 <div class="toggle-content-toggleme"> 775<dl> 776 777<dt>Dependencies:</dt> 778 779<dd>ADT 15.0.0 is designed for use with <a href="{@docRoot}tools/sdk/tools-notes.html">SDK Tools r15</a>. 780If you haven't already installed SDK Tools r15 into your SDK, use the Android SDK Manager to 781do so.</dd> 782 783<dt>Bug fixes:</dt> 784<dd> 785<ul> 786 <li>Fixed build issue when using Renderscript in projects that target API levels 11-13 787 (<a href="http://code.google.com/p/android/issues/detail?id=21006">Issue 21006</a>).</li> 788 <li>Fixed issue when creating projects from existing source code.</li> 789 <li>Fixed issues in the SDK Manager 790 (<a href="http://code.google.com/p/android/issues/detail?id=20939">Issue 20939</a>, 791 <a href="http://code.google.com/p/android/issues/detail?id=20607">Issue 20607</a>).</li> 792 <li>Fixed a scrolling issue in the new Logcat panel of DDMS.</li> 793</ul> 794</dd> 795</dl> 796 797</div> 798</div> 799 800<div class="toggle-content closed"> 801 <p><a href="#" onclick="return toggleContent(this)"> 802 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img" 803 alt=""/>ADT 14.0.0</a> <em>(October 2011)</em> 804 </p> 805 806 <div class="toggle-content-toggleme"> 807<dl> 808 809<dt>Dependencies:</dt> 810 811<dd>ADT 14.0.0 is designed for use with <a href="{@docRoot}tools/sdk/tools-notes.html">SDK Tools r14</a>. 812If you haven't already installed SDK Tools r14 into your SDK, use the Android SDK Manager to 813do so.</dd> 814 815<dt>Build system:</dt> 816<dd> 817 <ul> 818 <li>Changed <code>default.properties</code> to <code>project.properties</code> and 819 <code>build.properties</code> to <code>ant.properties</code>. ADT automatically 820 renames these files, if necessary, when you open a project in Eclipse.</li> 821 <li>Changed how library projects are built in Eclipse.</a></li> 822 <li>Changed output of <code>javac</code> from <code>bin/</code> to <code>bin/classes</code> 823 in Eclipse.</li> 824 <li>Improved incremental builds so that resource compilation runs less frequently. Builds no 825 longer run when you edit strings or layouts (unless you add a new <code>id</code>) and no longer 826 run once for each library project.</li> 827 <li>Introduced a "PNG crunch cache" that only runs on modified PNG files, instead of 828 crunching all existing PNG files, all the time.</li> 829 <li>Modified resource compilation so it no longer happens for normal save operations. It only 830 happens when running or debugging (the build option that lets you disable the packaging 831 step, which was introduced in ADT 12, is now on by default.)</li> 832 </ul> 833<p>For a complete overview of the build system changes and what you need to do to support them, 834see the <a href="http://tools.android.com/recent/buildchangesinrevision14">Android Tools Project 835site</a>.</p> 836</dd> 837 838<dt>General improvements:</dt> 839<dd> 840 <ul> 841 842 843<li>Added a Welcome Wizard to help with the initial setup of the Android 844development environment (<a href="http://tools.android.com/recent/welcomewizard">more 845info</a>).</li> 846<li>Integrated the Android Asset Studio, which helps you create icons for things 847like the launcher, menus, and tabs. (<a 848href="http://tools.android.com/recent/assetstudiointegration">more 849info</a>).</li> 850<li>Revamped the Logcat view and added support to display and filter logs by 851 application names as well as PIDs (<a 852 href="http://tools.android.com/recent/updatedlogcatviewer">more info</a>).</li> 853<li>Revamped the SDK Manager UI (<a href="http://tools.android.com/recent/newsdkmanager">more 854info</a>).</li> 855<li>Revamped the New Project and the New XML File wizards to have 856multiple pages. Sample projects are now copied into the workspace such that they can be modified 857and deleted without affecting the master copy 858(<a href="http://tools.android.com/recent/revampedwizards">more info</a>).</li> 859<li>Removed the dependency on Eclipse GEF.</li> 860</ul> 861</dd> 862 863<dt>XML and Java editors:</dt> 864<dd> 865 <ul> 866 <li>Added a new XML formatter that formats all XML files according to the 867 standard Android coding style. The formatter can also reorder 868 attributes to follow a recommended order and processes any changes made in the Layout editor. 869(<a href="http://tools.android.com/recent/xmlformatter">more info</a>).</li> 870 <li>Added the "Go to Matching" (Ctrl-Shift-P) feature, which lets you jump 871between opening and closing tags in XML files.</li> 872 <li>Added support for the "Select Enclosing Element" feature on Mac.</li> 873 <li>Added a Quickfix for extracting Strings when the caret is inside a String (<a href="">see 874more</a>).</li> 875 <li>Improved "smart indent", which allows automatic indentation and un-indentation 876 when pressing the Return key in XML editors (<a 877href="http://tools.android.com/recent/xmleditingimprovements">more info</a>).</li> 878 879 </ul> 880</dd> 881 882<dt>Layout editor:</dt> 883<dd> 884 <ul> 885 <li>Added tooltip feedback for dragging and resizing operations. For 886 example, when dragging in a relative layout, the proposed 887 constraints are shown. When resizing, the new dimensions are 888 shown (<a href="http://tools.android.com/recent/layouteditorfeedbacktooltips">more 889info</a>).</li> 890 <li>Added the ability to suppress rendering fidelity warnings (<a 891href="http://tools.android.com/recent/suppressrenderwarnings">more info</a>).</li> 892 <li>Added "Remove Container" visual refactoring that removes the 893 children of a container up to the top level and transfers 894 namespace and layout attributes if necessary (<a 895href="http://tools.android.com/recent/removecontainervisualrefactoring">more info</a>).</li> 896 <li>Added pull-right menus to the context menu for accessing 897 properties of the parents, which is useful when the children fully 898 cover the parent and make it hard to select on their own.</li> 899 <li>Improved access to properties in the context menu. The most 900 frequently set attributes for each view are listed at the top of 901 the menu. The Properties menu offers access to the most 902 recently set attributes, attributes organized by their defining 903 view, and layout attributes only or all attributes alphabetically (<a 904href="http://tools.android.com/recent/layouteditorcontextmenuimprovements">more info</a>).</li> 905 </ul> 906</dd> 907 908<dt>Bug fixes:</dt> 909<dd>Fixed many bugs and added <a 910href="http://tools.android.com/recent/miscellaneousrecentfixes">minor improvements</a>, in 911particular some <a href="http://tools.android.com/recent/linuxfixes">critical bug fixes on 912Linux</a>.</dd> 913 914</div> 915</div> 916 917 918 919<div class="toggle-content closed"> 920 <p><a href="#" onclick="return toggleContent(this)"> 921 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img" 922 alt=""/>ADT 12.0.0</a> <em>(July 2011)</em> 923 </p> 924 925 <div class="toggle-content-toggleme"> 926<dl> 927 928<dt>Dependencies:</dt> 929 930<dd>ADT 12.0.0 is designed for use with <a href="{@docRoot}tools/sdk/tools-notes.html">SDK Tools r12</a>. If you haven't 931already installed SDK Tools r12 into your SDK, use 932the Android SDK Manager to do so.</dd> 933 934<dt>Visual Layout Editor:</dt> 935<dd> 936<ul> 937 <li>New RelativeLayout drop support with guideline suggestions for 938 attachments and cycle prevention 939 (<a href="http://tools.android.com/recent/revampedrelativelayoutsupport">more info</a>).</li> 940 <li>Resize support in most layouts along with 941 guideline snapping to the sizes dictated by <code>wrap_content</code> and <code>match_parent</code>. 942 In LinearLayout, sizes are mapped to weights instead of pixel widths. 943 (<a href="http://tools.android.com/recent/resizesupport">more info</a>).</li> 944 <li>Previews of drawables and colors in the resource chooser dialogs 945 (<a href="http://tools.android.com/recent/imageandcolorpreviews">more info</a>).</li> 946 <li>Improved error messages and links for rendering errors including 947 detection of misspelled class names 948 (<a href="http://tools.android.com/recent/improvedrenderingerrordiagnostics">more info</a>).</li> 949</ul> 950</dd> 951 952<dt>Build system:</dt> 953<dd> 954<ul> 955 <li id="build-option">A new option lets you disable the packaging step in the automatic 956 builders. This improves performance when saving files by not 957 performing a full build, which can take a long time for large projects. 958 If the option is enabled, the APK is packaged when the 959 application is deployed to a device or emulator or when the 960 release APK is exported (<a href="http://tools.android.com/recent/finercontroloveradtbuildprocess">more info</a>).</li> 961</ul> 962</dd> 963 964<dt>Bug fixes:</dt> 965<dd>Many bug fixes are part of this release 966(<a href="http://tools.android.com/recent/adt12bugfixroundup">more info</a>).</dd> 967 968</div> 969</div> 970 971 972<div class="toggle-content closed"> 973 <p><a href="#" onclick="return toggleContent(this)"> 974 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img" 975 alt=""/>ADT 11.0.0</a> <em>(June 2011)</em> 976 </p> 977 978 <div class="toggle-content-toggleme"> 979<dl> 980 981<dt>Dependencies:</dt> 982 983<dd>ADT 11.0.0 is designed for use with SDK Tools r11. If you haven't 984already installed SDK Tools r11 into your SDK, use the Android SDK Manager to do 985so.</dd> 986 987<dt>Visual Refactoring:</dt> 988<dd> 989 <ul> 990 <li>"Extract Style" feature pulls out style-related attributes from your layout and extracts 991them as a new style defined in {@code styles.xml} (<a 992href="http://tools.android.com/recent/extractstylerefactoring">more info</a>).</li> 993 <li>"Wrap in Container" feature lets you select a group of views then surround them 994 in a new layout (a new view group, such as a LinearLayout), and transfers namespace and layout 995 parameters to the new parent (<a 996href="http://tools.android.com/recent/newrefactoringswrapinchangelayoutchangewidget">more 997info</a>).</li> 998 <li>"Change Layout" feature changes layouts from one type 999 to another, and can also flatten a layout hierarchy (<a 1000href="http://tools.android.com/recent/newrefactoringswrapinchangelayoutchangewidget">more 1001info</a>).</li> 1002 <li>"Change Widget Type" feature changes the type of the 1003 selected views to a new type. Also, a new selection context menu 1004 in the visual layout editor makes it easy to select siblings as 1005 well as views anywhere in the layout that have the same type (<a 1006href="http://tools.android.com/recent/newrefactoringswrapinchangelayoutchangewidget">more 1007info</a>).</li> 1008 <li>"Extract as Include" feature finds identical collections of views 1009 in other layouts and offers to combine them into a single layout that you can then include in 1010 each layout (<a 1011href="http://tools.android.com/recent/extractasincludeimprovements">more info</a>).</li> 1012 <li>Quick Assistant in Eclipse can be invoked 1013 from the XML editor (with Ctrl-1) to apply any of the above 1014 refactorings (and Extract String) to the current selection (<a 1015href="http://tools.android.com/recent/refactoringquickassistant">more info</a>).</li> 1016 </ul> 1017</dd> 1018 1019<dt>Visual Layout Editor:</dt> 1020<dd> 1021 <ul> 1022 <li>This is the update to the layout editor you've been waiting for! It includes (almost) all 1023the goodies demonstrated at Google I/O. <a href="http://www.youtube.com/watch?v=Oq05KqjXTvs">Watch 1024the video</a> on YouTube.</li> 1025 <li>The palette now supports different configurations for supported widgets. That is, a single 1026view is presented in various different configurations that you can drag into your layout. For 1027example, there is a <em>Text Fields</em> palette category where you can drag an {@link 1028android.widget.EditText} widget in as a password field, an e-mail field, a phone field, or other 1029types of text boxes. Similarly, {@link android.widget.TextView} widgets are preconfigured 1030with large, normal and small theme sizes, and {@link android.widget.LinearLayout} elements are 1031preconfigured in horizontal and vertical configurations (<a 1032href="http://tools.android.com/recent/multipletextfieldandlayouttypes">more info</a>).</li> 1033 <li>The palette supports custom views. You can pick up any custom 1034 implementations of the View class you've created in your project or from included libraries and 1035drag them into your layout (<a 1036href="http://tools.android.com/recent/customviewsinthepalette">more info</a>).</li> 1037 <li>Fragments are available in the palette for placement in your layout. In the tool, you can 1038choose which layout to show rendered for a given fragment tag. Go to declaration works for fragment 1039classes (<a href="http://tools.android.com/recent/fragmentsupport">more info</a>).</li> 1040 <li>The layout editor automatically applies a "zoom to fit" for newly 1041 opened files as well as on device size and orientation changes to 1042 ensure that large layouts are always fully visible unless you 1043 manually zoom in.</li> 1044 <li>You can drop in an {@code <include>} element from the palette, which will pop up 1045 a layout chooser. When you select the layout to include, it is added with an {@code 1046<include>}. Similarly, dropping images or image buttons will pop up image 1047 resource choosers (<a 1048href="http://tools.android.com/recent/includetagdropsupport">more info</a>).</li> 1049 <li>The configuration chooser now applies the "Render Target" and 1050 "Locale" settings project wide, making it trivial to check the 1051 layouts for different languages or render targets without having 1052 to configure these individually for each layout.</li> 1053 <li>The layout editor is smarter about picking a default theme to 1054 render a layout with, consulting factors like theme registrations 1055 in the manifest, the SDK version, and other factors.</li> 1056 <li>The layout editor is smarter about picking a default configuration to render a layout 1057with, defaulting to the currently visible configuration in the previous file. It also considers the 1058SDK target to determine whether to default to a tablet or phone screen size.</li> 1059 <li>Basic focus support. The first text field dropped in a layout is assigned focus, and there 1060are <strong>Request Focus</strong> and <strong>Clear Focus</strong> context menu items on text 1061fields to change the focus.</li> 1062 </ul> 1063</dd> 1064 1065<dt>XML editors:</dt> 1066<dd> 1067<ul> 1068 <li>Code completion has been significantly improved. It now works 1069 with {@code <style>} elements, completes dimensional units, 1070 sorts resource paths in values based on the attribute name, and more. There are also many fixes to 1071handle text replacement (<a 1072href="http://tools.android.com/recent/xmlcodecompletionimprovements">more info</a>).</li> 1073 <li>AAPT errors are handled better. They are now underlined for the 1074 relevant range in the editor, and a new quickfix makes it trivial 1075 to create missing resources.</li> 1076 <li>Code completion for drawable, animation and color XML files (<a 1077href="http://tools.android.com/recent/codecompletionfordrawablescolorsandanimationfiles">more 1078info</a>).</li> 1079</ul> 1080</dd> 1081 1082<dt>DDMS:</dt> 1083<dd> 1084<ul> 1085 <li>"New Folder" action in the File Explorer.</li> 1086 <li>The screenshot dialog will add timestamps to the filenames and preserve the orientation on 1087snapshot refresh.</li> 1088</ul> 1089</dd> 1090 1091<dt>General notes:</dt> 1092<dd> 1093 <ul> 1094 <li>TraceView supports zooming with the mouse-wheel in the timeline.</li> 1095 <li>The New Android Project wizard now supports Eclipse working sets.</li> 1096 </ul> 1097</dd> 1098</dl> 1099<p>More information about tool changes are available on the <a 1100href="http://tools.android.com/recent">Android Tools Project Site</a>.</p> 1101</div> 1102</div> 1103 1104 1105 1106 1107 1108<div class="toggle-content closed"> 1109 <p><a href="#" onclick="return toggleContent(this)"> 1110 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img" 1111 alt=""/>ADT 10.0.1</a> <em>(March 2011)</em> 1112 </p> 1113 1114 <div class="toggle-content-toggleme"> 1115 1116<dl> 1117 1118<dt>Dependencies:</dt> 1119 1120<dd>ADT 10.0.1 is designed for use with SDK Tools r10. If you haven't 1121already installed SDK Tools r10 into your SDK, use the Android SDK Manager to do 1122so.</dd> 1123 1124<dt>General notes:</dt> 1125<dd> 1126 <ul> 1127 <li>Temporary work-around to resolve the rare cases in which the layout editor will 1128not open.</li> 1129 <li>Fixed an issue in which ADT 10.0.0 would install on Eclipse 3.4 and lower, even though ADT 1130requires Eclipse 3.5 or higher (as of 10.0.0).</li> 1131 </ul> 1132</dd> 1133</dl> 1134</div> 1135</div> 1136 1137 1138 1139<div class="toggle-content closed"> 1140 <p><a href="#" onclick="return toggleContent(this)"> 1141 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img" 1142 alt=""/>ADT 10.0.0</a> <em>(February 2011)</em> 1143 </p> 1144 1145 <div class="toggle-content-toggleme"> 1146<dl> 1147 1148<dt>Dependencies:</dt> 1149 1150<dd>ADT 10.0.0 is designed for use with SDK Tools r10. If you haven't 1151already installed SDK Tools r10 into your SDK, use the Android SDK Manager to do 1152so.</dd> 1153 1154<dt>General notes:</dt> 1155<dd> 1156 <ul> 1157 <li>The tools now automatically generate Java Programming Language source files (in the <code>gen/</code> directory) and 1158 bytecode (in the <code>res/raw/</code> directory) from your <code>.rs</code> files.</li> 1159 <li>A Binary XML editor has been added (<a href="http://tools.android.com/recent/binaryxmleditor">details</a>).</li> 1160 <li>Traceview is now integrated into the Eclipse UI (<a href="http://tools.android.com/recent/traceviewineclipse">details</a>).</li> 1161 <li>The "Go To Declaration" feature for XML and <code>.java</code> files quickly show all the matches in the project 1162 and allows you jump to specific items such as string translations or <code>onClick</code> handlers 1163 (<a href="http://tools.android.com/recent/gotodeclarationimprovements">details</a>).</li> 1164 <li>The Resource Chooser can create items such as dimensions, integers, ids, and booleans 1165 (<a href="http://tools.android.com/recent/resourcechoosercannowcreatearbitraryvalues">details</a>).</li> 1166 <li>Improvements to the Visual Layout Editor: 1167 <ul> 1168 <li>A new Palette with categories and rendering previews 1169 (<a href="http://tools.android.com/recent/newpalette">details</a>).</li> 1170 <li>A Layout Actions bar that provides quick access to common layout operations 1171 (<a href="http://tools.android.com/recent/layoutactionsbar">details</a>).</li> 1172 <li>When the Android 3.0 rendering library is selected, layouts render more like they do on devices. 1173 This includes rendering of status and title bars to more accurately reflect the actual 1174 screen space available to applications 1175 (<a href="http://tools.android.com/recent/systembarandactionbar">details</a>).</li> 1176 <li>Zoom improvements such as fit to view, persistent scale, and keyboard access. 1177 (<a href="http://tools.android.com/recent/zoomimprovements">details</a>).</li> 1178 <li>Further improvements to <code><merge></code> layouts, as well as layouts with gesture overlays 1179 (<a href="http://tools.android.com/recent/improvedsupportformergetags">details</a>).</li> 1180 <li>Improved rendering error diagnostics.</li> 1181 </ul> 1182 </li> 1183 </ul> 1184</dd> 1185</dl> 1186</div> 1187</div> 1188 1189<div class="toggle-content closed"> 1190 <p><a href="#" onclick="return toggleContent(this)"> 1191 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img" 1192 alt=""/>ADT 9.0.0</a> <em>(January 2011)</em> 1193 </p> 1194 1195 <div class="toggle-content-toggleme"> 1196<dl> 1197 1198<dt>Dependencies:</dt> 1199 1200<dd>ADT 9.0.0 is designed for use with SDK Tools r9. If you haven't 1201already installed SDK Tools r9 into your SDK, use the Android SDK Manager to do 1202so.</dd> 1203 1204<dt>General notes:</dt> 1205<dd> 1206 <ul> 1207 <li>"Go To Declaration" hyperlink support: You can jump directly from code references (such as 1208 <code>R.id.main</code>) to the corresponding XML declaration, or from XML attributes (such as 1209 <code>@string</code>) to the corresponding resource definition, or from manifest XML 1210 registrations to activities and services.</li> 1211 <li>Improvements were made to name refactoring.</li> 1212 <li>AVDs now automatically save their state, so they can restart almost instantly. You can enable this feature when 1213 creating an AVD or by editing an AVD with the AVD Manager.</li> 1214 <li>Improvements to the Visual Layout Editor: 1215 <ul> 1216 <li>Support for rendering targets: You can now choose an arbitrary Android platform to 1217 render the current page, regardless of the project's minimum platform. This makes it 1218 easy to verify the layout and appearance of your activity on different versions of 1219 the platform. 1220 </li> 1221 <li>Improved support for empty and nested layouts: Dragging items over nested and 1222 invisible layouts automatically enlarges and highlights these layouts, so that they 1223 can receive drops. 1224 </li> 1225 <li>XML formatting improvements: The editor generates cleaner XML and you can now enable 1226 XML auto-formatting in the <strong>Preferences</strong> menu.</li> 1227 <li>Improved Outline labels: The Outline tab now displays additional information about each 1228 View. Textual Views display a snippet of the actual text. Views with a source 1229 (such as ImageView) displays the resource name. Included Views display the name of the View. 1230 </li> 1231 <li>When you right click a View in the Layout Editor, 1232 the context menu now contains <strong>Edit ID...</strong> and <strong>Edit Text...</strong> 1233 items. The <strong>Properties...</strong> context menus now list all of the properties and 1234 provide a way to edit them 1235 (<a href="http://tools.android.com/recent/editidtextandotherpropertiesviamenu">Details</a>). 1236 </li> 1237 <li>The layout editor now properly handles 1238 <a href="{@docRoot}guide/topics/resources/layout-resource.html#include-element"><code><include></code></a> 1239 and <a href="{@docRoot}guide/topics/resources/layout-resource.html#merge-element"><code><merge></code></a> 1240 tags (<a href="http://tools.android.com/recent/supportforincludeandmerge">Details</a>).</li> 1241 <li>"Extract as Include" refactoring: The Layout Editor has a new refactoring that allows 1242 you to select one or more views in a layout, and extract it into a separate layout 1243 (<a href="http://tools.android.com/recent/extractasincluderefactoring">Details</a>).</li> 1244 <li>Improved diagnostics for class loading and rendering errors: Class loading and rendering 1245 error messages are more useful and provide better information about the root cause of the 1246 error.</li> 1247 <li>Improved error handling to prevent drag and reordering operations from adding children 1248 into an {@link android.widget.AdapterView}.</li> 1249 <li>Outline reordering: Reordering your views in the Outline tab is much easier 1250 (<a href="http://tools.android.com/recent/outlineimprovements">Details</a>).</li> 1251 <li>Fix for keybinding bug where keyboard shortcuts did not work (Issues 1252 <a href="http://code.google.com/p/android/issues/detail?id=13231">13231</a> and 1253 <a href="http://code.google.com/p/android/issues/detail?id=13134">13134</a>).</li> 1254 <li>Fix for problems with Custom layout attribute menu (Issue 1255 <a href="http://code.google.com/p/android/issues/detail?id=13134">13134</a>).</li> 1256 <li>Automatic configuration for various view types: Certain views have properties configured 1257 by default. For example, the width of an {@link android.widget.EditText} object is set to 1258 <code>match_parent</code> when added to a vertical {@link android.widget.LinearLayout} 1259 or a default image is added to an {@link android.widget.ImageButton}.</li> 1260 <li>Previews during dragging: Dragging from the palette or dragging within the layout editor 1261 now shows live previews of the dragged item.</li> 1262 <li>Navigation improvements: In the Layout Editor, double-clicking Views jumps to the 1263 corresponding XML element. In the Outline view, double-clicking opens the Properties view.</li> 1264 <li>The editor has Honeycomb style animation preview support.</li> 1265 <li>Improved rendering support for various Views (such as TabHosts and SlidingDrawers) in 1266 Honeycomb (Issues <a href="http://code.google.com/p/android/issues/detail?id=3162">3162</a> 1267 and <a href="http://code.google.com/p/android/issues/detail?id=13092">13092</a>).</li> 1268 <li>Included layouts can be rendered and edited in the context of the layouts that include 1269 them. From a layout using an <a href="{@docRoot}guide/topics/resources/layout-resource.html#include-element"> 1270 <code><include></code></a> tag, double-clicking on the 1271 <a href="{@docRoot}guide/topics/resources/layout-resource.html#include-element"> 1272 <code><include></code></a> element edits the referenced layout in the context of the 1273 current layout. Additionally, when editing a layout that is included by other layouts, 1274 you can quickly change between context layouts, by right clicking in the editor and choosing 1275 <strong>Show included in...</strong>. This feature is only available in Honeycomb.</li> 1276 </ul> 1277 </li> 1278 <li>This release fixes many other bugs, but the most important ones are listed below: 1279 <ul> 1280 <li>Fixed issue that prevented launching debug builds on productions devices when 1281 <code>debuggable=true</code> was not set in the Android manifest.</li> 1282 <li>The LogCat view in DDMS properly handles UTF-8 characters.</li> 1283 <li>The SDK Manager is more reliable on Windows 1284 (<a href="http://tools.android.com/recent/sdkmanagerfixes">Details</a>).</li> 1285 <li>A JUnit initialization bug that prevented you from working with JUnit tests was fixed 1286 (Issue <a href="http://code.google.com/p/android/issues/detail?id=12411">12411</a>).</li> 1287 </ul> 1288</li> 1289 </ul> 1290</dd> 1291</dl> 1292</div> 1293</div> 1294 1295 1296 1297 1298<div class="toggle-content closed"> 1299 <p><a href="#" onclick="return toggleContent(this)"> 1300 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img" 1301 alt=""/>ADT 8.0.1</a> <em>(December 2010)</em> 1302 </p> 1303 1304 <div class="toggle-content-toggleme"> 1305<dl> 1306 1307<dt>Dependencies:</dt> 1308 1309<p><p>ADT 8.0.1 is designed for use with SDK Tools r8. If you haven't 1310already installed SDK Tools r8 into your SDK, use the Android SDK Manager to do 1311so.</p></dd> 1312 1313<dt>General notes:</dt> 1314<dd> 1315<ul> 1316 <li>This is a quick follow-up to ADT 8.0.0 to fix some bugs.</li> 1317 <li>Fixes an issue in which projects failed to compile, citing a dex error.</li> 1318 <li>Better ProGuard error reporting when exporting applications for release.</li> 1319</ul> 1320<p>Also see the recent release notes for 8.0.0, below.</p> 1321</dd> 1322</dl> 1323</div> 1324</div> 1325 1326 1327<div class="toggle-content closed"> 1328 <p><a href="#" onclick="return toggleContent(this)"> 1329 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img" 1330 alt=""/>ADT 8.0.0</a> <em>(December 2010)</em> 1331 </p> 1332 1333 <div class="toggle-content-toggleme"> 1334<dl> 1335 1336<dt>Dependencies:</dt> 1337 1338<p><p>ADT 8.0.0 is designed for use with SDK Tools r8. If you haven't 1339already installed SDK Tools r8 into your SDK, use the Android SDK Manager to do 1340so.</p></dd> 1341 1342<dt>General notes:</dt> 1343<dd> 1344<ul> 1345 <li>New version number scheme that follows the SDK Tools revision number. The major version 1346number for your ADT plugin should now always match the revision number of your SDK Tools. For 1347example, ADT 8.x is for SDK Tools r8.</li> 1348 <li>Support for true debug build. You no longer need to change the value of the 1349 <code>debuggable</code> attribute in the Android Manifest. 1350 <p>Incremental builds automatically insert <code>debuggable="true"</code>, but if you perform 1351 "export signed/unsigned application package", ADT does <em>not</em> insert it. 1352 If you manually set <code>debuggable="true"</code> in the manifest file, then release builds will 1353 actually create a debug build (it does not remove it if you placed it there).</p></li> 1354 <li>Automatic <a href="{@docRoot}tools/help/proguard.html">ProGuard</a> support in 1355 release builds. For it to work, you need to have a <code>proguard.config</code> 1356 property in the <code>default.properties</code> file that points to a ProGuard config file.</li> 1357 <li>Completely rewritten Visual Layout Editor. (This is still a work in progress.) Now includes: 1358 <ul> 1359 <li>Full drag and drop from palette to layout for all Layout classes.</li> 1360 <li>Move widgets inside a Layout view, from one Layout view to another and from one layout file to another.</li> 1361 <li>Contextual menu with enum/flag type properties.</li> 1362 <li>New zoom controls.</li> 1363 </ul></li> 1364 <li>New HierarchyViewer plugin for Eclipse.</li> 1365 <li>Android launch configurations no longer recompile the whole workspace on launch.</li> 1366 <li>The location of <code>android.jar</code> source and javadoc can now be configured.</li> 1367</ul> 1368</dd> 1369</dl> 1370 </div> 1371</div> 1372 1373 1374<div class="toggle-content closed"> 1375 <p><a href="#" onclick="return toggleContent(this)"> 1376 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img" 1377 alt=""/>ADT 0.9.9</a> <em>(September 2010)</em> 1378 </p> 1379 1380 <div class="toggle-content-toggleme"> 1381<dl> 1382 1383<dt>Dependencies:</dt> 1384 1385<dd><p>ADT 0.9.9 replaces ADT 0.9.8 and is designed for use with SDK Tools r7 1386and later. ADT 0.9.9 includes the ADT 0.9.8 features as well as an important 1387bugfix, so we recommend that you upgrade as soon as possible. If you haven't 1388already installed SDK Tools r7 into your SDK, use the Android SDK Manager to do 1389so.</p></dd> 1390 1391<dt>General notes:</dt> 1392<dd> 1393<ul> 1394<li>Fixes a problem in project import, in which source files were deleted in some cases.</li> 1395<li>Includes all other ADT 0.9.8 features (see below).</li> 1396</ul> 1397</dd> 1398</dl> 1399 </div> 1400</div> 1401 1402<div class="toggle-content closed"> 1403 <p><a href="#" onclick="return toggleContent(this)"> 1404 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img" 1405 alt=""/>ADT 0.9.8</a> <em>(September 2010)</em> 1406 </p> 1407 1408 <div class="toggle-content-toggleme"> 1409</ul> 1410</dd> 1411 1412<dl> 1413 1414<dt>Dependencies:</dt> 1415 1416<dd><p>ADT 0.9.8 is now deprecated. Please use ADT 0.9.9 instead.</p></dd> 1417 1418<dt>General notes:</dt> 1419<dd> 1420<ul> 1421<li>Adds a new Action, "Rename Application Package", to the Android Tools 1422contextual menu. The Action does a full application package refactoring. 1423<li>Adds support for library projects that don't have a source folder 1424called <code>src/</code>. There is now support for any number of source folders, 1425with no name restriction. They can even be in subfolder such as 1426<code>src/java</code>. If you are already working with library projects created 1427in ADT 0.9.7, see <a 1428href="{@docRoot}tools/projects/index.html#libraryMigrating">Migrating 1429library projects to ADT 0.9.8</a> for important information about moving 1430to the new ADT environment.</li> 1431<li>Adds support for library projects that depend on other library 1432projects.</li> 1433<li>Adds support for additional resource qualifiers: 1434<code>car</code>/<code>desk</code>, <code>night</code>/<code>notnight</code> and 1435<code>navexposed</code>/<code>navhidden</code>.</li> 1436<li>Adds more device screen types in the layout editor. All screen 1437resolution/density combinations listed in the <a 1438href="{@docRoot}guide/practices/screens_support.html#range">Supporting 1439Multiple Screens</a> are now available.</li> 1440<li>Fixes problems with handling of library project names that 1441contain characters that are incompatible with the Eclipse path variable. 1442Now it properly sets up the link between the main project and the library 1443project.</li> 1444</ul> 1445</dd> 1446</dl> 1447 </div> 1448</div> 1449 1450 1451<div class="toggle-content closed"> 1452 <p><a href="#" onclick="return toggleContent(this)"> 1453 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img" 1454 alt=""/>ADT 0.9.7</a> <em>(May 2010)</em> 1455 </p> 1456 1457 <div class="toggle-content-toggleme"> 1458<dl> 1459<dt>Library projects:</dt> 1460<dd> 1461<p>The ADT Plugin now supports the use of <em>library projects</em> during 1462development, a capability that lets you store shared Android application 1463code and resources in a separate development project. You can then reference the 1464library project from other Android projects and, at build time, the tools 1465compile the shared code and resources as part of the dependent applications. 1466More information about this feature is available in the <a 1467href="{@docRoot}tools/projects/index.html#LibraryProjects">Creating and Managing Projects</a> document. </p> 1468<p>If you are not developing in Eclipse, <a 1469href="tools-notes.html">SDK Tools r6</a> provides the equivalent library 1470project support through the Ant build system.</p> 1471</dd> 1472</dl> 1473 </div> 1474</div> 1475 1476 1477<div class="toggle-content closed"> 1478 <p><a href="#" onclick="return toggleContent(this)"> 1479 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img" 1480 alt=""/>ADT 0.9.6</a> <em>(March 2010)</em> 1481 </p> 1482 1483 <div class="toggle-content-toggleme"> 1484<dl> 1485<dt>Dependencies:</dt> 1486 1487<dd><p>ADT 0.9.6 is designed for use with SDK Tools r5 and later. Before 1488updating to ADT 0.9.6, we highly recommend that you use the Android SDK Manager to install SDK 1489Tools r5 into your SDK.</p></dd> 1490 1491<dt>General Notes:</dt> 1492<dd> 1493<ul> 1494<li>Editing <code>default.properties</code> outside of Eclipse will now 1495automatically update the project.</li> 1496<li>Loads the SDK content only when a project requires it. This will make 1497Eclipse use less resources when the SDK contains many versions of Android.</li> 1498<li>Resolves potential deadlock between modal dialogs, when launching ADT the 1499first time with the SDK Usage panel.</li> 1500<li>Fixes issues with the New Project Wizard when selecting samples.</li> 1501</ul> 1502</dd> 1503<dt>AVD/SDK Manager:</dt> 1504<dd> 1505<ul> 1506<li>Adds support for platform samples packages.</li> 1507<li>Improves support for dependency between packages.</li> 1508<li>AVDs now sorted by API level.</li> 1509<li>The AVD creation dialog now enforces a minimum SD card size of 9MB.</li> 1510<li>Prevents deletion of running AVDs.</li> 1511</ul> 1512</dd> 1513<dt>DDMS:</dt> 1514<dd> 1515<ul> 1516<li>DDMS plug-in now contains the Allocation Tracker view.</li> 1517<li>New action in the Logcat view: "Go to problem" lets you go directly from an 1518exception trace output to the code.</li> 1519</ul> 1520</dd> 1521<dt>Editors:</dt> 1522<dd> 1523<ul> 1524<li>Explode mode in the Visual Layout Editor adds a margin to all layout objects 1525so that it's easier to see embedded or empty layouts.</li> 1526<li>Outline mode in the Visual Layout Editor draws layout outline to make it 1527easier to see layout objects.</li> 1528<li>Several fixes in the configuration selector of the Visual Layout 1529Editor.</li> 1530</ul> 1531</dd> 1532<dt>Application launching:</dt> 1533<dd> 1534<ul> 1535<li>Applications launched from ADT now behave as if they were clicked from the 1536Home screen.</li> 1537<li>Fixes an issue where add-ons without an optional library would not show up as valid 1538targets for application launches.</li> 1539<li>Resolves a possible crash when launching applications.</li> 1540</ul> 1541</dd> 1542</dl> 1543 </div> 1544</div> 1545 1546<div class="toggle-content closed"> 1547 <p><a href="#" onclick="return toggleContent(this)"> 1548 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img" 1549 alt=""/>ADT 0.9.5</a> <em>(December 2009)</em> 1550 </p> 1551 1552 <div class="toggle-content-toggleme"> 1553<dl> 1554<dt>Dependencies:</dt> 1555 1556<dd><p>ADT 0.9.5 requires features provided in SDK Tools r4 or higher. If you install 1557ADT 0.9.5, which is highly recommended, you should use the Android SDK 1558Manager to download the latest SDK Tools into your SDK. For more information, 1559see <a href="{@docRoot}sdk/exploring.html">Exploring the SDK</a>.</p> 1560</dd> 1561 1562<dt>General notes:</dt> 1563<dd> 1564<ul> 1565<li>The AVD Launch dialog now allows you to set the scale value.</li> 1566<li>Fixes a potential NullPointerException in the SDK Manager when you launch an AVD that does not 1567 have a skin name specified.</li> 1568<li>Fixes an XML validation issue in older Java versions.</li> 1569<li>.apk packaging now properly ignores vi swap files as well as hidden files.</li> 1570</ul> 1571</dd> 1572</dl> 1573 </div> 1574</div> 1575 1576<div class="toggle-content closed"> 1577 <p><a href="#" onclick="return toggleContent(this)"> 1578 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img" 1579 alt=""/>ADT 0.9.4</a> <em>(October 2009)</em> 1580 </p> 1581 1582 <div class="toggle-content-toggleme"> 1583<dl> 1584<dt>Dependencies:</dt> 1585 1586<dd><p>ADT 0.9.4 requires features provided in SDK Tools r3 or higher. If you install 1587ADT 0.9.4, which is highly recommended, you should use the Android SDK 1588Manager to download the latest SDK Tools into your SDK. For more information, 1589see <a href="{@docRoot}sdk/exploring.html">Exploring the SDK</a>.</p> 1590</dd> 1591 1592<dt>Project Creation Wizard:</dt> 1593<dd> 1594<ul> 1595<li>New option to create a project from a sample by choosing it from a list.</li> 1596</ul> 1597</dd> 1598 1599<dt>Layout Editor:</dt> 1600<dd> 1601<ul> 1602<li>Improved Configuration selector that lets you see how your layout will 1603render on different devices. Default device descriptions include ADP1 1604and Google Ion, while SDK add-ons can also provide new descriptions. 1605A new UI allows you to create custom descriptions.</li> 1606<li>Adds a new clipping toggle, to let you see your full layout even if it's 1607bigger than the screen.</li> 1608</ul> 1609</dd> 1610 1611<dt>DDMS integration:</dt> 1612<dd> 1613<ul> 1614<li>Includes the improvements from the standlone DDMS, revision 3.</li> 1615<li>Adds an option to open HPROF files into eclipse instead of writing them on 1616disk. If a profiler such as MAT (<a href="http://eclipse.org/mat">Memory Analyzer 1617Tool</a>) is installed, it'll open the file.</li> 1618</ul> 1619</dd> 1620 1621<dt>Android SDK and AVD Manager integration:</dt> 1622<dd> 1623<ul> 1624<li>Includes the improvements from the standalone Android SDK and AVD Manager, 1625revision 3.</li> 1626</ul> 1627</dd> 1628</dl> 1629 </div> 1630</div> 1631