blob: bbbca81cd719b41b457bc8cf2ad0743e7a75d0f2 [file] [log] [blame]
Dirk Dougherty7b229ef2010-03-26 17:32:26 -07001page.title=SDK Tools
Dirk Doughertyee58d1b2009-10-16 15:25:15 -07002@jd:body
3
Dirk Dougherty7b229ef2010-03-26 17:32:26 -07004<p>SDK Tools is a downloadable component for the Android SDK. It includes the
Robert Ly6c81c302011-10-05 12:59:29 -07005complete set of development and debugging tools for the Android SDK.</p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -07006
Robert Lydec97362011-09-22 10:33:28 -07007<p>If you are new to the Android SDK, the <a
Dirk Dougherty7b229ef2010-03-26 17:32:26 -07008href="{@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>
Dirk Doughertybf15ce62009-10-23 19:17:12 -070010
Dirk Dougherty5c2a5022009-12-17 16:59:46 -080011<p>If you are already using the SDK and you want to update to the latest version
Joe Fernandez890f7ea2011-11-28 17:00:27 -080012of the SDK Tools, use the <em>Android SDK Manager</em> to get the
Dirk Dougherty5c2a5022009-12-17 16:59:46 -080013update, rather than downloading a new SDK starter package. For more information
14about how to update, see <a
15href="{@docRoot}sdk/adding-components.html#UpdatingComponents">Updating SDK
Robert Ly6c81c302011-10-05 12:59:29 -070016Components</a>.</p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070017
Robert Lyedc2aac2011-01-14 16:25:09 -080018
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070019<h2 id="notes">Revisions</h2>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -080020
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070021<p>The sections below provide notes about successive releases of
22the SDK Tools, as denoted by revision number. To determine what revision of the SDK
Joe Fernandez890f7ea2011-11-28 17:00:27 -080023Tools you are using, refer to the "Installed Packages" listing in the Android SDK Manager. </p>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -080024
Scott Maine09743272011-10-14 11:25:46 -070025<p>For a summary of all known issues in SDK Tools, see <a
Scott Mainb321cd92011-10-20 12:57:43 -070026href="http://tools.android.com/knownissues">http://tools.android.com/knownissues</a>.</p>
Scott Maine09743272011-10-14 11:25:46 -070027
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070028<script type="text/javascript">
29function toggleDiv(link) {
30 var toggleable = $(link).parent();
31 if (toggleable.hasClass("closed")) {
32 //$(".toggleme", toggleable).slideDown("fast");
33 toggleable.removeClass("closed");
34 toggleable.addClass("open");
35 $(".toggle-img", toggleable).attr("title", "hide").attr("src", (toRoot + "assets/images/triangle-opened.png"));
36 } else {
37 //$(".toggleme", toggleable).slideUp("fast");
38 toggleable.removeClass("open");
39 toggleable.addClass("closed");
40 $(".toggle-img", toggleable).attr("title", "show").attr("src", (toRoot + "assets/images/triangle-closed.png"));
41 }
42 return false;
43}
44</script>
45<style>
46.toggleable {
47padding: .25em 1em;
48}
49.toggleme {
50 padding: 1em 1em 0 2em;
51 line-height:1em;
52}
53.toggleable a {
54 text-decoration:none;
55}
Dirk Dougherty0d1b0812010-04-07 17:05:16 -070056.toggleme a {
57 text-decoration:underline;
58}
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070059.toggleable.closed .toggleme {
60 display:none;
61}
62#jd-content .toggle-img {
63 margin:0;
64}
65</style>
Dirk Dougherty0d1b0812010-04-07 17:05:16 -070066
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070067<div class="toggleable opened">
68 <a href="#" onclick="return toggleDiv(this)">
Robert Ly6c81c302011-10-05 12:59:29 -070069 <img src="{@docRoot}assets/images/triangle-opened.png" class="toggle-img" height="9px"
Joe Fernandez890f7ea2011-11-28 17:00:27 -080070 width="9px" />
Joe Fernandezdad557e2012-03-16 01:17:58 -070071 SDK Tools, Revision 17</a> <em>(March 2012)</em>
72
73 <div class="toggleme">
74 <p class="caution"><strong>Important:</strong> To download the new Android
75 4.0 system components from the Android SDK Manager, you must first update the
76 SDK tools to revision 14 or later and restart the Android SDK Manager. If you do not,
77 the Android 4.0 system components will not be available for download.</p>
78
79 <dl>
80 <dt>Dependencies:</dt>
81 <dd>
82 <ul>
83 <li>Android SDK Platform-tools revision 9 or later.</li>
84 <li>If you are developing in Eclipse with ADT, note that the SDK Tools r17 is designed for
85 use with ADT 17.0.0 and later. If you haven't already, we highly recommend updating your
86 <a href="{@docRoot}sdk/eclipse-adt.html">ADT Plugin</a> to 17.0.0.</li>
87 <li>If you are developing outside Eclipse, you must have
88 <a href="http://ant.apache.org/">Apache Ant</a> 1.8 or later.</li>
89 </ul>
90 </dd>
91 <dt>General notes:</dt>
92 <dd>
93 <ul>
94 <li>Emulator
95 <ul>
96 <li>Added support for hardware accelerated graphics rendering. This feature requires an
97API Level 15, Revision 3 or later system image.
98(<a href="{@docRoot}guide/developing/devices/emulator.html#accel-graphics">more info</a>)
99 <p class="note"><strong>Note:</strong> As of the SDK Tools Revision 17 release, the
100API Level 15, Revision 3 system image is not yet available.</p>
101 </li>
102 <li>Added support for running Android x86 system images in virtualization mode on
103Windows and Mac OS X.
104(<a href="{@docRoot}guide/developing/devices/emulator.html#accel-vm">more info</a>)</li>
105 <li>Added experimental support for multi-touch input by enabing the emulator to receive
106 touch input from a USB-tethered physical Android device.
107 (<a href="http://tools.android.com/tips/hardware-emulation">more info</a>)</li>
108 </ul>
109 </li>
110 <li>Added viewing of live detailed network usage of an app in DDMS. (<a
111 href="http://tools.android.com/recent/detailednetworkusageinddms">more info</a>)</li>
112 <li>ProGuard
113 <ul>
114 <li>Updated the bundled ProGuard tool to version 4.7. In addition to many new features,
115this update fixes the {@code Conversion to Dalvik format failed with error 1} error some users have
116experienced.</li>
117 <li>Updated the default {@code proguard.cfg} file with better default flags for
118 Android.</li>
119 <li>Split the ProGuard configuration file has been in half, with project specific flags
120kept in project and the generic Android flags distributed (and updated) with the tools
121themselves.</li>
122 </ul>
123 </li>
124 <li>Build
125 <ul>
126 <li>Added a feature that allows you to run some code only in debug mode. Builds now
127generate a class called {@code BuildConfig} containing a {@code DEBUG} constant that is
128automatically set according to your build type. You can check the ({@code BuildConfig.DEBUG})
129constant in your code to run debug-only functions.</li>
130 <li>Fixed issue when a project and its libraries include the same jar file in their libs
131 folder.</li>
132 <li>Added support for custom views with custom attributes in libraries. Layouts using
133custom attributes must use the namespace URI {@code http://schemas.android.com/apk/res-auto} instead
134of the URI that includes the app package name. This URI is replaced with the app specific one at
135build time.</li>
136 </ul>
137 </li>
138 <li>Lint
139 <ul>
140 <li>Updated Lint to check Android application code. Lint rules which previously
141performed pattern based searches in the application code (such as the unused resource check) have
142been rewritten to use the more accurate Java-style parse trees.</li>
143 <li>Added support for checking library projects. This change means that rules such as
144the unused resource check properly handle resources declared in a library project and referenced in
145a downstream project.</li>
146 <li>Added ability to suppress Lint warnings in Java code with the new
147{@code @SuppressLint} annotation, and in XML files with the new tools: namespace and
148ignore attribute. (<a
149 href="http://tools.android.com/recent/ignoringlintwarnings">more info</a>)</li>
150 <li>New Lint checks:
151 <ul>
152 <li>Added check for Android API calls that require a version of Android higher than
153 the minimum supported version. You can use the new {@code @TargetApi} annotation
154 to suppress warnings when the code is wrapped in a system version condition.
155 (<a href="http://tools.android.com/recent/lintapicheck">more info</a>)</li>
156 <li>Added over 20 new Lint rules, including checks for
157 <a href="http://tools.android.com/recent/lintperformancechecks">performance</a>,
158 XML layouts, manifest and file handling.</li>
159 </ul>
160 </li>
161 </ul>
162 </li>
163 </ul>
164 </dd>
165 </dl>
166 </div>
167</div>
168
169<div class="toggleable closed">
170 <a href="#" onclick="return toggleDiv(this)">
171 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px"
172 width="9px" />
Joe Fernandez890f7ea2011-11-28 17:00:27 -0800173 SDK Tools, Revision 16</a> <em>(December 2011)</em>
174
175 <div class="toggleme">
176 <p class="caution"><strong>Important:</strong> To download the new Android
177 4.0 system components from the Android SDK Manager, you must first update the
178 SDK tools to revision 14 or later and restart the Android SDK Manager. If you do not,
179 the Android 4.0 system components will not be available for download.</p>
180
181<dl>
182<dt>Dependencies:</dt>
183<dd>
184 <ul>
185 <li>Android SDK Platform-tools revision 9 or later.</li>
186 <li>If you are developing in Eclipse with ADT, note that the SDK Tools r16 is designed for use
187 with ADT 16.0.0 and later. If you haven't already, we highly recommend updating your
188 <a href="{@docRoot}sdk/eclipse-adt.html">ADT Plugin</a> to 16.0.0.</li>
189 <li>If you are developing outside Eclipse, you must have <a href="http://ant.apache.org/">Apache
190 Ant</a> 1.8 or later.</li>
191</ul>
192</dd>
193<dt>General notes:</dt>
194<dd>
195 <ul>
Joe Fernandezdad557e2012-03-16 01:17:58 -0700196 <li>Added Lint tools to detect common errors in Android projects.
Joe Fernandeze4f20312011-12-15 13:23:53 -0800197 (<a href="http://tools.android.com/recent/lint">more info</a>)</li>
Joe Fernandez71d5c1d2011-12-15 22:33:41 -0800198 <li>Added sensor emulation support, which allows the emulator to read sensor data from a
Joe Fernandezdad557e2012-03-16 01:17:58 -0700199 physical Android device.
Joe Fernandeze4f20312011-12-15 13:23:53 -0800200 (<a href="http://tools.android.com/recent/sensoremulation">more info</a>)</li>
Joe Fernandez890f7ea2011-11-28 17:00:27 -0800201 <li>Added support for using a webcam to emulate a camera on Mac OS X.</li>
202 </ul>
203</dd>
204<dt>Bug fixes:</dt>
205<dd>
206 <ul>
207 <li>Snapshots now work for Android 4.0 system images.</li>
208 <li>Fixed several small issues for the build file.
209 (<a href="http://code.google.com/p/android/issues/detail?id=21023">Issue 21023</a>,
210 <a href="http://code.google.com/p/android/issues/detail?id=21267">Issue 21267</a>,
211 <a href="http://code.google.com/p/android/issues/detail?id=21465">Issue 21465</a>,
212 <a href="http://code.google.com/p/android/issues/detail?id=21525">Issue 21525</a>).</li>
213 </ul>
214</dd>
215</dl>
216</div>
217</div>
218
219<div class="toggleable closed">
220 <a href="#" onclick="return toggleDiv(this)">
221 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px"
222 width="9px" />
223 SDK Tools, Revision 15</a> <em>(October 2011)</em>
Robert Ly490463f2011-10-24 11:06:36 -0700224
225 <div class="toggleme">
226 <p class="caution"><strong>Important:</strong> To download the new Android
227 4.0 system components from the Android SDK Manager, you must first update the
228 SDK tools to revision 14 or later and restart the Android SDK Manager. If you do not,
229 the Android 4.0 system components will not be available for download.</p>
230 <dl>
231<dt>Dependencies:</dt>
232<dd>
233 <ul><li>Android SDK Platform-tools revision 9 or later.</li>
234 <li>If you are developing in Eclipse with ADT, note that the SDK Tools r15 is designed for use
235 with ADT 15.0.0 and later. If you haven't already, we highly recommend updating your <a
236 href="{@docRoot}sdk/eclipse-adt.html">ADT Plugin</a> to 15.0.0.</li>
237 <li>If you are developing outside Eclipse, you must have <a href="http://ant.apache.org/">Apache
238 Ant</a> 1.8 or later.</li>
239</ul>
240
241<dt>Bug fixes:</dt>
242<dd>
243 <ul>
244 <li>Fixed emulator crash on Linux due to improper webcam detection
245 (<a href="http://code.google.com/p/android/issues/detail?id=20952">Issue 20952</a>).</li>
246 <li>Fixed emulator issue when using the <code>-wipe-data</code> argument.</li>
247 <li>Fixed build issue when using Renderscript in projects that target API levels 11-13
248 (<a href="http://code.google.com/p/android/issues/detail?id=21006">Issue 21006</a>).</li>
249 <li>Fixed issue when creating an AVD using the GoogleTV addon
250 (<a href="http://code.google.com/p/android/issues/detail?id=20963">Issue 20963</a>).</li>
251 <li>Fixed <code>ant test</code>
252 (<a href="http://code.google.com/p/android/issues/detail?id=20979">Issue 20979</a>).</li>
253 <li>Fixed <code>android update project</code>
254 (<a href="http://code.google.com/p/android/issues/detail?id=20535">Issue 20535</a>).</li>
255 <li>Fixed scrolling issue in the new Logcat panel of DDMS.</li>
256 <li>Fixed issue with MonkeyRunner
257 (<a href="http://code.google.com/p/android/issues/detail?id=20964">Issue 20964</a>).</li>
258 <li>Fixed issues in the SDK Manager
259 (<a href="http://code.google.com/p/android/issues/detail?id=20939">Issue 20939</a>,
260 <a href="http://code.google.com/p/android/issues/detail?id=20607">Issue 20607</a>).</li>
261 </ul>
262</dd>
263</dl>
264</div>
265</div>
266
267<div class="toggleable closed">
268 <a href="#" onclick="return toggleDiv(this)">
269 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px"
Joe Fernandez890f7ea2011-11-28 17:00:27 -0800270 width="9px" />
271 SDK Tools, Revision 14</a> <em>(October 2011)</em>
Robert Ly6cf7d9a2011-10-12 15:30:35 -0700272
Robert Ly6c81c302011-10-05 12:59:29 -0700273 <div class="toggleme">
Robert Ly6cf7d9a2011-10-12 15:30:35 -0700274 <p class="note"><strong>Important:</strong> To download the new Android
275 4.0 system components from the Android SDK Manager, you must first update the
276 SDK tools to revision 14 and restart the Android SDK Manager. If you do not,
277 the Android 4.0 system components will not be available for download.</p>
Robert Ly6c81c302011-10-05 12:59:29 -0700278 <dl>
279<dt>Dependencies:</dt>
280<dd>
281 <ul><li>Android SDK Platform-tools revision 8 or later.</li>
282 <li>If you are developing in Eclipse with ADT, note that the SDK Tools r14 is designed for use
283 with ADT 14.0.0 and later. If you haven't already, we highly recommend updating your <a
284 href="{@docRoot}sdk/eclipse-adt.html">ADT Plugin</a> to 14.0.0.</li>
285 <li>If you are developing outside Eclipse, you must have <a href="http://ant.apache.org/">Apache
286 Ant</a> 1.8 or later.</li>
287</ul>
288
289<dt>General notes:</dt>
290<dd>
291 <ul>
Joe Fernandez890f7ea2011-11-28 17:00:27 -0800292 <li>Added webcam support to Android 4.0 or later platforms to emulate rear-facing cameras when
293 one webcam is present, and to emulate both rear-facing and front-facing cameras when two
294 webcams are present. Webcam support is for Windows and Linux only.
Robert Ly6cf7d9a2011-10-12 15:30:35 -0700295 Mac support will come in a later release.</li>
Joe Fernandez890f7ea2011-11-28 17:00:27 -0800296 <li>Changed <code>default.properties</code> to <code>project.properties</code> and
Robert Ly6c81c302011-10-05 12:59:29 -0700297 <code>build.properties</code> to <code>ant.properties</code>. Any existing
298 projects that you build with Ant must be updated with the <code>android update project</code>
299 command.</li>
300 <li>Changed Ant <code>build.xml</code> file to support improvements to the
301 build system and added and modified Ant commands to support these changes. For a list of Ant
302commands, see the
303<a href="{@docRoot}guide/developing/building/building-cmdline.html#AntReference">Ant Command
304Reference</a>.</li>
Joe Fernandez71d5c1d2011-12-15 22:33:41 -0800305 <li>Changed how library projects are built.</li>
Robert Ly6c81c302011-10-05 12:59:29 -0700306 <li>Improved incremental builds, so that resource compilation runs less frequently. Builds no
307 longer run when you edit strings or layouts (unless you add a new <code>id</code>) and no longer
308 run once for each library project.</li>
309 <li>Introduced a "PNG crunch cache" that only runs on modified PNG files, instead of
310 crunching all existing PNG files, all the time.</li>
311 <li>Revamped the SDK Manager UI (<a href="http://tools.android.com/recent/newsdkmanager">more
312info</a>).</li>
313 </ul>
314 <p>For a complete overview of the build system changes and what you need to do to support them,
315see the <a href="http://tools.android.com/recent/buildchangesinrevision14">Android Tools Project
316site</a>.</p>
317</dd>
318</dl>
319</div>
320</div>
321
322<div class="toggleable closed">
323 <a href="#" onclick="return toggleDiv(this)">
324 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px"
325 width="9px" />
Robert Lydec97362011-09-22 10:33:28 -0700326SDK Tools, Revision 13</a> <em>(September 2011)</em>
327 <div class="toggleme">
328 <dl>
329<dt>Dependencies:</dt>
330<dd>
331<p>If you are developing in Eclipse with ADT, note that the SDK Tools r13 is designed for use with
332ADT 12.0.0 and later. If you haven't already, we highly recommend updating your <a
333href="{@docRoot}sdk/eclipse-adt.html">ADT Plugin</a> to 12.0.0.</p>
334
335<p>If you are developing outside Eclipse, you must have <a href="http://ant.apache.org/">Apache
336Ant</a> 1.8 or later.</p>
337
338<dt>General notes:</dt>
339<dd>
340 <ul>
341 <li>Fix compilation issue in Ant (<code>dex</code> step) when paths have spaces.</li>
342 <li>Fix issue in emulator installation when paths have spaces.</li>
343 <li>Fix issue when AVD paths have spaces.</li>
344 <li>Fix rendering issue when using emulator scaling (<a href="http://code.google.com/p/android/issues/detail?id=18299">see more</a>).</li>
345 </ul>
346</dd>
347</dl>
348</div>
349</div>
350
351
352<div class="toggleable closed">
353 <a href="#" onclick="return toggleDiv(this)">
354 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
Robert Ly31ee77e2011-07-06 11:16:19 -0700355SDK Tools, Revision 12</a> <em>(July 2011)</em>
Robert Ly205d1c32011-06-28 13:13:14 -0700356 <div class="toggleme">
357 <dl>
358<dt>Dependencies:</dt>
359<dd>
360<p>If you are developing in Eclipse with ADT, note that the SDK Tools r12 is designed for use with
361ADT 12.0.0 and later. If you haven't already, we highly recommend updating your <a
362href="{@docRoot}sdk/eclipse-adt.html">ADT Plugin</a> to 12.0.0.</p>
363
364<p>If you are developing outside Eclipse, you must have <a href="http://ant.apache.org/">Apache
365Ant</a> 1.8 or later.</p>
366
367<dt>General notes:</dt>
368<dd>
369 <ul>
370 <li>The AVD manager and emulator can now use system images
371 compiled for ARM v7 and x86 CPUs.</li>
372 </ul>
373</dd>
374</dl>
375</div>
376</div>
377
378<div class="toggleable closed">
379 <a href="#" onclick="return toggleDiv(this)">
380 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
Dirk Doughertyb7c7f152011-03-25 11:54:46 -0700381SDK Tools, Revision 11</a> <em>(May 2011)</em>
Robert Lyccea5d22011-02-11 14:59:36 -0800382 <div class="toggleme">
383 <dl>
384<dt>Dependencies:</dt>
385<dd>
Scott Main19f72012011-05-05 18:27:49 -0700386<p>If you are developing in Eclipse with ADT, note that the SDK Tools r11 is designed for use with
387ADT 10.0.1 and later. If you haven't already, we highly recommend updating your <a
388href="{@docRoot}sdk/eclipse-adt.html">ADT Plugin</a> to 10.0.1.</p>
389
390<p>If you are developing outside Eclipse, you must have <a href="http://ant.apache.org/">Apache
391Ant</a> 1.8 or later.</p>
392
393<dt>General notes:</dt>
394<dd>
395 <ul>
396 <li>Miscellaneous emulator changes to support Android 3.1.</li>
397 </ul>
398</dd>
399</dl>
400</div>
401</div>
402
403
404<div class="toggleable closed">
405 <a href="#" onclick="return toggleDiv(this)">
406 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px"
407width="9px" />
408SDK Tools, Revision 10</a> <em>(February 2011)</em>
409 <div class="toggleme">
410 <dl>
411<dt>Dependencies:</dt>
412<dd>
Robert Lyccea5d22011-02-11 14:59:36 -0800413<p>If you are developing in Eclipse with ADT, note that the SDK Tools r10 is
414designed for use with ADT 10.0.0 and later. After installing SDK Tools r10, we
415highly recommend updating your ADT Plugin to 10.0.0.</p>
416
417<p>If you are developing outside Eclipse, you must have <a href="http://ant.apache.org/">Apache
418Ant</a> 1.8 or later.</p>
419
420<dt>General notes:</dt>
421<dd>
422 <ul>
Scott Main19f72012011-05-05 18:27:49 -0700423 <li>The tools now automatically generate Java Programming Language source files (in the
424<code>gen</code> directory) and
Robert Lyccea5d22011-02-11 14:59:36 -0800425 bytecode (in the <code>res/raw</code> directory) from your native <code>.rs</code> files</li>
426 </ul>
427</dd>
428</dl>
429</div>
430</div>
431
432
433
434<div class="toggleable closed">
435 <a href="#" onclick="return toggleDiv(this)">
436 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
Robert Lyedc2aac2011-01-14 16:25:09 -0800437SDK Tools, Revision 9</a> <em>(January 2011)</em>
438 <div class="toggleme">
439 <dl>
440<dt>Dependencies:</dt>
441<dd>
442<p>If you are developing in Eclipse with ADT, note that the SDK Tools r9 is
443designed for use with ADT 9.0.0 and later. After installing SDK Tools r9, we
444highly recommend updating your ADT Plugin to 9.0.0.</p>
445
446<p>If you are developing outside Eclipse, you must have <a href="http://ant.apache.org/">Apache
447Ant</a> 1.8 or later.</p>
448
449<dt>Upgrading to SDK Tools r9:</dt>
450<dd>
451<p>If you are upgrading to SDK Tools r9 from SDK Tools r7 or earlier, the default installed location
452for the <code>adb</code> tool has changed from <code>&lt;<em>SDK</em>&gt;/tools/adb</code> to
453<code>&lt;<em>SDK</em>&gt;/platform-tools/adb</code>. This means that you should
454add the new location to your PATH and modify any custom build scripts to
455reference the new location. Copying the <code>adb</code> executable from the new
456location to the old is not recommended, since subsequent updates to the SDK
457Tools will delete the file.</p>
458</dd>
459
460<dt>General notes:</dt>
461<dd>
462 <ul>
463 <li>The default ProGuard configuration, <code>proguard.cfg</code>, now ignores the following classes:
464 <ul>
465 <li>classes that extend {@link android.preference.Preference}</li>
466 <li>classes that extend {@link android.app.backup.BackupAgentHelper}</li>
467 </ul>
468 </li>
469 <li>Ant lib rules now allow you to override <code>java.encoding</code>, <code>java.source</code>,
470 and <code>java.target</code> properties.</li>
471 <li>The default encoding for the <code>javac</code> Ant task is now UTF-8.</li>
472 <li>The LogCat view in DDMS now properly displays UTF-8 characters.</li>
473 <li>The SDK Manager is more reliable on Windows. For details on the improvements, see the
474 <a href="http://tools.android.com/recent/sdkmanagerfixes">Android Tools Project Site</a>. </li>
Scott Mainf9af3012011-01-27 11:26:29 -0800475 <li>Early look at the new snapshot feature: To improve startup time for the emulator, you can
476enable snapshots for the system state. The emulator will then restore to the state when it last
477closed almost instantly. <strong>Note:</strong> The snapshot feature is still under active
478development and might not always perform as expected.</li>
Robert Lyedc2aac2011-01-14 16:25:09 -0800479 <li>Fixed the missing JAR file error that prevented <code>draw9patch</code> from running.</li>
480 <li>Fixed the Windows launch scripts <code>hierarchyviewer</code> and <code>ddms</code> to support
481 the new location of <code>adb</code>.</li>
Scott Main04f04b22011-01-21 19:11:23 -0800482 <li>Known issues with emulator performance: Because the Android emulator must simulate the ARM
483instruction set architecture on your computer, emulator performance is slow. We're working hard to
484resolve the performance issues and it will improve in future releases.</li>
Robert Lyedc2aac2011-01-14 16:25:09 -0800485 </ul>
486</dd>
487</dl>
488</div>
489</div>
490
491<div class="toggleable closed">
492 <a href="#" onclick="return toggleDiv(this)">
493 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
Dirk Dougherty9f7580d2010-10-26 09:29:03 -0700494SDK Tools, Revision 8</a> <em>(December 2010)</em>
495 <div class="toggleme">
496
497<dl>
498<dt>Dependencies:</dt>
499<dd>
500<p>If you are developing in Eclipse with ADT, note that SDK Tools r8 is
501designed for use with ADT 8.0.0 and later. After installing SDK Tools r8, we
502highly recommend updating your ADT Plugin to 8.0.0.</p>
503
Scott Main92b03082010-12-14 17:55:27 -0800504<p>If you are developing outside Eclipse, you must have <a href="http://ant.apache.org/">Apache
505Ant</a> 1.8 or later.</p>
506
Dirk Dougherty9f7580d2010-10-26 09:29:03 -0700507<p>Also note that SDK Tools r8 requires a new SDK component called
508<em>Platform-tools</em>. The new Platform-tools component lets all SDK platforms
509(Android 2.1, Android 2.2, and so on) use the same (latest) version of build
510tools such as <code>adb</code>, <code>aapt</code>, <code>aidl</code>, and
511<code>dx</code>. To download the Platform-tools component, use the Android SDK
512Manager, as described in <a href="adding-components.html">Adding SDK
513Components</a></p>
514
515<dt>Upgrading from SDK Tools r7:</dt>
516<dd>
517<p>If you are upgrading to SDK Tools r8 from an earlier version, note that the
518the default installed location for the <code>adb</code> tool has changed from
519<code>&lt;<em>SDK</em>&gt;/tools/adb</code> to
520<code>&lt;<em>SDK</em>&gt;/platform-tools/adb</code>. This means that you should
521add the new location to your PATH and modify any custom build scripts to
522reference the new location. Copying the <code>adb</code> executable from the new
523location to the old is not recommended, since subsequent updates to the SDK
524Tools will delete the file.</p>
525</dd>
526
527<dt>General notes:</dt>
528<dd>
529<ul>
530<li>All SDK platforms now support Library Projects.</li>
531<li>Support for a true debug build. Developers no longer need to add the
532<code>android:debuggable</code> attribute to the
533<code>&lt;application&gt;</code> tag in the manifest &mdash; the build tools add
534the attribute automatically. In Eclipse/ADT, all incremental builds are assumed
535to be debug builds, so the tools insert <code>android:debuggable="true"</code>.
536When exporting a signed release build, the tools do not add the attribute. In
537Ant, a <code>ant debug</code> command automatically inserts the
538<code>android:debuggable="true"</code> attribute, while <code>ant release</code>
539does not. If <code>android:debuggable="true"</code> is manually set, then
540<code>ant release</code> will actually do a debug build, rather than a release
541build.</li>
542<li>Automatic ProGuard support in release builds. Developers generate a ProGuard
543configuration file using the <code>android</code> tool &mdash; the build tools
544then automatically run ProGuard against the project sources during the build.
545For more information, see the <a
546href="{@docRoot}guide/developing/tools/proguard.html">ProGuard</a>
547documentation. </li>
548<li>New overridable Ant javac properties: <code>java.encoding</code>,
549<code>java.source</code>, and <code>java.target</code> (default values are
550"ascii", "1.5", and "1.5", respectively).</li>
551<li>New UI for the HierarchyViewer tool.</li>
552</ul>
553</dd>
554</dl>
555 </div>
556</div>
557
558<div class="toggleable closed">
559 <a href="#" onclick="return toggleDiv(this)">
560 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
Dirk Dougherty022171b2010-07-30 19:24:17 -0700561SDK Tools, Revision 7</a> <em>(September 2010)</em>
562 <div class="toggleme">
563
564<dl>
565<dt>Dependencies:</dt>
566<dd>
567<p>If you are developing in Eclipse with ADT, note that SDK Tools r7 is
568designed for use with ADT 0.9.8 and later. After installing SDK Tools r7, we
569highly recommend updating your ADT Plugin to 0.9.8.</p>
570</dd>
571
572<dt>General notes:</dt>
573<dd>
574<ul>
575<li>Added support for library projects that depend on other library projects.</li>
576<li>Adds support for aidl files in library projects.</li>
577<li>Adds support for extension targets in Ant build to perform tasks between the
578normal tasks: <code>-pre-build</code>, <code>-pre-compile</code>, and
579<code>-post-compile</code>.</li>
580<li>Adds support for "headless" SDK update. See <code>android -h update sdk</code>
581for more information.</li>
582<li>Fixes location control in DDMS to work in any locale not using '.' as a
583decimal point.</li>
Joe Fernandez890f7ea2011-11-28 17:00:27 -0800584</ul>
Dirk Dougherty022171b2010-07-30 19:24:17 -0700585</ul>
586</dd>
587</dl>
588 </div>
589</div>
590
591<div class="toggleable closed">
592 <a href="#" onclick="return toggleDiv(this)">
593 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
Dirk Dougherty0d1b0812010-04-07 17:05:16 -0700594SDK Tools, Revision 6</a> <em>(May 2010)</em>
595 <div class="toggleme">
596
597<dl>
598<dt>Dependencies:</dt>
599<dd>
600<p>If you are developing in Eclipse with ADT, note that SDK Tools r6 is
601designed for use with ADT 0.9.7 and later. After installing SDK Tools r6, we
602highly recommend updating your ADT Plugin to 0.9.7.</p>
603</dd>
604
605<dt>Library projects:</dt>
606<dd>
607<p>The SDK Tools now support the use of <em>library projects</em> during
608development, a capability that lets you store shared Android application
609code and resources in a separate development project. You can then reference the
610library project from other Android projects and, at build time, the tools
611compile the shared code and resources as part of the dependent applications.
612More information about this feature is available in the <a
Robert Lyc74a69a82011-01-04 22:48:02 -0800613href="{@docRoot}guide/developing/projects/index.html#LibraryProjects">Creating and Managing Projects</a> document.</p>
614<p>If you are developing in Eclipse, <a href="eclipse-adt.html">ADT</a>
Dirk Dougherty0d1b0812010-04-07 17:05:16 -0700615provides the equivalent library project support.</p>
616</dd>
617</dl>
618 </div>
619</div>
620
621<div class="toggleable closed">
622 <a href="#" onclick="return toggleDiv(this)">
Dirk Dougherty74a74d32010-09-09 18:40:13 -0700623 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700624SDK Tools, Revision 5</a> <em>(March 2010)</em>
625 <div class="toggleme">
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800626
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700627<dl>
628<dt>Dependencies:</dt>
629<dd><ul>
630<li>If you are developing in Eclipse with ADT, note that SDK Tools r5 is
631designed for use with ADT 0.9.6 and later. After installing SDK Tools r5, we
632highly recommend updating your ADT Plugin to 0.9.6.</li>
633<li>For Mac OS platforms, OS X 10.4.x (Tiger) is no longer
634officially supported. </li>
635</ul>
636</dd>
637
638<dt>SDK and AVD Manager:</dt>
639<dd>
640<ul>
641<li>Fixes SSL download for the standalone version of the SDK Updater.</li>
642<li>Fixes issue with 64-bit JVM on Windows.</li>
643<li>Adds support for platform samples components.</li>
644<li>Improves support for dependency between components.</li>
645<li>AVDs now sorted by API level.</li>
646<li>The AVD creation dialog now enforces a minimum SD card size of 9MB.</li>
647<li>Prevents deletion of running AVDs.</li>
648<li>Settings are now automatically saved, no need to click "Apply".</li>
649</ul>
650</dd>
651
652<dt>Emulator:</dt>
653<dd>
654<ul>
655<li>Emulator now requires SD card to be 9MB or more.</li>
656</ul>
657</dd>
658
659<dt>Layoutopt:</dt>
660<dd>
661<ul>
662<li>Fixes <code>layoutopt.bat</code> to execute correctly on Windows.</li>
663</ul>
664</dd>
665</dl>
666 </div>
667</div>
668
669<div class="toggleable closed">
670 <a href="#" onclick="return toggleDiv(this)">
671 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
672SDK Tools, Revision 4</a> <em>(December 2009)</em>
673 <div class="toggleme">
674
675<dl>
676<dt>Dependencies:</dt>
677<dd><p>SDK Tools r4 is compatible with ADT 0.9.5 and later, but not
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800678compatible with earlier versions. If you are developing in Eclipse with ADT, you
679<strong>must</strong> update your ADT plugin to version 0.9.5 or higher if you
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700680install SDK Tools r4 in your SDK. </p></dd>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800681
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700682<dt>General notes:</dt>
683<dd>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800684<ul>
Robert Lydec97362011-09-22 10:33:28 -0700685<li>Launcher script now forces GDK_NATIVE_WINDOW=true (linux only), to fix a
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800686compatibility issue between GTK and SWT.</li>
687</ul>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700688</dd>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800689
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700690<dt>Android SDK and AVD Manager:</dt>
691<dd>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800692<ul>
693<li>AVD Launch dialog now shows scale value.</li>
Robert Lydec97362011-09-22 10:33:28 -0700694<li>Fixes potential NPE in SDK Manager on AVD launch, for older AVD with no
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800695skin name specified.</li>
696<li>Fixes XML validation issue in on older Java versions.</li>
697<li>No longer forces the use of Java 1.5 on Mac OS X.</li>
698</ul>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700699</dd>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800700
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700701<dt>Emulator:</dt>
702<dd>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800703<ul>
704<li>No longer limits the size of the system partition.</li>
705</ul>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700706</dd>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800707
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700708<dt>Ant build tools:</dt>
709<dd>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800710<ul>
711<li>.apk packaging now properly ignores vi swap files as well as hidden files.</li>
712</ul>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700713</dd>
714</dl>
715 </div>
716</div>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800717
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700718<div class="toggleable closed">
719 <a href="#" onclick="return toggleDiv(this)">
720 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
721SDK Tools, Revision 3</a> <em>(October 2009)</em>
722 <div class="toggleme">
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700723
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700724<dl>
725<dt>Dependencies:</dt>
726<dd><p>SDK Tools r3 is compatible with ADT 0.9.4 and later, but not
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700727compatible with earlier versions. If you are developing in Eclipse with ADT, you
728<strong>must</strong> update your ADT plugin to version 0.9.4 or higher if you
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700729install SDK Tools r3 in your SDK.</p>
730</dd>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700731
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700732<dt>Android tool:</dt>
733<dd>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700734<ul>
735<li>Adds new <code>android create test-project</code> and <code>android update
736test-project</code> commands to allow for greater flexibility in the location of the
737main and test projects.</li>
738</ul>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700739</dd>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700740
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700741<dt>DDMS:</dt>
742<dd>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700743<ul>
Scott Main19f72012011-05-05 18:27:49 -0700744<li>Adds a button to dump HPROF file for running applications (app must be able
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700745to write to the sdcard).</li>
746<li>Button to start/stop profiling of a running application (app must be able to
747write to the sdcard). Upon stop, Traceview will automatically be launched to
748display the trace.</li>
749<li>Fixed DDMS, Traceview, and the AVD Mananger/SDK Updater to run on Mac OS X
75010.6.</li>
751<li>Fixed screenshot support for devices running 32-bit framebuffer.</li>
752</ul>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700753</dd>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700754
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700755<dt>Android SDK and AVD Manager:</dt>
756<dd>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700757<ul>
758<li>Provides a new UI that lets you set options for controlling
Robert Lydec97362011-09-22 10:33:28 -0700759the emulator skin, screen size/density, and scale factor used when launching
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700760an AVD.</li>
761<li>Provides improved AVD creation UI, which lets you customize the hardware
762properties of your AVDs.</li>
763<li>Now enforces dependencies between platforms and tools components, and
764between SDK add-ons and platforms.</li>
765</ul>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700766</dd>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700767
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700768<dt>Layoutopt, a new tool for optimizing layouts:</dt>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700769
Robert Lydec97362011-09-22 10:33:28 -0700770<dd><p>The SDK Tools r3 package includes <code>layoutopt</code>, a new command-line
771tool that helps you optimize your layout hierarchies. When run against your
772layout files, the tool analyzes their hierarchies and notifies you of
773inefficiencies and other potential issues. The tool also provides simple
774solutions for the issues it finds. For usage, see <a
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700775href="/guide/developing/tools/layoutopt.html">layoutopt</a>.</p>
776</dd>
777</dl>
778 </div>
779</div>