Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 1 | page.title=SDK Tools |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 2 | @jd:body |
| 3 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 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> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 6 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 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> |
Dirk Dougherty | bf15ce6 | 2009-10-23 19:17:12 -0700 | [diff] [blame] | 10 | |
Dirk Dougherty | 5c2a502 | 2009-12-17 16:59:46 -0800 | [diff] [blame] | 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 and AVD 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/adding-components.html#UpdatingComponents">Updating SDK |
| 16 | Components</a>. </p> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 17 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 18 | <h2 id="notes">Revisions</h2> |
Dirk Dougherty | bca9f1b | 2009-11-18 23:06:16 -0800 | [diff] [blame] | 19 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 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 |
| 23 | and AVD Manager. </p> |
Dirk Dougherty | bca9f1b | 2009-11-18 23:06:16 -0800 | [diff] [blame] | 24 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 25 | <script type="text/javascript"> |
| 26 | function toggleDiv(link) { |
| 27 | var toggleable = $(link).parent(); |
| 28 | if (toggleable.hasClass("closed")) { |
| 29 | //$(".toggleme", toggleable).slideDown("fast"); |
| 30 | toggleable.removeClass("closed"); |
| 31 | toggleable.addClass("open"); |
| 32 | $(".toggle-img", toggleable).attr("title", "hide").attr("src", (toRoot + "assets/images/triangle-opened.png")); |
| 33 | } else { |
| 34 | //$(".toggleme", toggleable).slideUp("fast"); |
| 35 | toggleable.removeClass("open"); |
| 36 | toggleable.addClass("closed"); |
| 37 | $(".toggle-img", toggleable).attr("title", "show").attr("src", (toRoot + "assets/images/triangle-closed.png")); |
| 38 | } |
| 39 | return false; |
| 40 | } |
| 41 | </script> |
| 42 | <style> |
| 43 | .toggleable { |
| 44 | padding: .25em 1em; |
| 45 | } |
| 46 | .toggleme { |
| 47 | padding: 1em 1em 0 2em; |
| 48 | line-height:1em; |
| 49 | } |
| 50 | .toggleable a { |
| 51 | text-decoration:none; |
| 52 | } |
Dirk Dougherty | 0d1b081 | 2010-04-07 17:05:16 -0700 | [diff] [blame] | 53 | .toggleme a { |
| 54 | text-decoration:underline; |
| 55 | } |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 56 | .toggleable.closed .toggleme { |
| 57 | display:none; |
| 58 | } |
| 59 | #jd-content .toggle-img { |
| 60 | margin:0; |
| 61 | } |
| 62 | </style> |
Dirk Dougherty | 0d1b081 | 2010-04-07 17:05:16 -0700 | [diff] [blame] | 63 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 64 | <div class="toggleable opened"> |
| 65 | <a href="#" onclick="return toggleDiv(this)"> |
| 66 | <img src="{@docRoot}assets/images/triangle-opened.png" class="toggle-img" height="9px" width="9px" /> |
Dirk Dougherty | 022171b | 2010-07-30 19:24:17 -0700 | [diff] [blame] | 67 | SDK Tools, Revision 7</a> <em>(September 2010)</em> |
| 68 | <div class="toggleme"> |
| 69 | |
| 70 | <dl> |
| 71 | <dt>Dependencies:</dt> |
| 72 | <dd> |
| 73 | <p>If you are developing in Eclipse with ADT, note that SDK Tools r7 is |
| 74 | designed for use with ADT 0.9.8 and later. After installing SDK Tools r7, we |
| 75 | highly recommend updating your ADT Plugin to 0.9.8.</p> |
| 76 | </dd> |
| 77 | |
| 78 | <dt>General notes:</dt> |
| 79 | <dd> |
| 80 | <ul> |
| 81 | <li>Added support for library projects that depend on other library projects.</li> |
| 82 | <li>Adds support for aidl files in library projects.</li> |
| 83 | <li>Adds support for extension targets in Ant build to perform tasks between the |
| 84 | normal tasks: <code>-pre-build</code>, <code>-pre-compile</code>, and |
| 85 | <code>-post-compile</code>.</li> |
| 86 | <li>Adds support for "headless" SDK update. See <code>android -h update sdk</code> |
| 87 | for more information.</li> |
| 88 | <li>Fixes location control in DDMS to work in any locale not using '.' as a |
| 89 | decimal point.</li> |
| 90 | </li> |
| 91 | </ul> |
| 92 | </dd> |
| 93 | </dl> |
| 94 | </div> |
| 95 | </div> |
| 96 | |
| 97 | <div class="toggleable closed"> |
| 98 | <a href="#" onclick="return toggleDiv(this)"> |
| 99 | <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" /> |
Dirk Dougherty | 0d1b081 | 2010-04-07 17:05:16 -0700 | [diff] [blame] | 100 | SDK Tools, Revision 6</a> <em>(May 2010)</em> |
| 101 | <div class="toggleme"> |
| 102 | |
| 103 | <dl> |
| 104 | <dt>Dependencies:</dt> |
| 105 | <dd> |
| 106 | <p>If you are developing in Eclipse with ADT, note that SDK Tools r6 is |
| 107 | designed for use with ADT 0.9.7 and later. After installing SDK Tools r6, we |
| 108 | highly recommend updating your ADT Plugin to 0.9.7.</p> |
| 109 | </dd> |
| 110 | |
| 111 | <dt>Library projects:</dt> |
| 112 | <dd> |
| 113 | <p>The SDK Tools now support the use of <em>library projects</em> during |
| 114 | development, a capability that lets you store shared Android application |
| 115 | code and resources in a separate development project. You can then reference the |
| 116 | library project from other Android projects and, at build time, the tools |
| 117 | compile the shared code and resources as part of the dependent applications. |
| 118 | More information about this feature is available in the <a |
| 119 | href="{@docRoot}guide/developing/other-ide.html#libraryProject">Developing |
| 120 | in Other IDEs</a> document.</p> |
| 121 | <p>If you are developing in Eclipse, <a href="eclipse-adt.html">ADT 0.9.7</a> |
| 122 | provides the equivalent library project support.</p> |
| 123 | </dd> |
| 124 | </dl> |
| 125 | </div> |
| 126 | </div> |
| 127 | |
| 128 | <div class="toggleable closed"> |
| 129 | <a href="#" onclick="return toggleDiv(this)"> |
Dirk Dougherty | 74a74d3 | 2010-09-09 18:40:13 -0700 | [diff] [blame] | 130 | <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" /> |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 131 | SDK Tools, Revision 5</a> <em>(March 2010)</em> |
| 132 | <div class="toggleme"> |
Dirk Dougherty | bca9f1b | 2009-11-18 23:06:16 -0800 | [diff] [blame] | 133 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 134 | <dl> |
| 135 | <dt>Dependencies:</dt> |
| 136 | <dd><ul> |
| 137 | <li>If you are developing in Eclipse with ADT, note that SDK Tools r5 is |
| 138 | designed for use with ADT 0.9.6 and later. After installing SDK Tools r5, we |
| 139 | highly recommend updating your ADT Plugin to 0.9.6.</li> |
| 140 | <li>For Mac OS platforms, OS X 10.4.x (Tiger) is no longer |
| 141 | officially supported. </li> |
| 142 | </ul> |
| 143 | </dd> |
| 144 | |
| 145 | <dt>SDK and AVD Manager:</dt> |
| 146 | <dd> |
| 147 | <ul> |
| 148 | <li>Fixes SSL download for the standalone version of the SDK Updater.</li> |
| 149 | <li>Fixes issue with 64-bit JVM on Windows.</li> |
| 150 | <li>Adds support for platform samples components.</li> |
| 151 | <li>Improves support for dependency between components.</li> |
| 152 | <li>AVDs now sorted by API level.</li> |
| 153 | <li>The AVD creation dialog now enforces a minimum SD card size of 9MB.</li> |
| 154 | <li>Prevents deletion of running AVDs.</li> |
| 155 | <li>Settings are now automatically saved, no need to click "Apply".</li> |
| 156 | </ul> |
| 157 | </dd> |
| 158 | |
| 159 | <dt>Emulator:</dt> |
| 160 | <dd> |
| 161 | <ul> |
| 162 | <li>Emulator now requires SD card to be 9MB or more.</li> |
| 163 | </ul> |
| 164 | </dd> |
| 165 | |
| 166 | <dt>Layoutopt:</dt> |
| 167 | <dd> |
| 168 | <ul> |
| 169 | <li>Fixes <code>layoutopt.bat</code> to execute correctly on Windows.</li> |
| 170 | </ul> |
| 171 | </dd> |
| 172 | </dl> |
| 173 | </div> |
| 174 | </div> |
| 175 | |
| 176 | <div class="toggleable closed"> |
| 177 | <a href="#" onclick="return toggleDiv(this)"> |
| 178 | <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" /> |
| 179 | SDK Tools, Revision 4</a> <em>(December 2009)</em> |
| 180 | <div class="toggleme"> |
| 181 | |
| 182 | <dl> |
| 183 | <dt>Dependencies:</dt> |
| 184 | <dd><p>SDK Tools r4 is compatible with ADT 0.9.5 and later, but not |
Dirk Dougherty | bca9f1b | 2009-11-18 23:06:16 -0800 | [diff] [blame] | 185 | compatible with earlier versions. If you are developing in Eclipse with ADT, you |
| 186 | <strong>must</strong> update your ADT plugin to version 0.9.5 or higher if you |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 187 | install SDK Tools r4 in your SDK. </p></dd> |
Dirk Dougherty | bca9f1b | 2009-11-18 23:06:16 -0800 | [diff] [blame] | 188 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 189 | <dt>General notes:</dt> |
| 190 | <dd> |
Dirk Dougherty | bca9f1b | 2009-11-18 23:06:16 -0800 | [diff] [blame] | 191 | <ul> |
| 192 | <li>Launcher script now forces GDK_NATIVE_WINDOW=true (linux only), to fix a |
| 193 | compatibility issue between GTK and SWT.</li> |
| 194 | </ul> |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 195 | </dd> |
Dirk Dougherty | bca9f1b | 2009-11-18 23:06:16 -0800 | [diff] [blame] | 196 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 197 | <dt>Android SDK and AVD Manager:</dt> |
| 198 | <dd> |
Dirk Dougherty | bca9f1b | 2009-11-18 23:06:16 -0800 | [diff] [blame] | 199 | <ul> |
| 200 | <li>AVD Launch dialog now shows scale value.</li> |
| 201 | <li>Fixes potential NPE in SDK Manager on AVD launch, for older AVD with no |
| 202 | skin name specified.</li> |
| 203 | <li>Fixes XML validation issue in on older Java versions.</li> |
| 204 | <li>No longer forces the use of Java 1.5 on Mac OS X.</li> |
| 205 | </ul> |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 206 | </dd> |
Dirk Dougherty | bca9f1b | 2009-11-18 23:06:16 -0800 | [diff] [blame] | 207 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 208 | <dt>Emulator:</dt> |
| 209 | <dd> |
Dirk Dougherty | bca9f1b | 2009-11-18 23:06:16 -0800 | [diff] [blame] | 210 | <ul> |
| 211 | <li>No longer limits the size of the system partition.</li> |
| 212 | </ul> |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 213 | </dd> |
Dirk Dougherty | bca9f1b | 2009-11-18 23:06:16 -0800 | [diff] [blame] | 214 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 215 | <dt>Ant build tools:</dt> |
| 216 | <dd> |
Dirk Dougherty | bca9f1b | 2009-11-18 23:06:16 -0800 | [diff] [blame] | 217 | <ul> |
| 218 | <li>.apk packaging now properly ignores vi swap files as well as hidden files.</li> |
| 219 | </ul> |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 220 | </dd> |
| 221 | </dl> |
| 222 | </div> |
| 223 | </div> |
Dirk Dougherty | bca9f1b | 2009-11-18 23:06:16 -0800 | [diff] [blame] | 224 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 225 | <div class="toggleable closed"> |
| 226 | <a href="#" onclick="return toggleDiv(this)"> |
| 227 | <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" /> |
| 228 | SDK Tools, Revision 3</a> <em>(October 2009)</em> |
| 229 | <div class="toggleme"> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 230 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 231 | <dl> |
| 232 | <dt>Dependencies:</dt> |
| 233 | <dd><p>SDK Tools r3 is compatible with ADT 0.9.4 and later, but not |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 234 | compatible with earlier versions. If you are developing in Eclipse with ADT, you |
| 235 | <strong>must</strong> update your ADT plugin to version 0.9.4 or higher if you |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 236 | install SDK Tools r3 in your SDK.</p> |
| 237 | </dd> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 238 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 239 | <dt>Android tool:</dt> |
| 240 | <dd> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 241 | <ul> |
| 242 | <li>Adds new <code>android create test-project</code> and <code>android update |
| 243 | test-project</code> commands to allow for greater flexibility in the location of the |
| 244 | main and test projects.</li> |
| 245 | </ul> |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 246 | </dd> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 247 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 248 | <dt>DDMS:</dt> |
| 249 | <dd> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 250 | <ul> |
| 251 | <li>Adds a button to dump HPROF file for running appplications (app must be able |
| 252 | to write to the sdcard).</li> |
| 253 | <li>Button to start/stop profiling of a running application (app must be able to |
| 254 | write to the sdcard). Upon stop, Traceview will automatically be launched to |
| 255 | display the trace.</li> |
| 256 | <li>Fixed DDMS, Traceview, and the AVD Mananger/SDK Updater to run on Mac OS X |
| 257 | 10.6.</li> |
| 258 | <li>Fixed screenshot support for devices running 32-bit framebuffer.</li> |
| 259 | </ul> |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 260 | </dd> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 261 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 262 | <dt>Android SDK and AVD Manager:</dt> |
| 263 | <dd> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 264 | <ul> |
| 265 | <li>Provides a new UI that lets you set options for controlling |
| 266 | the emulator skin, screen size/density, and scale factor used when launching |
| 267 | an AVD.</li> |
| 268 | <li>Provides improved AVD creation UI, which lets you customize the hardware |
| 269 | properties of your AVDs.</li> |
| 270 | <li>Now enforces dependencies between platforms and tools components, and |
| 271 | between SDK add-ons and platforms.</li> |
| 272 | </ul> |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 273 | </dd> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 274 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 275 | <dt>Layoutopt, a new tool for optimizing layouts:</dt> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 276 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 277 | <dd><p>The SDK Tools r3 package includes <code>layoutopt</code>, a new command-line |
Dirk Dougherty | bf15ce6 | 2009-10-23 19:17:12 -0700 | [diff] [blame] | 278 | tool that helps you optimize your layout hierarchies. When run against your |
| 279 | layout files, the tool analyzes their hierarchies and notifies you of |
| 280 | inefficiencies and other potential issues. The tool also provides simple |
| 281 | solutions for the issues it finds. For usage, see <a |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 282 | href="/guide/developing/tools/layoutopt.html">layoutopt</a>.</p> |
| 283 | </dd> |
| 284 | </dl> |
| 285 | </div> |
| 286 | </div> |