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