blob: 062f8f1b75c7a4a5c8dea06436747de67ea70114 [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 Fernandez68822232012-04-17 14:48:03 -070071 SDK Tools, Revision 19</a> <em>(April 2012)</em>
72
73 <div class="toggleme">
74 <p class="note"><strong>Note:</strong> This update of SDK Tools is only available through
75the <a href="{@docRoot}sdk/adding-components.html">Android SDK Manager</a>. Use this tool to
76download and install this update.</p>
77
78 <dl>
79 <dt>Dependencies:</dt>
80 <dd>
81 <ul>
82 <li>Android SDK Platform-tools revision 9 or later.</li>
83 <li>If you are developing in Eclipse with ADT, note that the SDK Tools r19 is designed for
84 use with ADT 18.0.0 and later. If you haven't already, we highly recommend updating your
85 <a href="{@docRoot}sdk/eclipse-adt.html">ADT Plugin</a> to 18.0.0.</li>
86 <li>If you are developing outside Eclipse, you must have
87 <a href="http://ant.apache.org/">Apache Ant</a> 1.8 or later.</li>
88 </ul>
89 </dd>
90 <dt>Bug fixes:</dt>
91 <dd>
92 <ul>
93 <li>Fixed an issue that prevented some developers from running the emulator with GPU
94acceleration.</li>
95 </ul>
96 </dd>
97 </dl>
98 </div>
99</div>
100
101<div class="toggleable closed">
102 <a href="#" onclick="return toggleDiv(this)">
103 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px"
104 width="9px" />
Joe Fernandezeae02e62012-03-26 11:50:13 -0700105 SDK Tools, Revision 18</a> <em>(April 2012)</em>
106
107 <div class="toggleme">
108 <p class="caution"><strong>Important:</strong> To download the new Android
109 4.0 system components from the Android SDK Manager, you must first update the
110 SDK tools to revision 14 or later and restart the Android SDK Manager. If you do not,
111 the Android 4.0 system components will not be available for download.</p>
112
113 <dl>
114 <dt>Dependencies:</dt>
115 <dd>
116 <ul>
117 <li>Android SDK Platform-tools revision 9 or later.</li>
118 <li>If you are developing in Eclipse with ADT, note that the SDK Tools r18 is designed for
119 use with ADT 18.0.0 and later. If you haven't already, we highly recommend updating your
120 <a href="{@docRoot}sdk/eclipse-adt.html">ADT Plugin</a> to 18.0.0.</li>
121 <li>If you are developing outside Eclipse, you must have
122 <a href="http://ant.apache.org/">Apache Ant</a> 1.8 or later.</li>
123 </ul>
124 </dd>
125 <dt>General notes:</dt>
126 <dd>
127 <ul>
128 <li>Updated the SdkController app to encapsulate both sensor and multitouch emulation
129 functionality.</li>
130 </ul>
131 </dd>
132 <dt>Bug fixes:</dt>
133 <dd>
134 <ul>
135 <li>Fixed Ant issues where some jar libraries in the {@code libs/} folder are not picked up
136in some cases.</li>
137 </ul>
138 </dd>
139 </dl>
140 </div>
141</div>
142
143<div class="toggleable closed">
144 <a href="#" onclick="return toggleDiv(this)">
145 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px"
146 width="9px" />
Joe Fernandezdad557e2012-03-16 01:17:58 -0700147 SDK Tools, Revision 17</a> <em>(March 2012)</em>
148
149 <div class="toggleme">
150 <p class="caution"><strong>Important:</strong> To download the new Android
151 4.0 system components from the Android SDK Manager, you must first update the
152 SDK tools to revision 14 or later and restart the Android SDK Manager. If you do not,
153 the Android 4.0 system components will not be available for download.</p>
154
155 <dl>
156 <dt>Dependencies:</dt>
157 <dd>
158 <ul>
159 <li>Android SDK Platform-tools revision 9 or later.</li>
160 <li>If you are developing in Eclipse with ADT, note that the SDK Tools r17 is designed for
161 use with ADT 17.0.0 and later. If you haven't already, we highly recommend updating your
162 <a href="{@docRoot}sdk/eclipse-adt.html">ADT Plugin</a> to 17.0.0.</li>
163 <li>If you are developing outside Eclipse, you must have
164 <a href="http://ant.apache.org/">Apache Ant</a> 1.8 or later.</li>
165 </ul>
166 </dd>
167 <dt>General notes:</dt>
168 <dd>
169 <ul>
170 <li>Emulator
171 <ul>
172 <li>Added support for hardware accelerated graphics rendering. This feature requires an
173API Level 15, Revision 3 or later system image.
174(<a href="{@docRoot}guide/developing/devices/emulator.html#accel-graphics">more info</a>)
Joe Fernandezdad557e2012-03-16 01:17:58 -0700175 </li>
176 <li>Added support for running Android x86 system images in virtualization mode on
177Windows and Mac OS X.
Joe Fernandezeae02e62012-03-26 11:50:13 -0700178(<a href="{@docRoot}guide/developing/devices/emulator.html#accel-vm">more info</a>)
179 <p class="note"><strong>Note:</strong> Use the Android SDK Manager to download and
180install x86 system images. Android x86 system images are not available for all API levels.</p>
181 </li>
Joe Fernandezdad557e2012-03-16 01:17:58 -0700182 <li>Added experimental support for multi-touch input by enabing the emulator to receive
183 touch input from a USB-tethered physical Android device.
184 (<a href="http://tools.android.com/tips/hardware-emulation">more info</a>)</li>
185 </ul>
186 </li>
187 <li>Added viewing of live detailed network usage of an app in DDMS. (<a
188 href="http://tools.android.com/recent/detailednetworkusageinddms">more info</a>)</li>
189 <li>ProGuard
190 <ul>
191 <li>Updated the bundled ProGuard tool to version 4.7. In addition to many new features,
192this update fixes the {@code Conversion to Dalvik format failed with error 1} error some users have
193experienced.</li>
194 <li>Updated the default {@code proguard.cfg} file with better default flags for
195 Android.</li>
196 <li>Split the ProGuard configuration file has been in half, with project specific flags
197kept in project and the generic Android flags distributed (and updated) with the tools
198themselves.</li>
199 </ul>
200 </li>
201 <li>Build
202 <ul>
203 <li>Added a feature that allows you to run some code only in debug mode. Builds now
204generate a class called {@code BuildConfig} containing a {@code DEBUG} constant that is
205automatically set according to your build type. You can check the ({@code BuildConfig.DEBUG})
206constant in your code to run debug-only functions.</li>
207 <li>Fixed issue when a project and its libraries include the same jar file in their libs
Joe Fernandez1e72b342012-03-21 16:25:21 -0700208 folder. (<a href="http://tools.android.com/recent/dealingwithdependenciesinandroidprojects">more
209 info</a>)</li>
Joe Fernandezdad557e2012-03-16 01:17:58 -0700210 <li>Added support for custom views with custom attributes in libraries. Layouts using
211custom attributes must use the namespace URI {@code http://schemas.android.com/apk/res-auto} instead
212of the URI that includes the app package name. This URI is replaced with the app specific one at
213build time.</li>
214 </ul>
215 </li>
216 <li>Lint
217 <ul>
218 <li>Updated Lint to check Android application code. Lint rules which previously
219performed pattern based searches in the application code (such as the unused resource check) have
220been rewritten to use the more accurate Java-style parse trees.</li>
221 <li>Added support for checking library projects. This change means that rules such as
222the unused resource check properly handle resources declared in a library project and referenced in
223a downstream project.</li>
224 <li>Added ability to suppress Lint warnings in Java code with the new
225{@code @SuppressLint} annotation, and in XML files with the new tools: namespace and
226ignore attribute. (<a
227 href="http://tools.android.com/recent/ignoringlintwarnings">more info</a>)</li>
228 <li>New Lint checks:
229 <ul>
230 <li>Added check for Android API calls that require a version of Android higher than
231 the minimum supported version. You can use the new {@code @TargetApi} annotation
232 to suppress warnings when the code is wrapped in a system version condition.
233 (<a href="http://tools.android.com/recent/lintapicheck">more info</a>)</li>
234 <li>Added over 20 new Lint rules, including checks for
235 <a href="http://tools.android.com/recent/lintperformancechecks">performance</a>,
236 XML layouts, manifest and file handling.</li>
237 </ul>
238 </li>
239 </ul>
240 </li>
241 </ul>
242 </dd>
243 </dl>
244 </div>
245</div>
246
247<div class="toggleable closed">
248 <a href="#" onclick="return toggleDiv(this)">
249 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px"
250 width="9px" />
Joe Fernandez890f7ea2011-11-28 17:00:27 -0800251 SDK Tools, Revision 16</a> <em>(December 2011)</em>
252
253 <div class="toggleme">
254 <p class="caution"><strong>Important:</strong> To download the new Android
255 4.0 system components from the Android SDK Manager, you must first update the
256 SDK tools to revision 14 or later and restart the Android SDK Manager. If you do not,
257 the Android 4.0 system components will not be available for download.</p>
258
259<dl>
260<dt>Dependencies:</dt>
261<dd>
262 <ul>
263 <li>Android SDK Platform-tools revision 9 or later.</li>
264 <li>If you are developing in Eclipse with ADT, note that the SDK Tools r16 is designed for use
265 with ADT 16.0.0 and later. If you haven't already, we highly recommend updating your
266 <a href="{@docRoot}sdk/eclipse-adt.html">ADT Plugin</a> to 16.0.0.</li>
267 <li>If you are developing outside Eclipse, you must have <a href="http://ant.apache.org/">Apache
268 Ant</a> 1.8 or later.</li>
269</ul>
270</dd>
271<dt>General notes:</dt>
272<dd>
273 <ul>
Joe Fernandezdad557e2012-03-16 01:17:58 -0700274 <li>Added Lint tools to detect common errors in Android projects.
Joe Fernandeze4f20312011-12-15 13:23:53 -0800275 (<a href="http://tools.android.com/recent/lint">more info</a>)</li>
Joe Fernandez71d5c1d2011-12-15 22:33:41 -0800276 <li>Added sensor emulation support, which allows the emulator to read sensor data from a
Joe Fernandezdad557e2012-03-16 01:17:58 -0700277 physical Android device.
Joe Fernandeze4f20312011-12-15 13:23:53 -0800278 (<a href="http://tools.android.com/recent/sensoremulation">more info</a>)</li>
Joe Fernandez890f7ea2011-11-28 17:00:27 -0800279 <li>Added support for using a webcam to emulate a camera on Mac OS X.</li>
280 </ul>
281</dd>
282<dt>Bug fixes:</dt>
283<dd>
284 <ul>
285 <li>Snapshots now work for Android 4.0 system images.</li>
286 <li>Fixed several small issues for the build file.
287 (<a href="http://code.google.com/p/android/issues/detail?id=21023">Issue 21023</a>,
288 <a href="http://code.google.com/p/android/issues/detail?id=21267">Issue 21267</a>,
289 <a href="http://code.google.com/p/android/issues/detail?id=21465">Issue 21465</a>,
290 <a href="http://code.google.com/p/android/issues/detail?id=21525">Issue 21525</a>).</li>
291 </ul>
292</dd>
293</dl>
294</div>
295</div>
296
297<div class="toggleable closed">
298 <a href="#" onclick="return toggleDiv(this)">
299 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px"
300 width="9px" />
301 SDK Tools, Revision 15</a> <em>(October 2011)</em>
Robert Ly490463f2011-10-24 11:06:36 -0700302
303 <div class="toggleme">
304 <p class="caution"><strong>Important:</strong> To download the new Android
305 4.0 system components from the Android SDK Manager, you must first update the
306 SDK tools to revision 14 or later and restart the Android SDK Manager. If you do not,
307 the Android 4.0 system components will not be available for download.</p>
308 <dl>
309<dt>Dependencies:</dt>
310<dd>
311 <ul><li>Android SDK Platform-tools revision 9 or later.</li>
312 <li>If you are developing in Eclipse with ADT, note that the SDK Tools r15 is designed for use
313 with ADT 15.0.0 and later. If you haven't already, we highly recommend updating your <a
314 href="{@docRoot}sdk/eclipse-adt.html">ADT Plugin</a> to 15.0.0.</li>
315 <li>If you are developing outside Eclipse, you must have <a href="http://ant.apache.org/">Apache
316 Ant</a> 1.8 or later.</li>
317</ul>
318
319<dt>Bug fixes:</dt>
320<dd>
321 <ul>
322 <li>Fixed emulator crash on Linux due to improper webcam detection
323 (<a href="http://code.google.com/p/android/issues/detail?id=20952">Issue 20952</a>).</li>
324 <li>Fixed emulator issue when using the <code>-wipe-data</code> argument.</li>
325 <li>Fixed build issue when using Renderscript in projects that target API levels 11-13
326 (<a href="http://code.google.com/p/android/issues/detail?id=21006">Issue 21006</a>).</li>
327 <li>Fixed issue when creating an AVD using the GoogleTV addon
328 (<a href="http://code.google.com/p/android/issues/detail?id=20963">Issue 20963</a>).</li>
329 <li>Fixed <code>ant test</code>
330 (<a href="http://code.google.com/p/android/issues/detail?id=20979">Issue 20979</a>).</li>
331 <li>Fixed <code>android update project</code>
332 (<a href="http://code.google.com/p/android/issues/detail?id=20535">Issue 20535</a>).</li>
333 <li>Fixed scrolling issue in the new Logcat panel of DDMS.</li>
334 <li>Fixed issue with MonkeyRunner
335 (<a href="http://code.google.com/p/android/issues/detail?id=20964">Issue 20964</a>).</li>
336 <li>Fixed issues in the SDK Manager
337 (<a href="http://code.google.com/p/android/issues/detail?id=20939">Issue 20939</a>,
338 <a href="http://code.google.com/p/android/issues/detail?id=20607">Issue 20607</a>).</li>
339 </ul>
340</dd>
341</dl>
342</div>
343</div>
344
345<div class="toggleable closed">
346 <a href="#" onclick="return toggleDiv(this)">
347 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px"
Joe Fernandez890f7ea2011-11-28 17:00:27 -0800348 width="9px" />
349 SDK Tools, Revision 14</a> <em>(October 2011)</em>
Robert Ly6cf7d9a2011-10-12 15:30:35 -0700350
Robert Ly6c81c302011-10-05 12:59:29 -0700351 <div class="toggleme">
Robert Ly6cf7d9a2011-10-12 15:30:35 -0700352 <p class="note"><strong>Important:</strong> To download the new Android
353 4.0 system components from the Android SDK Manager, you must first update the
354 SDK tools to revision 14 and restart the Android SDK Manager. If you do not,
355 the Android 4.0 system components will not be available for download.</p>
Robert Ly6c81c302011-10-05 12:59:29 -0700356 <dl>
357<dt>Dependencies:</dt>
358<dd>
359 <ul><li>Android SDK Platform-tools revision 8 or later.</li>
360 <li>If you are developing in Eclipse with ADT, note that the SDK Tools r14 is designed for use
361 with ADT 14.0.0 and later. If you haven't already, we highly recommend updating your <a
362 href="{@docRoot}sdk/eclipse-adt.html">ADT Plugin</a> to 14.0.0.</li>
363 <li>If you are developing outside Eclipse, you must have <a href="http://ant.apache.org/">Apache
364 Ant</a> 1.8 or later.</li>
365</ul>
366
367<dt>General notes:</dt>
368<dd>
369 <ul>
Joe Fernandez890f7ea2011-11-28 17:00:27 -0800370 <li>Added webcam support to Android 4.0 or later platforms to emulate rear-facing cameras when
371 one webcam is present, and to emulate both rear-facing and front-facing cameras when two
372 webcams are present. Webcam support is for Windows and Linux only.
Robert Ly6cf7d9a2011-10-12 15:30:35 -0700373 Mac support will come in a later release.</li>
Joe Fernandez890f7ea2011-11-28 17:00:27 -0800374 <li>Changed <code>default.properties</code> to <code>project.properties</code> and
Robert Ly6c81c302011-10-05 12:59:29 -0700375 <code>build.properties</code> to <code>ant.properties</code>. Any existing
376 projects that you build with Ant must be updated with the <code>android update project</code>
377 command.</li>
378 <li>Changed Ant <code>build.xml</code> file to support improvements to the
379 build system and added and modified Ant commands to support these changes. For a list of Ant
380commands, see the
381<a href="{@docRoot}guide/developing/building/building-cmdline.html#AntReference">Ant Command
382Reference</a>.</li>
Joe Fernandez71d5c1d2011-12-15 22:33:41 -0800383 <li>Changed how library projects are built.</li>
Robert Ly6c81c302011-10-05 12:59:29 -0700384 <li>Improved incremental builds, so that resource compilation runs less frequently. Builds no
385 longer run when you edit strings or layouts (unless you add a new <code>id</code>) and no longer
386 run once for each library project.</li>
387 <li>Introduced a "PNG crunch cache" that only runs on modified PNG files, instead of
388 crunching all existing PNG files, all the time.</li>
389 <li>Revamped the SDK Manager UI (<a href="http://tools.android.com/recent/newsdkmanager">more
390info</a>).</li>
391 </ul>
392 <p>For a complete overview of the build system changes and what you need to do to support them,
393see the <a href="http://tools.android.com/recent/buildchangesinrevision14">Android Tools Project
394site</a>.</p>
395</dd>
396</dl>
397</div>
398</div>
399
400<div class="toggleable closed">
401 <a href="#" onclick="return toggleDiv(this)">
402 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px"
403 width="9px" />
Robert Lydec97362011-09-22 10:33:28 -0700404SDK Tools, Revision 13</a> <em>(September 2011)</em>
405 <div class="toggleme">
406 <dl>
407<dt>Dependencies:</dt>
408<dd>
409<p>If you are developing in Eclipse with ADT, note that the SDK Tools r13 is designed for use with
410ADT 12.0.0 and later. If you haven't already, we highly recommend updating your <a
411href="{@docRoot}sdk/eclipse-adt.html">ADT Plugin</a> to 12.0.0.</p>
412
413<p>If you are developing outside Eclipse, you must have <a href="http://ant.apache.org/">Apache
414Ant</a> 1.8 or later.</p>
415
416<dt>General notes:</dt>
417<dd>
418 <ul>
419 <li>Fix compilation issue in Ant (<code>dex</code> step) when paths have spaces.</li>
420 <li>Fix issue in emulator installation when paths have spaces.</li>
421 <li>Fix issue when AVD paths have spaces.</li>
422 <li>Fix rendering issue when using emulator scaling (<a href="http://code.google.com/p/android/issues/detail?id=18299">see more</a>).</li>
423 </ul>
424</dd>
425</dl>
426</div>
427</div>
428
429
430<div class="toggleable closed">
431 <a href="#" onclick="return toggleDiv(this)">
432 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
Robert Ly31ee77e2011-07-06 11:16:19 -0700433SDK Tools, Revision 12</a> <em>(July 2011)</em>
Robert Ly205d1c32011-06-28 13:13:14 -0700434 <div class="toggleme">
435 <dl>
436<dt>Dependencies:</dt>
437<dd>
438<p>If you are developing in Eclipse with ADT, note that the SDK Tools r12 is designed for use with
439ADT 12.0.0 and later. If you haven't already, we highly recommend updating your <a
440href="{@docRoot}sdk/eclipse-adt.html">ADT Plugin</a> to 12.0.0.</p>
441
442<p>If you are developing outside Eclipse, you must have <a href="http://ant.apache.org/">Apache
443Ant</a> 1.8 or later.</p>
444
445<dt>General notes:</dt>
446<dd>
447 <ul>
448 <li>The AVD manager and emulator can now use system images
449 compiled for ARM v7 and x86 CPUs.</li>
450 </ul>
451</dd>
452</dl>
453</div>
454</div>
455
456<div class="toggleable closed">
457 <a href="#" onclick="return toggleDiv(this)">
458 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
Dirk Doughertyb7c7f152011-03-25 11:54:46 -0700459SDK Tools, Revision 11</a> <em>(May 2011)</em>
Robert Lyccea5d22011-02-11 14:59:36 -0800460 <div class="toggleme">
461 <dl>
462<dt>Dependencies:</dt>
463<dd>
Scott Main19f72012011-05-05 18:27:49 -0700464<p>If you are developing in Eclipse with ADT, note that the SDK Tools r11 is designed for use with
465ADT 10.0.1 and later. If you haven't already, we highly recommend updating your <a
466href="{@docRoot}sdk/eclipse-adt.html">ADT Plugin</a> to 10.0.1.</p>
467
468<p>If you are developing outside Eclipse, you must have <a href="http://ant.apache.org/">Apache
469Ant</a> 1.8 or later.</p>
470
471<dt>General notes:</dt>
472<dd>
473 <ul>
474 <li>Miscellaneous emulator changes to support Android 3.1.</li>
475 </ul>
476</dd>
477</dl>
478</div>
479</div>
480
481
482<div class="toggleable closed">
483 <a href="#" onclick="return toggleDiv(this)">
484 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px"
485width="9px" />
486SDK Tools, Revision 10</a> <em>(February 2011)</em>
487 <div class="toggleme">
488 <dl>
489<dt>Dependencies:</dt>
490<dd>
Robert Lyccea5d22011-02-11 14:59:36 -0800491<p>If you are developing in Eclipse with ADT, note that the SDK Tools r10 is
492designed for use with ADT 10.0.0 and later. After installing SDK Tools r10, we
493highly recommend updating your ADT Plugin to 10.0.0.</p>
494
495<p>If you are developing outside Eclipse, you must have <a href="http://ant.apache.org/">Apache
496Ant</a> 1.8 or later.</p>
497
498<dt>General notes:</dt>
499<dd>
500 <ul>
Scott Main19f72012011-05-05 18:27:49 -0700501 <li>The tools now automatically generate Java Programming Language source files (in the
502<code>gen</code> directory) and
Robert Lyccea5d22011-02-11 14:59:36 -0800503 bytecode (in the <code>res/raw</code> directory) from your native <code>.rs</code> files</li>
504 </ul>
505</dd>
506</dl>
507</div>
508</div>
509
510
511
512<div class="toggleable closed">
513 <a href="#" onclick="return toggleDiv(this)">
514 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
Robert Lyedc2aac2011-01-14 16:25:09 -0800515SDK Tools, Revision 9</a> <em>(January 2011)</em>
516 <div class="toggleme">
517 <dl>
518<dt>Dependencies:</dt>
519<dd>
520<p>If you are developing in Eclipse with ADT, note that the SDK Tools r9 is
521designed for use with ADT 9.0.0 and later. After installing SDK Tools r9, we
522highly recommend updating your ADT Plugin to 9.0.0.</p>
523
524<p>If you are developing outside Eclipse, you must have <a href="http://ant.apache.org/">Apache
525Ant</a> 1.8 or later.</p>
526
527<dt>Upgrading to SDK Tools r9:</dt>
528<dd>
529<p>If you are upgrading to SDK Tools r9 from SDK Tools r7 or earlier, the default installed location
530for the <code>adb</code> tool has changed from <code>&lt;<em>SDK</em>&gt;/tools/adb</code> to
531<code>&lt;<em>SDK</em>&gt;/platform-tools/adb</code>. This means that you should
532add the new location to your PATH and modify any custom build scripts to
533reference the new location. Copying the <code>adb</code> executable from the new
534location to the old is not recommended, since subsequent updates to the SDK
535Tools will delete the file.</p>
536</dd>
537
538<dt>General notes:</dt>
539<dd>
540 <ul>
541 <li>The default ProGuard configuration, <code>proguard.cfg</code>, now ignores the following classes:
542 <ul>
543 <li>classes that extend {@link android.preference.Preference}</li>
544 <li>classes that extend {@link android.app.backup.BackupAgentHelper}</li>
545 </ul>
546 </li>
547 <li>Ant lib rules now allow you to override <code>java.encoding</code>, <code>java.source</code>,
548 and <code>java.target</code> properties.</li>
549 <li>The default encoding for the <code>javac</code> Ant task is now UTF-8.</li>
550 <li>The LogCat view in DDMS now properly displays UTF-8 characters.</li>
551 <li>The SDK Manager is more reliable on Windows. For details on the improvements, see the
552 <a href="http://tools.android.com/recent/sdkmanagerfixes">Android Tools Project Site</a>. </li>
Scott Mainf9af3012011-01-27 11:26:29 -0800553 <li>Early look at the new snapshot feature: To improve startup time for the emulator, you can
554enable snapshots for the system state. The emulator will then restore to the state when it last
555closed almost instantly. <strong>Note:</strong> The snapshot feature is still under active
556development and might not always perform as expected.</li>
Robert Lyedc2aac2011-01-14 16:25:09 -0800557 <li>Fixed the missing JAR file error that prevented <code>draw9patch</code> from running.</li>
558 <li>Fixed the Windows launch scripts <code>hierarchyviewer</code> and <code>ddms</code> to support
559 the new location of <code>adb</code>.</li>
Scott Main04f04b22011-01-21 19:11:23 -0800560 <li>Known issues with emulator performance: Because the Android emulator must simulate the ARM
561instruction set architecture on your computer, emulator performance is slow. We're working hard to
562resolve the performance issues and it will improve in future releases.</li>
Robert Lyedc2aac2011-01-14 16:25:09 -0800563 </ul>
564</dd>
565</dl>
566</div>
567</div>
568
569<div class="toggleable closed">
570 <a href="#" onclick="return toggleDiv(this)">
571 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
Dirk Dougherty9f7580d2010-10-26 09:29:03 -0700572SDK Tools, Revision 8</a> <em>(December 2010)</em>
573 <div class="toggleme">
574
575<dl>
576<dt>Dependencies:</dt>
577<dd>
578<p>If you are developing in Eclipse with ADT, note that SDK Tools r8 is
579designed for use with ADT 8.0.0 and later. After installing SDK Tools r8, we
580highly recommend updating your ADT Plugin to 8.0.0.</p>
581
Scott Main92b03082010-12-14 17:55:27 -0800582<p>If you are developing outside Eclipse, you must have <a href="http://ant.apache.org/">Apache
583Ant</a> 1.8 or later.</p>
584
Dirk Dougherty9f7580d2010-10-26 09:29:03 -0700585<p>Also note that SDK Tools r8 requires a new SDK component called
586<em>Platform-tools</em>. The new Platform-tools component lets all SDK platforms
587(Android 2.1, Android 2.2, and so on) use the same (latest) version of build
588tools such as <code>adb</code>, <code>aapt</code>, <code>aidl</code>, and
589<code>dx</code>. To download the Platform-tools component, use the Android SDK
590Manager, as described in <a href="adding-components.html">Adding SDK
591Components</a></p>
592
593<dt>Upgrading from SDK Tools r7:</dt>
594<dd>
595<p>If you are upgrading to SDK Tools r8 from an earlier version, note that the
596the default installed location for the <code>adb</code> tool has changed from
597<code>&lt;<em>SDK</em>&gt;/tools/adb</code> to
598<code>&lt;<em>SDK</em>&gt;/platform-tools/adb</code>. This means that you should
599add the new location to your PATH and modify any custom build scripts to
600reference the new location. Copying the <code>adb</code> executable from the new
601location to the old is not recommended, since subsequent updates to the SDK
602Tools will delete the file.</p>
603</dd>
604
605<dt>General notes:</dt>
606<dd>
607<ul>
608<li>All SDK platforms now support Library Projects.</li>
609<li>Support for a true debug build. Developers no longer need to add the
610<code>android:debuggable</code> attribute to the
611<code>&lt;application&gt;</code> tag in the manifest &mdash; the build tools add
612the attribute automatically. In Eclipse/ADT, all incremental builds are assumed
613to be debug builds, so the tools insert <code>android:debuggable="true"</code>.
614When exporting a signed release build, the tools do not add the attribute. In
615Ant, a <code>ant debug</code> command automatically inserts the
616<code>android:debuggable="true"</code> attribute, while <code>ant release</code>
617does not. If <code>android:debuggable="true"</code> is manually set, then
618<code>ant release</code> will actually do a debug build, rather than a release
619build.</li>
620<li>Automatic ProGuard support in release builds. Developers generate a ProGuard
621configuration file using the <code>android</code> tool &mdash; the build tools
622then automatically run ProGuard against the project sources during the build.
623For more information, see the <a
624href="{@docRoot}guide/developing/tools/proguard.html">ProGuard</a>
625documentation. </li>
626<li>New overridable Ant javac properties: <code>java.encoding</code>,
627<code>java.source</code>, and <code>java.target</code> (default values are
628"ascii", "1.5", and "1.5", respectively).</li>
629<li>New UI for the HierarchyViewer tool.</li>
630</ul>
631</dd>
632</dl>
633 </div>
634</div>
635
636<div class="toggleable closed">
637 <a href="#" onclick="return toggleDiv(this)">
638 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
Dirk Dougherty022171b2010-07-30 19:24:17 -0700639SDK Tools, Revision 7</a> <em>(September 2010)</em>
640 <div class="toggleme">
641
642<dl>
643<dt>Dependencies:</dt>
644<dd>
645<p>If you are developing in Eclipse with ADT, note that SDK Tools r7 is
646designed for use with ADT 0.9.8 and later. After installing SDK Tools r7, we
647highly recommend updating your ADT Plugin to 0.9.8.</p>
648</dd>
649
650<dt>General notes:</dt>
651<dd>
652<ul>
653<li>Added support for library projects that depend on other library projects.</li>
654<li>Adds support for aidl files in library projects.</li>
655<li>Adds support for extension targets in Ant build to perform tasks between the
656normal tasks: <code>-pre-build</code>, <code>-pre-compile</code>, and
657<code>-post-compile</code>.</li>
658<li>Adds support for "headless" SDK update. See <code>android -h update sdk</code>
659for more information.</li>
660<li>Fixes location control in DDMS to work in any locale not using '.' as a
661decimal point.</li>
Joe Fernandez890f7ea2011-11-28 17:00:27 -0800662</ul>
Dirk Dougherty022171b2010-07-30 19:24:17 -0700663</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" />
Dirk Dougherty0d1b0812010-04-07 17:05:16 -0700672SDK Tools, Revision 6</a> <em>(May 2010)</em>
673 <div class="toggleme">
674
675<dl>
676<dt>Dependencies:</dt>
677<dd>
678<p>If you are developing in Eclipse with ADT, note that SDK Tools r6 is
679designed for use with ADT 0.9.7 and later. After installing SDK Tools r6, we
680highly recommend updating your ADT Plugin to 0.9.7.</p>
681</dd>
682
683<dt>Library projects:</dt>
684<dd>
685<p>The SDK Tools now support the use of <em>library projects</em> during
686development, a capability that lets you store shared Android application
687code and resources in a separate development project. You can then reference the
688library project from other Android projects and, at build time, the tools
689compile the shared code and resources as part of the dependent applications.
690More information about this feature is available in the <a
Robert Lyc74a69a82011-01-04 22:48:02 -0800691href="{@docRoot}guide/developing/projects/index.html#LibraryProjects">Creating and Managing Projects</a> document.</p>
692<p>If you are developing in Eclipse, <a href="eclipse-adt.html">ADT</a>
Dirk Dougherty0d1b0812010-04-07 17:05:16 -0700693provides the equivalent library project support.</p>
694</dd>
695</dl>
696 </div>
697</div>
698
699<div class="toggleable closed">
700 <a href="#" onclick="return toggleDiv(this)">
Dirk Dougherty74a74d32010-09-09 18:40:13 -0700701 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700702SDK Tools, Revision 5</a> <em>(March 2010)</em>
703 <div class="toggleme">
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800704
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700705<dl>
706<dt>Dependencies:</dt>
707<dd><ul>
708<li>If you are developing in Eclipse with ADT, note that SDK Tools r5 is
709designed for use with ADT 0.9.6 and later. After installing SDK Tools r5, we
710highly recommend updating your ADT Plugin to 0.9.6.</li>
711<li>For Mac OS platforms, OS X 10.4.x (Tiger) is no longer
712officially supported. </li>
713</ul>
714</dd>
715
716<dt>SDK and AVD Manager:</dt>
717<dd>
718<ul>
719<li>Fixes SSL download for the standalone version of the SDK Updater.</li>
720<li>Fixes issue with 64-bit JVM on Windows.</li>
721<li>Adds support for platform samples components.</li>
722<li>Improves support for dependency between components.</li>
723<li>AVDs now sorted by API level.</li>
724<li>The AVD creation dialog now enforces a minimum SD card size of 9MB.</li>
725<li>Prevents deletion of running AVDs.</li>
726<li>Settings are now automatically saved, no need to click "Apply".</li>
727</ul>
728</dd>
729
730<dt>Emulator:</dt>
731<dd>
732<ul>
733<li>Emulator now requires SD card to be 9MB or more.</li>
734</ul>
735</dd>
736
737<dt>Layoutopt:</dt>
738<dd>
739<ul>
740<li>Fixes <code>layoutopt.bat</code> to execute correctly on Windows.</li>
741</ul>
742</dd>
743</dl>
744 </div>
745</div>
746
747<div class="toggleable closed">
748 <a href="#" onclick="return toggleDiv(this)">
749 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
750SDK Tools, Revision 4</a> <em>(December 2009)</em>
751 <div class="toggleme">
752
753<dl>
754<dt>Dependencies:</dt>
755<dd><p>SDK Tools r4 is compatible with ADT 0.9.5 and later, but not
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800756compatible with earlier versions. If you are developing in Eclipse with ADT, you
757<strong>must</strong> update your ADT plugin to version 0.9.5 or higher if you
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700758install SDK Tools r4 in your SDK. </p></dd>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800759
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700760<dt>General notes:</dt>
761<dd>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800762<ul>
Robert Lydec97362011-09-22 10:33:28 -0700763<li>Launcher script now forces GDK_NATIVE_WINDOW=true (linux only), to fix a
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800764compatibility issue between GTK and SWT.</li>
765</ul>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700766</dd>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800767
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700768<dt>Android SDK and AVD Manager:</dt>
769<dd>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800770<ul>
771<li>AVD Launch dialog now shows scale value.</li>
Robert Lydec97362011-09-22 10:33:28 -0700772<li>Fixes potential NPE in SDK Manager on AVD launch, for older AVD with no
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800773skin name specified.</li>
774<li>Fixes XML validation issue in on older Java versions.</li>
775<li>No longer forces the use of Java 1.5 on Mac OS X.</li>
776</ul>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700777</dd>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800778
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700779<dt>Emulator:</dt>
780<dd>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800781<ul>
782<li>No longer limits the size of the system partition.</li>
783</ul>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700784</dd>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800785
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700786<dt>Ant build tools:</dt>
787<dd>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800788<ul>
789<li>.apk packaging now properly ignores vi swap files as well as hidden files.</li>
790</ul>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700791</dd>
792</dl>
793 </div>
794</div>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800795
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700796<div class="toggleable closed">
797 <a href="#" onclick="return toggleDiv(this)">
798 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
799SDK Tools, Revision 3</a> <em>(October 2009)</em>
800 <div class="toggleme">
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700801
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700802<dl>
803<dt>Dependencies:</dt>
804<dd><p>SDK Tools r3 is compatible with ADT 0.9.4 and later, but not
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700805compatible with earlier versions. If you are developing in Eclipse with ADT, you
806<strong>must</strong> update your ADT plugin to version 0.9.4 or higher if you
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700807install SDK Tools r3 in your SDK.</p>
808</dd>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700809
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700810<dt>Android tool:</dt>
811<dd>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700812<ul>
813<li>Adds new <code>android create test-project</code> and <code>android update
814test-project</code> commands to allow for greater flexibility in the location of the
815main and test projects.</li>
816</ul>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700817</dd>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700818
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700819<dt>DDMS:</dt>
820<dd>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700821<ul>
Scott Main19f72012011-05-05 18:27:49 -0700822<li>Adds a button to dump HPROF file for running applications (app must be able
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700823to write to the sdcard).</li>
824<li>Button to start/stop profiling of a running application (app must be able to
825write to the sdcard). Upon stop, Traceview will automatically be launched to
826display the trace.</li>
827<li>Fixed DDMS, Traceview, and the AVD Mananger/SDK Updater to run on Mac OS X
82810.6.</li>
829<li>Fixed screenshot support for devices running 32-bit framebuffer.</li>
830</ul>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700831</dd>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700832
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700833<dt>Android SDK and AVD Manager:</dt>
834<dd>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700835<ul>
836<li>Provides a new UI that lets you set options for controlling
Robert Lydec97362011-09-22 10:33:28 -0700837the emulator skin, screen size/density, and scale factor used when launching
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700838an AVD.</li>
839<li>Provides improved AVD creation UI, which lets you customize the hardware
840properties of your AVDs.</li>
841<li>Now enforces dependencies between platforms and tools components, and
842between SDK add-ons and platforms.</li>
843</ul>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700844</dd>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700845
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700846<dt>Layoutopt, a new tool for optimizing layouts:</dt>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700847
Robert Lydec97362011-09-22 10:33:28 -0700848<dd><p>The SDK Tools r3 package includes <code>layoutopt</code>, a new command-line
849tool that helps you optimize your layout hierarchies. When run against your
850layout files, the tool analyzes their hierarchies and notifies you of
851inefficiencies and other potential issues. The tool also provides simple
852solutions for the issues it finds. For usage, see <a
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700853href="/guide/developing/tools/layoutopt.html">layoutopt</a>.</p>
854</dd>
855</dl>
856 </div>
857</div>