1 page.title=SDK Tools 2 @jd:body 3 4 <p>SDK Tools is a downloadable component for the Android SDK. It includes the 5 complete set of development and debugging tools for the Android SDK.</p> 6 7 <p>If you are new to the Android SDK, the <a 8 href="{@docRoot}sdk/index.html">SDK starter package</a> installs the 9 latest revision of the SDK Tools in the <code><sdk>/tools</code> directory.</p> 10 11 <p>If you are already using the SDK and you want to update to the latest version 12 of the SDK Tools, use the <em>Android SDK Manager</em> to get the 13 update, rather than downloading a new SDK starter package. For more information 14 about how to update, see <a 15 href="{@docRoot}sdk/exploring.html#UpdatingComponents">Exploring the SDK</a>.</p> 16 17 18 <h2 id="notes">Revisions</h2> 19 20 <p>The sections below provide notes about successive releases of 21 the SDK Tools, as denoted by revision number. To determine what revision of the SDK 22 Tools you are using, refer to the "Installed Packages" listing in the Android SDK Manager. </p> 23 24 <p>For a summary of all known issues in SDK Tools, see <a 25 href="http://tools.android.com/knownissues">http://tools.android.com/knownissues</a>.</p> 26 27 28 <div class="toggle-content opened"> 29 <p><a href="#" onclick="return toggleContent(this)"> 30 <img src="{@docRoot}assets/images/triangle-opened.png" class="toggle-content-img" 31 alt=""/>SDK Tools, Revision 20.0.3</a> <em>(August 2012)</em> 32 </p> 33 34 <div class="toggle-content-toggleme"> 35 36 <dl> 37 <dt>Dependencies:</dt> 38 <dd> 39 <ul> 40 <li>Android SDK Platform-tools revision 12 or later.</li> 41 <li>If you are developing in Eclipse with ADT, note that the SDK Tools r20.0.3 is designed 42 for use with ADT 20.0.3 and later. If you haven't already, update your 43 <a href="{@docRoot}tools/sdk/eclipse-adt.html">ADT Plugin</a> to 20.0.3.</li> 44 <li>If you are developing outside Eclipse, you must have 45 <a href="http://ant.apache.org/">Apache Ant</a> 1.8 or later.</li> 46 </ul> 47 </dd> 48 <dt>Bug fixes:</dt> 49 <dd> 50 <ul> 51 <li>Fixed problem with cached download lists in SDK Manager.</li> 52 </ul> 53 </dd> 54 </dl> 55 </div> 56 </div> 57 58 59 <div class="toggle-content closed"> 60 <p><a href="#" onclick="return toggleContent(this)"> 61 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img" 62 alt=""/>SDK Tools, Revision 20.0.1</a> <em>(July 2012)</em> 63 </p> 64 65 <div class="toggle-content-toggleme"> 66 67 <dl> 68 <dt>Dependencies:</dt> 69 <dd> 70 <ul> 71 <li>Android SDK Platform-tools revision 12 or later.</li> 72 <li>If you are developing in Eclipse with ADT, note that the SDK Tools r20.0.1 is designed 73 for use with ADT 20.0.1 and later. If you haven't already, update your 74 <a href="{@docRoot}tools/sdk/eclipse-adt.html">ADT Plugin</a> to 20.0.1.</li> 75 <li>If you are developing outside Eclipse, you must have 76 <a href="http://ant.apache.org/">Apache Ant</a> 1.8 or later.</li> 77 </ul> 78 </dd> 79 <dt>Bug fixes:</dt> 80 <dd> 81 <ul> 82 <li>Fixed wrong check on build state that forced repetitive Java code recompilation.</li> 83 <li>Fixed problems with running more than one emulator and running multiple emulators 84 with GPU acceleration.</li> 85 <li>Improved resize algorithm for better rendering on scaled emulator windows.</li> 86 <li>Fixed a bug in the {@code lint} check for unprotected broadcast receivers to ignore 87 unprotected receivers for default Android actions.</li> 88 <li>Fixed build issue for projects using Renderscript.</li> 89 <li>Fixed memory leak in the emulator.</li> 90 </ul> 91 </dd> 92 </dl> 93 </div> 94 </div> 95 96 <div class="toggle-content closed"> 97 <p><a href="#" onclick="return toggleContent(this)"> 98 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img" 99 alt=""/>SDK Tools, Revision 20</a> <em>(June 2012)</em> 100 </p> 101 102 <div class="toggle-content-toggleme"> 103 <dl> 104 <dt>Dependencies:</dt> 105 <dd> 106 <ul> 107 <li>Android SDK Platform-tools revision 12 or later.</li> 108 <li>If you are developing in Eclipse with ADT, note that the SDK Tools r20 is designed for 109 use with ADT 20.0.0 and later. If you haven't already, we highly recommend updating your 110 <a href="{@docRoot}tools/sdk/eclipse-adt.html">ADT Plugin</a> to 20.0.0.</li> 111 <li>If you are developing outside Eclipse, you must have 112 <a href="http://ant.apache.org/">Apache Ant</a> 1.8 or later.</li> 113 </ul> 114 </dd> 115 <dt>General notes:</dt> 116 <dd> 117 <ul> 118 <li>Added new Device Monitor application, grouping Android debugging tools into a 119 single application, including ddms, traceview, hierarchyviewer and Tracer for GLES. (<a 120 href="{@docRoot}tools/help/gltracer.html">more info</a>)</li> 121 <li>Added new System Trace new tool for tracing Android system activity. This tool allow you 122 to capture a slice of system activity, plus additional information tagged from the <strong>Settings 123 > Developer Options > Monitoring: Enable traces</strong> or with specific calls added to your 124 application code.</li> 125 </li> 126 <li>Build System 127 <ul> 128 <li>Added automatic merging of library project manifest files into the including 129 project's manifest. Enable this feature with the {@code manifestmerger.enabled} property.</li> 130 <li>Added automatic ProGuard support for the {@code aapt -G} flag. This change causes 131 the build system to generate a temporary ProGuard keep-rules file containing classes that 132 are referenced from XML files (such as custom views) and pass this to ProGuard at shrink-time. This 133 can make the resulting APK much smaller when using just a small portion of a large library project 134 (such as the Android Support library), since the catch-all rules to keep all custom views from the 135 default ProGuard configuration file have also been removed.</li> 136 <li>Added two ProGuard configuration files for use in projects: {@code 137 proguard-android-optimize.txt} which enables optimizations and {@code proguard-android.txt} which 138 disables them.</li> 139 </ul> 140 </li> 141 <li>SDK Manager 142 <ul> 143 <li>Improved caching to reduce downloading of repository definitions.</li> 144 <li>Added <strong>Tools > Manage Add-on Sites</strong> option to allow deactivation of 145 third-party sites for improved performance (e.g., if one or more sites are temporarily slow to 146 load.)</li> 147 <li>Added settings for the SDK Manager download cache (<strong>SDK Manager > Tools > 148 Options</strong>).</li> 149 </ul> 150 </li> 151 </ul> 152 </dd> 153 <dt>Bug fixes:</dt> 154 <dd> 155 <ul> 156 <li>Build 157 <ul> 158 <li>Fixed problem where test projects did not have access to the full classpath of tested 159 projects, including Library Projects and third-party jars.</li> 160 <li>Fixed deployment logic so that applications with embedded tests can now be deployed 161 and tested like test applications, including code coverage information.</li> 162 <li>Fixed Ant support for testing projects with libraries.</li> 163 </ul> 164 </li> 165 </ul> 166 </dd> 167 </dl> 168 </div> 169 </div> 170 171 <div class="toggle-content closed"> 172 <p><a href="#" onclick="return toggleContent(this)"> 173 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img" 174 alt=""/>SDK Tools, Revision 19</a> <em>(April 2012)</em> 175 </p> 176 177 <div class="toggle-content-toggleme"> 178 <p class="note"><strong>Note:</strong> This update of SDK Tools is only available through 179 the <a href="{@docRoot}sdk/exploring.html">Android SDK Manager</a>. Use this tool to 180 download and install this update.</p> 181 182 <dl> 183 <dt>Dependencies:</dt> 184 <dd> 185 <ul> 186 <li>Android SDK Platform-tools revision 9 or later.</li> 187 <li>If you are developing in Eclipse with ADT, note that the SDK Tools r19 is designed for 188 use with ADT 18.0.0 and later. If you haven't already, we highly recommend updating your 189 <a href="{@docRoot}tools/sdk/eclipse-adt.html">ADT Plugin</a> to 18.0.0.</li> 190 <li>If you are developing outside Eclipse, you must have 191 <a href="http://ant.apache.org/">Apache Ant</a> 1.8 or later.</li> 192 </ul> 193 </dd> 194 <dt>Bug fixes:</dt> 195 <dd> 196 <ul> 197 <li>Fixed an issue that prevented some developers from running the emulator with GPU 198 acceleration.</li> 199 </ul> 200 </dd> 201 </dl> 202 </div> 203 </div> 204 205 <div class="toggle-content closed"> 206 <p><a href="#" onclick="return toggleContent(this)"> 207 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img" 208 alt=""/>SDK Tools, Revision 18</a> <em>(April 2012)</em> 209 </p> 210 211 <div class="toggle-content-toggleme"> 212 <p class="caution"><strong>Important:</strong> To download the new Android 213 4.0 system components from the Android SDK Manager, you must first update the 214 SDK tools to revision 14 or later and restart the Android SDK Manager. If you do not, 215 the Android 4.0 system components will not be available for download.</p> 216 217 <dl> 218 <dt>Dependencies:</dt> 219 <dd> 220 <ul> 221 <li>Android SDK Platform-tools revision 9 or later.</li> 222 <li>If you are developing in Eclipse with ADT, note that the SDK Tools r18 is designed for 223 use with ADT 18.0.0 and later. If you haven't already, we highly recommend updating your 224 <a href="{@docRoot}tools/sdk/eclipse-adt.html">ADT Plugin</a> to 18.0.0.</li> 225 <li>If you are developing outside Eclipse, you must have 226 <a href="http://ant.apache.org/">Apache Ant</a> 1.8 or later.</li> 227 </ul> 228 </dd> 229 <dt>General notes:</dt> 230 <dd> 231 <ul> 232 <li>Updated the SdkController app to encapsulate both sensor and multitouch emulation 233 functionality.</li> 234 </ul> 235 </dd> 236 <dt>Bug fixes:</dt> 237 <dd> 238 <ul> 239 <li>Fixed Ant issues where some jar libraries in the {@code libs/} folder are not picked up 240 in some cases.</li> 241 </ul> 242 </dd> 243 </dl> 244 </div> 245 </div> 246 247 <div class="toggle-content closed"> 248 <p><a href="#" onclick="return toggleContent(this)"> 249 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img" 250 alt=""/>SDK Tools, Revision 17</a> <em>(March 2012)</em> 251 </p> 252 253 <div class="toggle-content-toggleme"> 254 <p class="caution"><strong>Important:</strong> To download the new Android 255 4.0 system components from the Android SDK Manager, you must first update the 256 SDK tools to revision 14 or later and restart the Android SDK Manager. If you do not, 257 the Android 4.0 system components will not be available for download.</p> 258 259 <dl> 260 <dt>Dependencies:</dt> 261 <dd> 262 <ul> 263 <li>Android SDK Platform-tools revision 9 or later.</li> 264 <li>If you are developing in Eclipse with ADT, note that the SDK Tools r17 is designed for 265 use with ADT 17.0.0 and later. If you haven't already, we highly recommend updating your 266 <a href="{@docRoot}tools/sdk/eclipse-adt.html">ADT Plugin</a> to 17.0.0.</li> 267 <li>If you are developing outside Eclipse, you must have 268 <a href="http://ant.apache.org/">Apache Ant</a> 1.8 or later.</li> 269 </ul> 270 </dd> 271 <dt>General notes:</dt> 272 <dd> 273 <ul> 274 <li>Emulator 275 <ul> 276 <li>Added support for hardware accelerated graphics rendering. This feature requires an 277 API Level 15, Revision 3 or later system image. 278 (<a href="{@docRoot}tools/devices/emulator.html#accel-graphics">more info</a>) 279 </li> 280 <li>Added support for running Android x86 system images in virtualization mode on 281 Windows and Mac OS X. 282 (<a href="{@docRoot}tools/devices/emulator.html#accel-vm">more info</a>) 283 <p class="note"><strong>Note:</strong> Use the Android SDK Manager to download and 284 install x86 system images. Android x86 system images are not available for all API levels.</p> 285 </li> 286 <li>Added experimental support for multi-touch input by enabing the emulator to receive 287 touch input from a USB-tethered physical Android device. 288 (<a href="http://tools.android.com/tips/hardware-emulation">more info</a>)</li> 289 </ul> 290 </li> 291 <li>Added viewing of live detailed network usage of an app in DDMS. (<a 292 href="http://tools.android.com/recent/detailednetworkusageinddms">more info</a>)</li> 293 <li>ProGuard 294 <ul> 295 <li>Updated the bundled ProGuard tool to version 4.7. In addition to many new features, 296 this update fixes the {@code Conversion to Dalvik format failed with error 1} error some users have 297 experienced.</li> 298 <li>Updated the default {@code proguard.cfg} file with better default flags for 299 Android.</li> 300 <li>Split the ProGuard configuration file has been in half, with project specific flags 301 kept in project and the generic Android flags distributed (and updated) with the tools 302 themselves.</li> 303 </ul> 304 </li> 305 <li>Build 306 <ul> 307 <li>Added a feature that allows you to run some code only in debug mode. Builds now 308 generate a class called {@code BuildConfig} containing a {@code DEBUG} constant that is 309 automatically set according to your build type. You can check the ({@code BuildConfig.DEBUG}) 310 constant in your code to run debug-only functions.</li> 311 <li>Fixed issue when a project and its libraries include the same jar file in their libs 312 folder. (<a href="http://tools.android.com/recent/dealingwithdependenciesinandroidprojects">more 313 info</a>)</li> 314 <li>Added support for custom views with custom attributes in libraries. Layouts using 315 custom attributes must use the namespace URI {@code http://schemas.android.com/apk/res-auto} instead 316 of the URI that includes the app package name. This URI is replaced with the app specific one at 317 build time.</li> 318 </ul> 319 </li> 320 <li>Lint 321 <ul> 322 <li>Updated Lint to check Android application code. Lint rules which previously 323 performed pattern based searches in the application code (such as the unused resource check) have 324 been rewritten to use the more accurate Java-style parse trees.</li> 325 <li>Added support for checking library projects. This change means that rules such as 326 the unused resource check properly handle resources declared in a library project and referenced in 327 a downstream project.</li> 328 <li>Added ability to suppress Lint warnings in Java code with the new 329 {@code @SuppressLint} annotation, and in XML files with the new tools: namespace and 330 ignore attribute. (<a 331 href="http://tools.android.com/recent/ignoringlintwarnings">more info</a>)</li> 332 <li>New Lint checks: 333 <ul> 334 <li>Added check for Android API calls that require a version of Android higher than 335 the minimum supported version. You can use the new {@code @TargetApi} annotation 336 to suppress warnings when the code is wrapped in a system version condition. 337 (<a href="http://tools.android.com/recent/lintapicheck">more info</a>)</li> 338 <li>Added over 20 new Lint rules, including checks for 339 <a href="http://tools.android.com/recent/lintperformancechecks">performance</a>, 340 XML layouts, manifest and file handling.</li> 341 </ul> 342 </li> 343 </ul> 344 </li> 345 </ul> 346 </dd> 347 </dl> 348 </div> 349 </div> 350 351 <div class="toggle-content closed"> 352 <p><a href="#" onclick="return toggleContent(this)"> 353 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img" 354 alt=""/>SDK Tools, Revision 16</a> <em>(December 2011)</em> 355 </p> 356 357 <div class="toggle-content-toggleme"> 358 <p class="caution"><strong>Important:</strong> To download the new Android 359 4.0 system components from the Android SDK Manager, you must first update the 360 SDK tools to revision 14 or later and restart the Android SDK Manager. If you do not, 361 the Android 4.0 system components will not be available for download.</p> 362 363 <dl> 364 <dt>Dependencies:</dt> 365 <dd> 366 <ul> 367 <li>Android SDK Platform-tools revision 9 or later.</li> 368 <li>If you are developing in Eclipse with ADT, note that the SDK Tools r16 is designed for use 369 with ADT 16.0.0 and later. If you haven't already, we highly recommend updating your 370 <a href="{@docRoot}tools/sdk/eclipse-adt.html">ADT Plugin</a> to 16.0.0.</li> 371 <li>If you are developing outside Eclipse, you must have <a href="http://ant.apache.org/">Apache 372 Ant</a> 1.8 or later.</li> 373 </ul> 374 </dd> 375 <dt>General notes:</dt> 376 <dd> 377 <ul> 378 <li>Added Lint tools to detect common errors in Android projects. 379 (<a href="http://tools.android.com/recent/lint">more info</a>)</li> 380 <li>Added sensor emulation support, which allows the emulator to read sensor data from a 381 physical Android device. 382 (<a href="http://tools.android.com/recent/sensoremulation">more info</a>)</li> 383 <li>Added support for using a webcam to emulate a camera on Mac OS X.</li> 384 </ul> 385 </dd> 386 <dt>Bug fixes:</dt> 387 <dd> 388 <ul> 389 <li>Snapshots now work for Android 4.0 system images.</li> 390 <li>Fixed several small issues for the build file. 391 (<a href="http://code.google.com/p/android/issues/detail?id=21023">Issue 21023</a>, 392 <a href="http://code.google.com/p/android/issues/detail?id=21267">Issue 21267</a>, 393 <a href="http://code.google.com/p/android/issues/detail?id=21465">Issue 21465</a>, 394 <a href="http://code.google.com/p/android/issues/detail?id=21525">Issue 21525</a>).</li> 395 </ul> 396 </dd> 397 </dl> 398 </div> 399 </div> 400 401 <div class="toggle-content closed"> 402 <p><a href="#" onclick="return toggleContent(this)"> 403 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img" 404 alt=""/>SDK Tools, Revision 15</a> <em>(October 2011)</em> 405 </p> 406 407 <div class="toggle-content-toggleme"> 408 <p class="caution"><strong>Important:</strong> To download the new Android 409 4.0 system components from the Android SDK Manager, you must first update the 410 SDK tools to revision 14 or later and restart the Android SDK Manager. If you do not, 411 the Android 4.0 system components will not be available for download.</p> 412 <dl> 413 <dt>Dependencies:</dt> 414 <dd> 415 <ul><li>Android SDK Platform-tools revision 9 or later.</li> 416 <li>If you are developing in Eclipse with ADT, note that the SDK Tools r15 is designed for use 417 with ADT 15.0.0 and later. If you haven't already, we highly recommend updating your <a 418 href="{@docRoot}tools/sdk/eclipse-adt.html">ADT Plugin</a> to 15.0.0.</li> 419 <li>If you are developing outside Eclipse, you must have <a href="http://ant.apache.org/">Apache 420 Ant</a> 1.8 or later.</li> 421 </ul> 422 423 <dt>Bug fixes:</dt> 424 <dd> 425 <ul> 426 <li>Fixed emulator crash on Linux due to improper webcam detection 427 (<a href="http://code.google.com/p/android/issues/detail?id=20952">Issue 20952</a>).</li> 428 <li>Fixed emulator issue when using the <code>-wipe-data</code> argument.</li> 429 <li>Fixed build issue when using Renderscript in projects that target API levels 11-13 430 (<a href="http://code.google.com/p/android/issues/detail?id=21006">Issue 21006</a>).</li> 431 <li>Fixed issue when creating an AVD using the GoogleTV addon 432 (<a href="http://code.google.com/p/android/issues/detail?id=20963">Issue 20963</a>).</li> 433 <li>Fixed <code>ant test</code> 434 (<a href="http://code.google.com/p/android/issues/detail?id=20979">Issue 20979</a>).</li> 435 <li>Fixed <code>android update project</code> 436 (<a href="http://code.google.com/p/android/issues/detail?id=20535">Issue 20535</a>).</li> 437 <li>Fixed scrolling issue in the new Logcat panel of DDMS.</li> 438 <li>Fixed issue with MonkeyRunner 439 (<a href="http://code.google.com/p/android/issues/detail?id=20964">Issue 20964</a>).</li> 440 <li>Fixed issues in the SDK Manager 441 (<a href="http://code.google.com/p/android/issues/detail?id=20939">Issue 20939</a>, 442 <a href="http://code.google.com/p/android/issues/detail?id=20607">Issue 20607</a>).</li> 443 </ul> 444 </dd> 445 </dl> 446 </div> 447 </div> 448 449 <div class="toggle-content closed"> 450 <p><a href="#" onclick="return toggleContent(this)"> 451 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img" 452 alt=""/>SDK Tools, Revision 14</a> <em>(October 2011)</em> 453 </p> 454 455 <div class="toggle-content-toggleme"> 456 <p class="note"><strong>Important:</strong> To download the new Android 457 4.0 system components from the Android SDK Manager, you must first update the 458 SDK tools to revision 14 and restart the Android SDK Manager. If you do not, 459 the Android 4.0 system components will not be available for download.</p> 460 <dl> 461 <dt>Dependencies:</dt> 462 <dd> 463 <ul><li>Android SDK Platform-tools revision 8 or later.</li> 464 <li>If you are developing in Eclipse with ADT, note that the SDK Tools r14 is designed for use 465 with ADT 14.0.0 and later. If you haven't already, we highly recommend updating your <a 466 href="{@docRoot}tools/sdk/eclipse-adt.html">ADT Plugin</a> to 14.0.0.</li> 467 <li>If you are developing outside Eclipse, you must have <a href="http://ant.apache.org/">Apache 468 Ant</a> 1.8 or later.</li> 469 </ul> 470 471 <dt>General notes:</dt> 472 <dd> 473 <ul> 474 <li>Added webcam support to Android 4.0 or later platforms to emulate rear-facing cameras when 475 one webcam is present, and to emulate both rear-facing and front-facing cameras when two 476 webcams are present. Webcam support is for Windows and Linux only. 477 Mac support will come in a later release.</li> 478 <li>Changed <code>default.properties</code> to <code>project.properties</code> and 479 <code>build.properties</code> to <code>ant.properties</code>. Any existing 480 projects that you build with Ant must be updated with the <code>android update project</code> 481 command.</li> 482 <li>Changed Ant <code>build.xml</code> file to support improvements to the 483 build system and added and modified Ant commands to support these changes. For a list of Ant 484 commands, see the 485 <a href="{@docRoot}tools/building/building-cmdline.html#AntReference">Ant Command 486 Reference</a>.</li> 487 <li>Changed how library projects are built.</li> 488 <li>Improved incremental builds, so that resource compilation runs less frequently. Builds no 489 longer run when you edit strings or layouts (unless you add a new <code>id</code>) and no longer 490 run once for each library project.</li> 491 <li>Introduced a "PNG crunch cache" that only runs on modified PNG files, instead of 492 crunching all existing PNG files, all the time.</li> 493 <li>Revamped the SDK Manager UI (<a href="http://tools.android.com/recent/newsdkmanager">more 494 info</a>).</li> 495 </ul> 496 <p>For a complete overview of the build system changes and what you need to do to support them, 497 see the <a href="http://tools.android.com/recent/buildchangesinrevision14">Android Tools Project 498 site</a>.</p> 499 </dd> 500 </dl> 501 </div> 502 </div> 503 504 <div class="toggle-content closed"> 505 <p><a href="#" onclick="return toggleContent(this)"> 506 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img" 507 alt=""/>SDK Tools, Revision 13</a> <em>(September 2011)</em> 508 </p> 509 510 <div class="toggle-content-toggleme"> 511 <dl> 512 <dt>Dependencies:</dt> 513 <dd> 514 <p>If you are developing in Eclipse with ADT, note that the SDK Tools r13 is designed for use with 515 ADT 12.0.0 and later. If you haven't already, we highly recommend updating your <a 516 href="{@docRoot}tools/sdk/eclipse-adt.html">ADT Plugin</a> to 12.0.0.</p> 517 518 <p>If you are developing outside Eclipse, you must have <a href="http://ant.apache.org/">Apache 519 Ant</a> 1.8 or later.</p> 520 521 <dt>General notes:</dt> 522 <dd> 523 <ul> 524 <li>Fix compilation issue in Ant (<code>dex</code> step) when paths have spaces.</li> 525 <li>Fix issue in emulator installation when paths have spaces.</li> 526 <li>Fix issue when AVD paths have spaces.</li> 527 <li>Fix rendering issue when using emulator scaling (<a href="http://code.google.com/p/android/issues/detail?id=18299">see more</a>).</li> 528 </ul> 529 </dd> 530 </dl> 531 </div> 532 </div> 533 534 535 <div class="toggle-content closed"> 536 <p><a href="#" onclick="return toggleContent(this)"> 537 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img" 538 alt=""/>SDK Tools, Revision 12</a> <em>(July 2011)</em> 539 </p> 540 541 <div class="toggle-content-toggleme"> 542 <dl> 543 <dt>Dependencies:</dt> 544 <dd> 545 <p>If you are developing in Eclipse with ADT, note that the SDK Tools r12 is designed for use with 546 ADT 12.0.0 and later. If you haven't already, we highly recommend updating your <a 547 href="{@docRoot}tools/sdk/eclipse-adt.html">ADT Plugin</a> to 12.0.0.</p> 548 549 <p>If you are developing outside Eclipse, you must have <a href="http://ant.apache.org/">Apache 550 Ant</a> 1.8 or later.</p> 551 552 <dt>General notes:</dt> 553 <dd> 554 <ul> 555 <li>The AVD manager and emulator can now use system images 556 compiled for ARM v7 and x86 CPUs.</li> 557 </ul> 558 </dd> 559 </dl> 560 </div> 561 </div> 562 563 <div class="toggle-content closed"> 564 <p><a href="#" onclick="return toggleContent(this)"> 565 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img" 566 alt=""/>SDK Tools, Revision 11</a> <em>(May 2011)</em> 567 </p> 568 569 <div class="toggle-content-toggleme"> 570 <dl> 571 <dt>Dependencies:</dt> 572 <dd> 573 <p>If you are developing in Eclipse with ADT, note that the SDK Tools r11 is designed for use with 574 ADT 10.0.1 and later. If you haven't already, we highly recommend updating your <a 575 href="{@docRoot}tools/sdk/eclipse-adt.html">ADT Plugin</a> to 10.0.1.</p> 576 577 <p>If you are developing outside Eclipse, you must have <a href="http://ant.apache.org/">Apache 578 Ant</a> 1.8 or later.</p> 579 580 <dt>General notes:</dt> 581 <dd> 582 <ul> 583 <li>Miscellaneous emulator changes to support Android 3.1.</li> 584 </ul> 585 </dd> 586 </dl> 587 </div> 588 </div> 589 590 591 <div class="toggle-content closed"> 592 <p><a href="#" onclick="return toggleContent(this)"> 593 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img" 594 alt=""/>SDK Tools, Revision 10</a> <em>(February 2011)</em> 595 </p> 596 597 <div class="toggle-content-toggleme"> 598 <dl> 599 <dt>Dependencies:</dt> 600 <dd> 601 <p>If you are developing in Eclipse with ADT, note that the SDK Tools r10 is 602 designed for use with ADT 10.0.0 and later. After installing SDK Tools r10, we 603 highly recommend updating your ADT Plugin to 10.0.0.</p> 604 605 <p>If you are developing outside Eclipse, you must have <a href="http://ant.apache.org/">Apache 606 Ant</a> 1.8 or later.</p> 607 608 <dt>General notes:</dt> 609 <dd> 610 <ul> 611 <li>The tools now automatically generate Java Programming Language source files (in the 612 <code>gen</code> directory) and 613 bytecode (in the <code>res/raw</code> directory) from your native <code>.rs</code> files</li> 614 </ul> 615 </dd> 616 </dl> 617 </div> 618 </div> 619 620 621 622 <div class="toggle-content closed"> 623 <p><a href="#" onclick="return toggleContent(this)"> 624 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img" 625 alt=""/>SDK Tools, Revision 9</a> <em>(January 2011)</em> 626 </p> 627 628 <div class="toggle-content-toggleme"> 629 <dl> 630 <dt>Dependencies:</dt> 631 <dd> 632 <p>If you are developing in Eclipse with ADT, note that the SDK Tools r9 is 633 designed for use with ADT 9.0.0 and later. After installing SDK Tools r9, we 634 highly recommend updating your ADT Plugin to 9.0.0.</p> 635 636 <p>If you are developing outside Eclipse, you must have <a href="http://ant.apache.org/">Apache 637 Ant</a> 1.8 or later.</p> 638 639 <dt>Upgrading to SDK Tools r9:</dt> 640 <dd> 641 <p>If you are upgrading to SDK Tools r9 from SDK Tools r7 or earlier, the default installed location 642 for the <code>adb</code> tool has changed from <code><<em>SDK</em>>/tools/adb</code> to 643 <code><<em>SDK</em>>/platform-tools/adb</code>. This means that you should 644 add the new location to your PATH and modify any custom build scripts to 645 reference the new location. Copying the <code>adb</code> executable from the new 646 location to the old is not recommended, since subsequent updates to the SDK 647 Tools will delete the file.</p> 648 </dd> 649 650 <dt>General notes:</dt> 651 <dd> 652 <ul> 653 <li>The default ProGuard configuration, <code>proguard.cfg</code>, now ignores the following classes: 654 <ul> 655 <li>classes that extend {@link android.preference.Preference}</li> 656 <li>classes that extend {@link android.app.backup.BackupAgentHelper}</li> 657 </ul> 658 </li> 659 <li>Ant lib rules now allow you to override <code>java.encoding</code>, <code>java.source</code>, 660 and <code>java.target</code> properties.</li> 661 <li>The default encoding for the <code>javac</code> Ant task is now UTF-8.</li> 662 <li>The LogCat view in DDMS now properly displays UTF-8 characters.</li> 663 <li>The SDK Manager is more reliable on Windows. For details on the improvements, see the 664 <a href="http://tools.android.com/recent/sdkmanagerfixes">Android Tools Project Site</a>. </li> 665 <li>Early look at the new snapshot feature: To improve startup time for the emulator, you can 666 enable snapshots for the system state. The emulator will then restore to the state when it last 667 closed almost instantly. <strong>Note:</strong> The snapshot feature is still under active 668 development and might not always perform as expected.</li> 669 <li>Fixed the missing JAR file error that prevented <code>draw9patch</code> from running.</li> 670 <li>Fixed the Windows launch scripts <code>hierarchyviewer</code> and <code>ddms</code> to support 671 the new location of <code>adb</code>.</li> 672 <li>Known issues with emulator performance: Because the Android emulator must simulate the ARM 673 instruction set architecture on your computer, emulator performance is slow. We're working hard to 674 resolve the performance issues and it will improve in future releases.</li> 675 </ul> 676 </dd> 677 </dl> 678 </div> 679 </div> 680 681 <div class="toggle-content closed"> 682 <p><a href="#" onclick="return toggleContent(this)"> 683 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img" 684 alt=""/>SDK Tools, Revision 8</a> <em>(December 2010)</em> 685 </p> 686 687 <div class="toggle-content-toggleme"> 688 <dl> 689 <dt>Dependencies:</dt> 690 <dd> 691 <p>If you are developing in Eclipse with ADT, note that SDK Tools r8 is 692 designed for use with ADT 8.0.0 and later. After installing SDK Tools r8, we 693 highly recommend updating your ADT Plugin to 8.0.0.</p> 694 695 <p>If you are developing outside Eclipse, you must have <a href="http://ant.apache.org/">Apache 696 Ant</a> 1.8 or later.</p> 697 698 <p>Also note that SDK Tools r8 requires a new SDK component called 699 <em>Platform-tools</em>. The new Platform-tools component lets all SDK platforms 700 (Android 2.1, Android 2.2, and so on) use the same (latest) version of build 701 tools such as <code>adb</code>, <code>aapt</code>, <code>aidl</code>, and 702 <code>dx</code>. To download the Platform-tools component, use the Android SDK 703 Manager, as described in <a href="{@docRoot}sdk/exploring.html">Exploring the 704 SDK</a></p> 705 706 <dt>Upgrading from SDK Tools r7:</dt> 707 <dd> 708 <p>If you are upgrading to SDK Tools r8 from an earlier version, note that the 709 the default installed location for the <code>adb</code> tool has changed from 710 <code><<em>SDK</em>>/tools/adb</code> to 711 <code><<em>SDK</em>>/platform-tools/adb</code>. This means that you should 712 add the new location to your PATH and modify any custom build scripts to 713 reference the new location. Copying the <code>adb</code> executable from the new 714 location to the old is not recommended, since subsequent updates to the SDK 715 Tools will delete the file.</p> 716 </dd> 717 718 <dt>General notes:</dt> 719 <dd> 720 <ul> 721 <li>All SDK platforms now support Library Projects.</li> 722 <li>Support for a true debug build. Developers no longer need to add the 723 <code>android:debuggable</code> attribute to the 724 <code><application></code> tag in the manifest — the build tools add 725 the attribute automatically. In Eclipse/ADT, all incremental builds are assumed 726 to be debug builds, so the tools insert <code>android:debuggable="true"</code>. 727 When exporting a signed release build, the tools do not add the attribute. In 728 Ant, a <code>ant debug</code> command automatically inserts the 729 <code>android:debuggable="true"</code> attribute, while <code>ant release</code> 730 does not. If <code>android:debuggable="true"</code> is manually set, then 731 <code>ant release</code> will actually do a debug build, rather than a release 732 build.</li> 733 <li>Automatic ProGuard support in release builds. Developers generate a ProGuard 734 configuration file using the <code>android</code> tool — the build tools 735 then automatically run ProGuard against the project sources during the build. 736 For more information, see the <a 737 href="{@docRoot}tools/help/proguard.html">ProGuard</a> 738 documentation. </li> 739 <li>New overridable Ant javac properties: <code>java.encoding</code>, 740 <code>java.source</code>, and <code>java.target</code> (default values are 741 "ascii", "1.5", and "1.5", respectively).</li> 742 <li>New UI for the HierarchyViewer tool.</li> 743 </ul> 744 </dd> 745 </dl> 746 </div> 747 </div> 748 749 <div class="toggle-content closed"> 750 <p><a href="#" onclick="return toggleContent(this)"> 751 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img" 752 alt=""/>SDK Tools, Revision 7</a> <em>(September 2010)</em> 753 </p> 754 755 <div class="toggle-content-toggleme"> 756 <dl> 757 <dt>Dependencies:</dt> 758 <dd> 759 <p>If you are developing in Eclipse with ADT, note that SDK Tools r7 is 760 designed for use with ADT 0.9.8 and later. After installing SDK Tools r7, we 761 highly recommend updating your ADT Plugin to 0.9.8.</p> 762 </dd> 763 764 <dt>General notes:</dt> 765 <dd> 766 <ul> 767 <li>Added support for library projects that depend on other library projects.</li> 768 <li>Adds support for aidl files in library projects.</li> 769 <li>Adds support for extension targets in Ant build to perform tasks between the 770 normal tasks: <code>-pre-build</code>, <code>-pre-compile</code>, and 771 <code>-post-compile</code>.</li> 772 <li>Adds support for "headless" SDK update. See <code>android -h update sdk</code> 773 for more information.</li> 774 <li>Fixes location control in DDMS to work in any locale not using '.' as a 775 decimal point.</li> 776 </ul> 777 </ul> 778 </dd> 779 </dl> 780 </div> 781 </div> 782 783 <div class="toggle-content closed"> 784 <p><a href="#" onclick="return toggleContent(this)"> 785 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img" 786 alt=""/>SDK Tools, Revision 6</a> <em>(May 2010)</em> 787 </p> 788 789 <div class="toggle-content-toggleme"> 790 <dl> 791 <dt>Dependencies:</dt> 792 <dd> 793 <p>If you are developing in Eclipse with ADT, note that SDK Tools r6 is 794 designed for use with ADT 0.9.7 and later. After installing SDK Tools r6, we 795 highly recommend updating your ADT Plugin to 0.9.7.</p> 796 </dd> 797 798 <dt>Library projects:</dt> 799 <dd> 800 <p>The SDK Tools now support the use of <em>library projects</em> during 801 development, a capability that lets you store shared Android application 802 code and resources in a separate development project. You can then reference the 803 library project from other Android projects and, at build time, the tools 804 compile the shared code and resources as part of the dependent applications. 805 More information about this feature is available in the <a 806 href="{@docRoot}tools/projects/index.html#LibraryProjects">Creating and Managing Projects</a> document.</p> 807 <p>If you are developing in Eclipse, <a href="eclipse-adt.html">ADT</a> 808 provides the equivalent library project support.</p> 809 </dd> 810 </dl> 811 </div> 812 </div> 813 814 <div class="toggle-content closed"> 815 <p><a href="#" onclick="return toggleContent(this)"> 816 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img" 817 alt=""/>SDK Tools, Revision 5</a> <em>(March 2010)</em> 818 </p> 819 820 <div class="toggle-content-toggleme"> 821 <dl> 822 <dt>Dependencies:</dt> 823 <dd><ul> 824 <li>If you are developing in Eclipse with ADT, note that SDK Tools r5 is 825 designed for use with ADT 0.9.6 and later. After installing SDK Tools r5, we 826 highly recommend updating your ADT Plugin to 0.9.6.</li> 827 <li>For Mac OS platforms, OS X 10.4.x (Tiger) is no longer 828 officially supported. </li> 829 </ul> 830 </dd> 831 832 <dt>SDK and AVD Manager:</dt> 833 <dd> 834 <ul> 835 <li>Fixes SSL download for the standalone version of the SDK Updater.</li> 836 <li>Fixes issue with 64-bit JVM on Windows.</li> 837 <li>Adds support for platform samples components.</li> 838 <li>Improves support for dependency between components.</li> 839 <li>AVDs now sorted by API level.</li> 840 <li>The AVD creation dialog now enforces a minimum SD card size of 9MB.</li> 841 <li>Prevents deletion of running AVDs.</li> 842 <li>Settings are now automatically saved, no need to click "Apply".</li> 843 </ul> 844 </dd> 845 846 <dt>Emulator:</dt> 847 <dd> 848 <ul> 849 <li>Emulator now requires SD card to be 9MB or more.</li> 850 </ul> 851 </dd> 852 853 <dt>Layoutopt:</dt> 854 <dd> 855 <ul> 856 <li>Fixes <code>layoutopt.bat</code> to execute correctly on Windows.</li> 857 </ul> 858 </dd> 859 </dl> 860 </div> 861 </div> 862 863 <div class="toggle-content closed"> 864 <p><a href="#" onclick="return toggleContent(this)"> 865 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img" 866 alt=""/>SDK Tools, Revision 4</a> <em>(December 2009)</em> 867 </p> 868 869 <div class="toggle-content-toggleme"> 870 <dl> 871 <dt>Dependencies:</dt> 872 <dd><p>SDK Tools r4 is compatible with ADT 0.9.5 and later, but not 873 compatible with earlier versions. If you are developing in Eclipse with ADT, you 874 <strong>must</strong> update your ADT plugin to version 0.9.5 or higher if you 875 install SDK Tools r4 in your SDK. </p></dd> 876 877 <dt>General notes:</dt> 878 <dd> 879 <ul> 880 <li>Launcher script now forces GDK_NATIVE_WINDOW=true (linux only), to fix a 881 compatibility issue between GTK and SWT.</li> 882 </ul> 883 </dd> 884 885 <dt>Android SDK and AVD Manager:</dt> 886 <dd> 887 <ul> 888 <li>AVD Launch dialog now shows scale value.</li> 889 <li>Fixes potential NPE in SDK Manager on AVD launch, for older AVD with no 890 skin name specified.</li> 891 <li>Fixes XML validation issue in on older Java versions.</li> 892 <li>No longer forces the use of Java 1.5 on Mac OS X.</li> 893 </ul> 894 </dd> 895 896 <dt>Emulator:</dt> 897 <dd> 898 <ul> 899 <li>No longer limits the size of the system partition.</li> 900 </ul> 901 </dd> 902 903 <dt>Ant build tools:</dt> 904 <dd> 905 <ul> 906 <li>.apk packaging now properly ignores vi swap files as well as hidden files.</li> 907 </ul> 908 </dd> 909 </dl> 910 </div> 911 </div> 912 913 <div class="toggle-content closed"> 914 <p><a href="#" onclick="return toggleContent(this)"> 915 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-content-img" 916 alt=""/>SDK Tools, Revision 3</a> <em>(October 2009)</em> 917 </p> 918 919 <div class="toggle-content-toggleme"> 920 <dl> 921 <dt>Dependencies:</dt> 922 <dd><p>SDK Tools r3 is compatible with ADT 0.9.4 and later, but not 923 compatible with earlier versions. If you are developing in Eclipse with ADT, you 924 <strong>must</strong> update your ADT plugin to version 0.9.4 or higher if you 925 install SDK Tools r3 in your SDK.</p> 926 </dd> 927 928 <dt>Android tool:</dt> 929 <dd> 930 <ul> 931 <li>Adds new <code>android create test-project</code> and <code>android update 932 test-project</code> commands to allow for greater flexibility in the location of the 933 main and test projects.</li> 934 </ul> 935 </dd> 936 937 <dt>DDMS:</dt> 938 <dd> 939 <ul> 940 <li>Adds a button to dump HPROF file for running applications (app must be able 941 to write to the sdcard).</li> 942 <li>Button to start/stop profiling of a running application (app must be able to 943 write to the sdcard). Upon stop, Traceview will automatically be launched to 944 display the trace.</li> 945 <li>Fixed DDMS, Traceview, and the AVD Mananger/SDK Updater to run on Mac OS X 946 10.6.</li> 947 <li>Fixed screenshot support for devices running 32-bit framebuffer.</li> 948 </ul> 949 </dd> 950 951 <dt>Android SDK and AVD Manager:</dt> 952 <dd> 953 <ul> 954 <li>Provides a new UI that lets you set options for controlling 955 the emulator skin, screen size/density, and scale factor used when launching 956 an AVD.</li> 957 <li>Provides improved AVD creation UI, which lets you customize the hardware 958 properties of your AVDs.</li> 959 <li>Now enforces dependencies between platforms and tools components, and 960 between SDK add-ons and platforms.</li> 961 </ul> 962 </dd> 963 964 <dt>Layoutopt, a new tool for optimizing layouts:</dt> 965 966 <dd><p>The SDK Tools r3 package includes <code>layoutopt</code>, a new command-line 967 tool that helps you optimize your layout hierarchies. When run against your 968 layout files, the tool analyzes their hierarchies and notifies you of 969 inefficiencies and other potential issues. The tool also provides simple 970 solutions for the issues it finds. For usage, see <a 971 href="/tools/help/layoutopt.html">layoutopt</a>.</p> 972 </dd> 973 </dl> 974 </div> 975 </div> 976 977