blob: dea0c389d95ebba231a86a0d729895f0001c7c1e [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
Joe Fernandez1e72b342012-03-21 16:25:21 -0700131 folder. (<a href="http://tools.android.com/recent/dealingwithdependenciesinandroidprojects">more
132 info</a>)</li>
Joe Fernandezdad557e2012-03-16 01:17:58 -0700133 <li>Added support for custom views with custom attributes in libraries. Layouts using
134custom attributes must use the namespace URI {@code http://schemas.android.com/apk/res-auto} instead
135of the URI that includes the app package name. This URI is replaced with the app specific one at
136build time.</li>
137 </ul>
138 </li>
139 <li>Lint
140 <ul>
141 <li>Updated Lint to check Android application code. Lint rules which previously
142performed pattern based searches in the application code (such as the unused resource check) have
143been rewritten to use the more accurate Java-style parse trees.</li>
144 <li>Added support for checking library projects. This change means that rules such as
145the unused resource check properly handle resources declared in a library project and referenced in
146a downstream project.</li>
147 <li>Added ability to suppress Lint warnings in Java code with the new
148{@code @SuppressLint} annotation, and in XML files with the new tools: namespace and
149ignore attribute. (<a
150 href="http://tools.android.com/recent/ignoringlintwarnings">more info</a>)</li>
151 <li>New Lint checks:
152 <ul>
153 <li>Added check for Android API calls that require a version of Android higher than
154 the minimum supported version. You can use the new {@code @TargetApi} annotation
155 to suppress warnings when the code is wrapped in a system version condition.
156 (<a href="http://tools.android.com/recent/lintapicheck">more info</a>)</li>
157 <li>Added over 20 new Lint rules, including checks for
158 <a href="http://tools.android.com/recent/lintperformancechecks">performance</a>,
159 XML layouts, manifest and file handling.</li>
160 </ul>
161 </li>
162 </ul>
163 </li>
164 </ul>
165 </dd>
166 </dl>
167 </div>
168</div>
169
170<div class="toggleable closed">
171 <a href="#" onclick="return toggleDiv(this)">
172 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px"
173 width="9px" />
Joe Fernandez890f7ea2011-11-28 17:00:27 -0800174 SDK Tools, Revision 16</a> <em>(December 2011)</em>
175
176 <div class="toggleme">
177 <p class="caution"><strong>Important:</strong> To download the new Android
178 4.0 system components from the Android SDK Manager, you must first update the
179 SDK tools to revision 14 or later and restart the Android SDK Manager. If you do not,
180 the Android 4.0 system components will not be available for download.</p>
181
182<dl>
183<dt>Dependencies:</dt>
184<dd>
185 <ul>
186 <li>Android SDK Platform-tools revision 9 or later.</li>
187 <li>If you are developing in Eclipse with ADT, note that the SDK Tools r16 is designed for use
188 with ADT 16.0.0 and later. If you haven't already, we highly recommend updating your
189 <a href="{@docRoot}sdk/eclipse-adt.html">ADT Plugin</a> to 16.0.0.</li>
190 <li>If you are developing outside Eclipse, you must have <a href="http://ant.apache.org/">Apache
191 Ant</a> 1.8 or later.</li>
192</ul>
193</dd>
194<dt>General notes:</dt>
195<dd>
196 <ul>
Joe Fernandezdad557e2012-03-16 01:17:58 -0700197 <li>Added Lint tools to detect common errors in Android projects.
Joe Fernandeze4f20312011-12-15 13:23:53 -0800198 (<a href="http://tools.android.com/recent/lint">more info</a>)</li>
Joe Fernandez71d5c1d2011-12-15 22:33:41 -0800199 <li>Added sensor emulation support, which allows the emulator to read sensor data from a
Joe Fernandezdad557e2012-03-16 01:17:58 -0700200 physical Android device.
Joe Fernandeze4f20312011-12-15 13:23:53 -0800201 (<a href="http://tools.android.com/recent/sensoremulation">more info</a>)</li>
Joe Fernandez890f7ea2011-11-28 17:00:27 -0800202 <li>Added support for using a webcam to emulate a camera on Mac OS X.</li>
203 </ul>
204</dd>
205<dt>Bug fixes:</dt>
206<dd>
207 <ul>
208 <li>Snapshots now work for Android 4.0 system images.</li>
209 <li>Fixed several small issues for the build file.
210 (<a href="http://code.google.com/p/android/issues/detail?id=21023">Issue 21023</a>,
211 <a href="http://code.google.com/p/android/issues/detail?id=21267">Issue 21267</a>,
212 <a href="http://code.google.com/p/android/issues/detail?id=21465">Issue 21465</a>,
213 <a href="http://code.google.com/p/android/issues/detail?id=21525">Issue 21525</a>).</li>
214 </ul>
215</dd>
216</dl>
217</div>
218</div>
219
220<div class="toggleable closed">
221 <a href="#" onclick="return toggleDiv(this)">
222 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px"
223 width="9px" />
224 SDK Tools, Revision 15</a> <em>(October 2011)</em>
Robert Ly490463f2011-10-24 11:06:36 -0700225
226 <div class="toggleme">
227 <p class="caution"><strong>Important:</strong> To download the new Android
228 4.0 system components from the Android SDK Manager, you must first update the
229 SDK tools to revision 14 or later and restart the Android SDK Manager. If you do not,
230 the Android 4.0 system components will not be available for download.</p>
231 <dl>
232<dt>Dependencies:</dt>
233<dd>
234 <ul><li>Android SDK Platform-tools revision 9 or later.</li>
235 <li>If you are developing in Eclipse with ADT, note that the SDK Tools r15 is designed for use
236 with ADT 15.0.0 and later. If you haven't already, we highly recommend updating your <a
237 href="{@docRoot}sdk/eclipse-adt.html">ADT Plugin</a> to 15.0.0.</li>
238 <li>If you are developing outside Eclipse, you must have <a href="http://ant.apache.org/">Apache
239 Ant</a> 1.8 or later.</li>
240</ul>
241
242<dt>Bug fixes:</dt>
243<dd>
244 <ul>
245 <li>Fixed emulator crash on Linux due to improper webcam detection
246 (<a href="http://code.google.com/p/android/issues/detail?id=20952">Issue 20952</a>).</li>
247 <li>Fixed emulator issue when using the <code>-wipe-data</code> argument.</li>
248 <li>Fixed build issue when using Renderscript in projects that target API levels 11-13
249 (<a href="http://code.google.com/p/android/issues/detail?id=21006">Issue 21006</a>).</li>
250 <li>Fixed issue when creating an AVD using the GoogleTV addon
251 (<a href="http://code.google.com/p/android/issues/detail?id=20963">Issue 20963</a>).</li>
252 <li>Fixed <code>ant test</code>
253 (<a href="http://code.google.com/p/android/issues/detail?id=20979">Issue 20979</a>).</li>
254 <li>Fixed <code>android update project</code>
255 (<a href="http://code.google.com/p/android/issues/detail?id=20535">Issue 20535</a>).</li>
256 <li>Fixed scrolling issue in the new Logcat panel of DDMS.</li>
257 <li>Fixed issue with MonkeyRunner
258 (<a href="http://code.google.com/p/android/issues/detail?id=20964">Issue 20964</a>).</li>
259 <li>Fixed issues in the SDK Manager
260 (<a href="http://code.google.com/p/android/issues/detail?id=20939">Issue 20939</a>,
261 <a href="http://code.google.com/p/android/issues/detail?id=20607">Issue 20607</a>).</li>
262 </ul>
263</dd>
264</dl>
265</div>
266</div>
267
268<div class="toggleable closed">
269 <a href="#" onclick="return toggleDiv(this)">
270 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px"
Joe Fernandez890f7ea2011-11-28 17:00:27 -0800271 width="9px" />
272 SDK Tools, Revision 14</a> <em>(October 2011)</em>
Robert Ly6cf7d9a2011-10-12 15:30:35 -0700273
Robert Ly6c81c302011-10-05 12:59:29 -0700274 <div class="toggleme">
Robert Ly6cf7d9a2011-10-12 15:30:35 -0700275 <p class="note"><strong>Important:</strong> To download the new Android
276 4.0 system components from the Android SDK Manager, you must first update the
277 SDK tools to revision 14 and restart the Android SDK Manager. If you do not,
278 the Android 4.0 system components will not be available for download.</p>
Robert Ly6c81c302011-10-05 12:59:29 -0700279 <dl>
280<dt>Dependencies:</dt>
281<dd>
282 <ul><li>Android SDK Platform-tools revision 8 or later.</li>
283 <li>If you are developing in Eclipse with ADT, note that the SDK Tools r14 is designed for use
284 with ADT 14.0.0 and later. If you haven't already, we highly recommend updating your <a
285 href="{@docRoot}sdk/eclipse-adt.html">ADT Plugin</a> to 14.0.0.</li>
286 <li>If you are developing outside Eclipse, you must have <a href="http://ant.apache.org/">Apache
287 Ant</a> 1.8 or later.</li>
288</ul>
289
290<dt>General notes:</dt>
291<dd>
292 <ul>
Joe Fernandez890f7ea2011-11-28 17:00:27 -0800293 <li>Added webcam support to Android 4.0 or later platforms to emulate rear-facing cameras when
294 one webcam is present, and to emulate both rear-facing and front-facing cameras when two
295 webcams are present. Webcam support is for Windows and Linux only.
Robert Ly6cf7d9a2011-10-12 15:30:35 -0700296 Mac support will come in a later release.</li>
Joe Fernandez890f7ea2011-11-28 17:00:27 -0800297 <li>Changed <code>default.properties</code> to <code>project.properties</code> and
Robert Ly6c81c302011-10-05 12:59:29 -0700298 <code>build.properties</code> to <code>ant.properties</code>. Any existing
299 projects that you build with Ant must be updated with the <code>android update project</code>
300 command.</li>
301 <li>Changed Ant <code>build.xml</code> file to support improvements to the
302 build system and added and modified Ant commands to support these changes. For a list of Ant
303commands, see the
304<a href="{@docRoot}guide/developing/building/building-cmdline.html#AntReference">Ant Command
305Reference</a>.</li>
Joe Fernandez71d5c1d2011-12-15 22:33:41 -0800306 <li>Changed how library projects are built.</li>
Robert Ly6c81c302011-10-05 12:59:29 -0700307 <li>Improved incremental builds, so that resource compilation runs less frequently. Builds no
308 longer run when you edit strings or layouts (unless you add a new <code>id</code>) and no longer
309 run once for each library project.</li>
310 <li>Introduced a "PNG crunch cache" that only runs on modified PNG files, instead of
311 crunching all existing PNG files, all the time.</li>
312 <li>Revamped the SDK Manager UI (<a href="http://tools.android.com/recent/newsdkmanager">more
313info</a>).</li>
314 </ul>
315 <p>For a complete overview of the build system changes and what you need to do to support them,
316see the <a href="http://tools.android.com/recent/buildchangesinrevision14">Android Tools Project
317site</a>.</p>
318</dd>
319</dl>
320</div>
321</div>
322
323<div class="toggleable closed">
324 <a href="#" onclick="return toggleDiv(this)">
325 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px"
326 width="9px" />
Robert Lydec97362011-09-22 10:33:28 -0700327SDK Tools, Revision 13</a> <em>(September 2011)</em>
328 <div class="toggleme">
329 <dl>
330<dt>Dependencies:</dt>
331<dd>
332<p>If you are developing in Eclipse with ADT, note that the SDK Tools r13 is designed for use with
333ADT 12.0.0 and later. If you haven't already, we highly recommend updating your <a
334href="{@docRoot}sdk/eclipse-adt.html">ADT Plugin</a> to 12.0.0.</p>
335
336<p>If you are developing outside Eclipse, you must have <a href="http://ant.apache.org/">Apache
337Ant</a> 1.8 or later.</p>
338
339<dt>General notes:</dt>
340<dd>
341 <ul>
342 <li>Fix compilation issue in Ant (<code>dex</code> step) when paths have spaces.</li>
343 <li>Fix issue in emulator installation when paths have spaces.</li>
344 <li>Fix issue when AVD paths have spaces.</li>
345 <li>Fix rendering issue when using emulator scaling (<a href="http://code.google.com/p/android/issues/detail?id=18299">see more</a>).</li>
346 </ul>
347</dd>
348</dl>
349</div>
350</div>
351
352
353<div class="toggleable closed">
354 <a href="#" onclick="return toggleDiv(this)">
355 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
Robert Ly31ee77e2011-07-06 11:16:19 -0700356SDK Tools, Revision 12</a> <em>(July 2011)</em>
Robert Ly205d1c32011-06-28 13:13:14 -0700357 <div class="toggleme">
358 <dl>
359<dt>Dependencies:</dt>
360<dd>
361<p>If you are developing in Eclipse with ADT, note that the SDK Tools r12 is designed for use with
362ADT 12.0.0 and later. If you haven't already, we highly recommend updating your <a
363href="{@docRoot}sdk/eclipse-adt.html">ADT Plugin</a> to 12.0.0.</p>
364
365<p>If you are developing outside Eclipse, you must have <a href="http://ant.apache.org/">Apache
366Ant</a> 1.8 or later.</p>
367
368<dt>General notes:</dt>
369<dd>
370 <ul>
371 <li>The AVD manager and emulator can now use system images
372 compiled for ARM v7 and x86 CPUs.</li>
373 </ul>
374</dd>
375</dl>
376</div>
377</div>
378
379<div class="toggleable closed">
380 <a href="#" onclick="return toggleDiv(this)">
381 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
Dirk Doughertyb7c7f152011-03-25 11:54:46 -0700382SDK Tools, Revision 11</a> <em>(May 2011)</em>
Robert Lyccea5d22011-02-11 14:59:36 -0800383 <div class="toggleme">
384 <dl>
385<dt>Dependencies:</dt>
386<dd>
Scott Main19f72012011-05-05 18:27:49 -0700387<p>If you are developing in Eclipse with ADT, note that the SDK Tools r11 is designed for use with
388ADT 10.0.1 and later. If you haven't already, we highly recommend updating your <a
389href="{@docRoot}sdk/eclipse-adt.html">ADT Plugin</a> to 10.0.1.</p>
390
391<p>If you are developing outside Eclipse, you must have <a href="http://ant.apache.org/">Apache
392Ant</a> 1.8 or later.</p>
393
394<dt>General notes:</dt>
395<dd>
396 <ul>
397 <li>Miscellaneous emulator changes to support Android 3.1.</li>
398 </ul>
399</dd>
400</dl>
401</div>
402</div>
403
404
405<div class="toggleable closed">
406 <a href="#" onclick="return toggleDiv(this)">
407 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px"
408width="9px" />
409SDK Tools, Revision 10</a> <em>(February 2011)</em>
410 <div class="toggleme">
411 <dl>
412<dt>Dependencies:</dt>
413<dd>
Robert Lyccea5d22011-02-11 14:59:36 -0800414<p>If you are developing in Eclipse with ADT, note that the SDK Tools r10 is
415designed for use with ADT 10.0.0 and later. After installing SDK Tools r10, we
416highly recommend updating your ADT Plugin to 10.0.0.</p>
417
418<p>If you are developing outside Eclipse, you must have <a href="http://ant.apache.org/">Apache
419Ant</a> 1.8 or later.</p>
420
421<dt>General notes:</dt>
422<dd>
423 <ul>
Scott Main19f72012011-05-05 18:27:49 -0700424 <li>The tools now automatically generate Java Programming Language source files (in the
425<code>gen</code> directory) and
Robert Lyccea5d22011-02-11 14:59:36 -0800426 bytecode (in the <code>res/raw</code> directory) from your native <code>.rs</code> files</li>
427 </ul>
428</dd>
429</dl>
430</div>
431</div>
432
433
434
435<div class="toggleable closed">
436 <a href="#" onclick="return toggleDiv(this)">
437 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
Robert Lyedc2aac2011-01-14 16:25:09 -0800438SDK Tools, Revision 9</a> <em>(January 2011)</em>
439 <div class="toggleme">
440 <dl>
441<dt>Dependencies:</dt>
442<dd>
443<p>If you are developing in Eclipse with ADT, note that the SDK Tools r9 is
444designed for use with ADT 9.0.0 and later. After installing SDK Tools r9, we
445highly recommend updating your ADT Plugin to 9.0.0.</p>
446
447<p>If you are developing outside Eclipse, you must have <a href="http://ant.apache.org/">Apache
448Ant</a> 1.8 or later.</p>
449
450<dt>Upgrading to SDK Tools r9:</dt>
451<dd>
452<p>If you are upgrading to SDK Tools r9 from SDK Tools r7 or earlier, the default installed location
453for the <code>adb</code> tool has changed from <code>&lt;<em>SDK</em>&gt;/tools/adb</code> to
454<code>&lt;<em>SDK</em>&gt;/platform-tools/adb</code>. This means that you should
455add the new location to your PATH and modify any custom build scripts to
456reference the new location. Copying the <code>adb</code> executable from the new
457location to the old is not recommended, since subsequent updates to the SDK
458Tools will delete the file.</p>
459</dd>
460
461<dt>General notes:</dt>
462<dd>
463 <ul>
464 <li>The default ProGuard configuration, <code>proguard.cfg</code>, now ignores the following classes:
465 <ul>
466 <li>classes that extend {@link android.preference.Preference}</li>
467 <li>classes that extend {@link android.app.backup.BackupAgentHelper}</li>
468 </ul>
469 </li>
470 <li>Ant lib rules now allow you to override <code>java.encoding</code>, <code>java.source</code>,
471 and <code>java.target</code> properties.</li>
472 <li>The default encoding for the <code>javac</code> Ant task is now UTF-8.</li>
473 <li>The LogCat view in DDMS now properly displays UTF-8 characters.</li>
474 <li>The SDK Manager is more reliable on Windows. For details on the improvements, see the
475 <a href="http://tools.android.com/recent/sdkmanagerfixes">Android Tools Project Site</a>. </li>
Scott Mainf9af3012011-01-27 11:26:29 -0800476 <li>Early look at the new snapshot feature: To improve startup time for the emulator, you can
477enable snapshots for the system state. The emulator will then restore to the state when it last
478closed almost instantly. <strong>Note:</strong> The snapshot feature is still under active
479development and might not always perform as expected.</li>
Robert Lyedc2aac2011-01-14 16:25:09 -0800480 <li>Fixed the missing JAR file error that prevented <code>draw9patch</code> from running.</li>
481 <li>Fixed the Windows launch scripts <code>hierarchyviewer</code> and <code>ddms</code> to support
482 the new location of <code>adb</code>.</li>
Scott Main04f04b22011-01-21 19:11:23 -0800483 <li>Known issues with emulator performance: Because the Android emulator must simulate the ARM
484instruction set architecture on your computer, emulator performance is slow. We're working hard to
485resolve the performance issues and it will improve in future releases.</li>
Robert Lyedc2aac2011-01-14 16:25:09 -0800486 </ul>
487</dd>
488</dl>
489</div>
490</div>
491
492<div class="toggleable closed">
493 <a href="#" onclick="return toggleDiv(this)">
494 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
Dirk Dougherty9f7580d2010-10-26 09:29:03 -0700495SDK Tools, Revision 8</a> <em>(December 2010)</em>
496 <div class="toggleme">
497
498<dl>
499<dt>Dependencies:</dt>
500<dd>
501<p>If you are developing in Eclipse with ADT, note that SDK Tools r8 is
502designed for use with ADT 8.0.0 and later. After installing SDK Tools r8, we
503highly recommend updating your ADT Plugin to 8.0.0.</p>
504
Scott Main92b03082010-12-14 17:55:27 -0800505<p>If you are developing outside Eclipse, you must have <a href="http://ant.apache.org/">Apache
506Ant</a> 1.8 or later.</p>
507
Dirk Dougherty9f7580d2010-10-26 09:29:03 -0700508<p>Also note that SDK Tools r8 requires a new SDK component called
509<em>Platform-tools</em>. The new Platform-tools component lets all SDK platforms
510(Android 2.1, Android 2.2, and so on) use the same (latest) version of build
511tools such as <code>adb</code>, <code>aapt</code>, <code>aidl</code>, and
512<code>dx</code>. To download the Platform-tools component, use the Android SDK
513Manager, as described in <a href="adding-components.html">Adding SDK
514Components</a></p>
515
516<dt>Upgrading from SDK Tools r7:</dt>
517<dd>
518<p>If you are upgrading to SDK Tools r8 from an earlier version, note that the
519the default installed location for the <code>adb</code> tool has changed from
520<code>&lt;<em>SDK</em>&gt;/tools/adb</code> to
521<code>&lt;<em>SDK</em>&gt;/platform-tools/adb</code>. This means that you should
522add the new location to your PATH and modify any custom build scripts to
523reference the new location. Copying the <code>adb</code> executable from the new
524location to the old is not recommended, since subsequent updates to the SDK
525Tools will delete the file.</p>
526</dd>
527
528<dt>General notes:</dt>
529<dd>
530<ul>
531<li>All SDK platforms now support Library Projects.</li>
532<li>Support for a true debug build. Developers no longer need to add the
533<code>android:debuggable</code> attribute to the
534<code>&lt;application&gt;</code> tag in the manifest &mdash; the build tools add
535the attribute automatically. In Eclipse/ADT, all incremental builds are assumed
536to be debug builds, so the tools insert <code>android:debuggable="true"</code>.
537When exporting a signed release build, the tools do not add the attribute. In
538Ant, a <code>ant debug</code> command automatically inserts the
539<code>android:debuggable="true"</code> attribute, while <code>ant release</code>
540does not. If <code>android:debuggable="true"</code> is manually set, then
541<code>ant release</code> will actually do a debug build, rather than a release
542build.</li>
543<li>Automatic ProGuard support in release builds. Developers generate a ProGuard
544configuration file using the <code>android</code> tool &mdash; the build tools
545then automatically run ProGuard against the project sources during the build.
546For more information, see the <a
547href="{@docRoot}guide/developing/tools/proguard.html">ProGuard</a>
548documentation. </li>
549<li>New overridable Ant javac properties: <code>java.encoding</code>,
550<code>java.source</code>, and <code>java.target</code> (default values are
551"ascii", "1.5", and "1.5", respectively).</li>
552<li>New UI for the HierarchyViewer tool.</li>
553</ul>
554</dd>
555</dl>
556 </div>
557</div>
558
559<div class="toggleable closed">
560 <a href="#" onclick="return toggleDiv(this)">
561 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
Dirk Dougherty022171b2010-07-30 19:24:17 -0700562SDK Tools, Revision 7</a> <em>(September 2010)</em>
563 <div class="toggleme">
564
565<dl>
566<dt>Dependencies:</dt>
567<dd>
568<p>If you are developing in Eclipse with ADT, note that SDK Tools r7 is
569designed for use with ADT 0.9.8 and later. After installing SDK Tools r7, we
570highly recommend updating your ADT Plugin to 0.9.8.</p>
571</dd>
572
573<dt>General notes:</dt>
574<dd>
575<ul>
576<li>Added support for library projects that depend on other library projects.</li>
577<li>Adds support for aidl files in library projects.</li>
578<li>Adds support for extension targets in Ant build to perform tasks between the
579normal tasks: <code>-pre-build</code>, <code>-pre-compile</code>, and
580<code>-post-compile</code>.</li>
581<li>Adds support for "headless" SDK update. See <code>android -h update sdk</code>
582for more information.</li>
583<li>Fixes location control in DDMS to work in any locale not using '.' as a
584decimal point.</li>
Joe Fernandez890f7ea2011-11-28 17:00:27 -0800585</ul>
Dirk Dougherty022171b2010-07-30 19:24:17 -0700586</ul>
587</dd>
588</dl>
589 </div>
590</div>
591
592<div class="toggleable closed">
593 <a href="#" onclick="return toggleDiv(this)">
594 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
Dirk Dougherty0d1b0812010-04-07 17:05:16 -0700595SDK Tools, Revision 6</a> <em>(May 2010)</em>
596 <div class="toggleme">
597
598<dl>
599<dt>Dependencies:</dt>
600<dd>
601<p>If you are developing in Eclipse with ADT, note that SDK Tools r6 is
602designed for use with ADT 0.9.7 and later. After installing SDK Tools r6, we
603highly recommend updating your ADT Plugin to 0.9.7.</p>
604</dd>
605
606<dt>Library projects:</dt>
607<dd>
608<p>The SDK Tools now support the use of <em>library projects</em> during
609development, a capability that lets you store shared Android application
610code and resources in a separate development project. You can then reference the
611library project from other Android projects and, at build time, the tools
612compile the shared code and resources as part of the dependent applications.
613More information about this feature is available in the <a
Robert Lyc74a69a82011-01-04 22:48:02 -0800614href="{@docRoot}guide/developing/projects/index.html#LibraryProjects">Creating and Managing Projects</a> document.</p>
615<p>If you are developing in Eclipse, <a href="eclipse-adt.html">ADT</a>
Dirk Dougherty0d1b0812010-04-07 17:05:16 -0700616provides the equivalent library project support.</p>
617</dd>
618</dl>
619 </div>
620</div>
621
622<div class="toggleable closed">
623 <a href="#" onclick="return toggleDiv(this)">
Dirk Dougherty74a74d32010-09-09 18:40:13 -0700624 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700625SDK Tools, Revision 5</a> <em>(March 2010)</em>
626 <div class="toggleme">
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800627
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700628<dl>
629<dt>Dependencies:</dt>
630<dd><ul>
631<li>If you are developing in Eclipse with ADT, note that SDK Tools r5 is
632designed for use with ADT 0.9.6 and later. After installing SDK Tools r5, we
633highly recommend updating your ADT Plugin to 0.9.6.</li>
634<li>For Mac OS platforms, OS X 10.4.x (Tiger) is no longer
635officially supported. </li>
636</ul>
637</dd>
638
639<dt>SDK and AVD Manager:</dt>
640<dd>
641<ul>
642<li>Fixes SSL download for the standalone version of the SDK Updater.</li>
643<li>Fixes issue with 64-bit JVM on Windows.</li>
644<li>Adds support for platform samples components.</li>
645<li>Improves support for dependency between components.</li>
646<li>AVDs now sorted by API level.</li>
647<li>The AVD creation dialog now enforces a minimum SD card size of 9MB.</li>
648<li>Prevents deletion of running AVDs.</li>
649<li>Settings are now automatically saved, no need to click "Apply".</li>
650</ul>
651</dd>
652
653<dt>Emulator:</dt>
654<dd>
655<ul>
656<li>Emulator now requires SD card to be 9MB or more.</li>
657</ul>
658</dd>
659
660<dt>Layoutopt:</dt>
661<dd>
662<ul>
663<li>Fixes <code>layoutopt.bat</code> to execute correctly on Windows.</li>
664</ul>
665</dd>
666</dl>
667 </div>
668</div>
669
670<div class="toggleable closed">
671 <a href="#" onclick="return toggleDiv(this)">
672 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
673SDK Tools, Revision 4</a> <em>(December 2009)</em>
674 <div class="toggleme">
675
676<dl>
677<dt>Dependencies:</dt>
678<dd><p>SDK Tools r4 is compatible with ADT 0.9.5 and later, but not
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800679compatible with earlier versions. If you are developing in Eclipse with ADT, you
680<strong>must</strong> update your ADT plugin to version 0.9.5 or higher if you
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700681install SDK Tools r4 in your SDK. </p></dd>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800682
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700683<dt>General notes:</dt>
684<dd>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800685<ul>
Robert Lydec97362011-09-22 10:33:28 -0700686<li>Launcher script now forces GDK_NATIVE_WINDOW=true (linux only), to fix a
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800687compatibility issue between GTK and SWT.</li>
688</ul>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700689</dd>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800690
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700691<dt>Android SDK and AVD Manager:</dt>
692<dd>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800693<ul>
694<li>AVD Launch dialog now shows scale value.</li>
Robert Lydec97362011-09-22 10:33:28 -0700695<li>Fixes potential NPE in SDK Manager on AVD launch, for older AVD with no
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800696skin name specified.</li>
697<li>Fixes XML validation issue in on older Java versions.</li>
698<li>No longer forces the use of Java 1.5 on Mac OS X.</li>
699</ul>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700700</dd>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800701
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700702<dt>Emulator:</dt>
703<dd>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800704<ul>
705<li>No longer limits the size of the system partition.</li>
706</ul>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700707</dd>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800708
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700709<dt>Ant build tools:</dt>
710<dd>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800711<ul>
712<li>.apk packaging now properly ignores vi swap files as well as hidden files.</li>
713</ul>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700714</dd>
715</dl>
716 </div>
717</div>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800718
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700719<div class="toggleable closed">
720 <a href="#" onclick="return toggleDiv(this)">
721 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
722SDK Tools, Revision 3</a> <em>(October 2009)</em>
723 <div class="toggleme">
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700724
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700725<dl>
726<dt>Dependencies:</dt>
727<dd><p>SDK Tools r3 is compatible with ADT 0.9.4 and later, but not
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700728compatible with earlier versions. If you are developing in Eclipse with ADT, you
729<strong>must</strong> update your ADT plugin to version 0.9.4 or higher if you
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700730install SDK Tools r3 in your SDK.</p>
731</dd>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700732
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700733<dt>Android tool:</dt>
734<dd>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700735<ul>
736<li>Adds new <code>android create test-project</code> and <code>android update
737test-project</code> commands to allow for greater flexibility in the location of the
738main and test projects.</li>
739</ul>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700740</dd>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700741
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700742<dt>DDMS:</dt>
743<dd>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700744<ul>
Scott Main19f72012011-05-05 18:27:49 -0700745<li>Adds a button to dump HPROF file for running applications (app must be able
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700746to write to the sdcard).</li>
747<li>Button to start/stop profiling of a running application (app must be able to
748write to the sdcard). Upon stop, Traceview will automatically be launched to
749display the trace.</li>
750<li>Fixed DDMS, Traceview, and the AVD Mananger/SDK Updater to run on Mac OS X
75110.6.</li>
752<li>Fixed screenshot support for devices running 32-bit framebuffer.</li>
753</ul>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700754</dd>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700755
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700756<dt>Android SDK and AVD Manager:</dt>
757<dd>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700758<ul>
759<li>Provides a new UI that lets you set options for controlling
Robert Lydec97362011-09-22 10:33:28 -0700760the emulator skin, screen size/density, and scale factor used when launching
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700761an AVD.</li>
762<li>Provides improved AVD creation UI, which lets you customize the hardware
763properties of your AVDs.</li>
764<li>Now enforces dependencies between platforms and tools components, and
765between SDK add-ons and platforms.</li>
766</ul>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700767</dd>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700768
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700769<dt>Layoutopt, a new tool for optimizing layouts:</dt>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700770
Robert Lydec97362011-09-22 10:33:28 -0700771<dd><p>The SDK Tools r3 package includes <code>layoutopt</code>, a new command-line
772tool that helps you optimize your layout hierarchies. When run against your
773layout files, the tool analyzes their hierarchies and notifies you of
774inefficiencies and other potential issues. The tool also provides simple
775solutions for the issues it finds. For usage, see <a
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700776href="/guide/developing/tools/layoutopt.html">layoutopt</a>.</p>
777</dd>
778</dl>
779 </div>
780</div>