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