blob: 212d3c02ca8b838b19d5c64cf4b07bc2a2c6b61a [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
5complete set of development and debugging tools for the Android SDK. </p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -07006
Dirk Dougherty7b229ef2010-03-26 17:32:26 -07007<p>If you are new to the Android SDK, the <a
8href="{@docRoot}sdk/index.html">SDK starter package</a> installs the
9latest revision of the SDK Tools in the <code>&lt;sdk&gt;/tools</code> directory.</p>
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
12of the SDK Tools, use the <em>Android SDK and AVD Manager</em> to get the
13update, rather than downloading a new SDK starter package. For more information
14about how to update, see <a
15href="{@docRoot}sdk/adding-components.html#UpdatingComponents">Updating SDK
16Components</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
23Tools you are using, refer to the "Installed Packages" listing in the Android SDK
24and AVD Manager. </p>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -080025
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070026<script type="text/javascript">
27function toggleDiv(link) {
28 var toggleable = $(link).parent();
29 if (toggleable.hasClass("closed")) {
30 //$(".toggleme", toggleable).slideDown("fast");
31 toggleable.removeClass("closed");
32 toggleable.addClass("open");
33 $(".toggle-img", toggleable).attr("title", "hide").attr("src", (toRoot + "assets/images/triangle-opened.png"));
34 } else {
35 //$(".toggleme", toggleable).slideUp("fast");
36 toggleable.removeClass("open");
37 toggleable.addClass("closed");
38 $(".toggle-img", toggleable).attr("title", "show").attr("src", (toRoot + "assets/images/triangle-closed.png"));
39 }
40 return false;
41}
42</script>
43<style>
44.toggleable {
45padding: .25em 1em;
46}
47.toggleme {
48 padding: 1em 1em 0 2em;
49 line-height:1em;
50}
51.toggleable a {
52 text-decoration:none;
53}
Dirk Dougherty0d1b0812010-04-07 17:05:16 -070054.toggleme a {
55 text-decoration:underline;
56}
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070057.toggleable.closed .toggleme {
58 display:none;
59}
60#jd-content .toggle-img {
61 margin:0;
62}
63</style>
Dirk Dougherty0d1b0812010-04-07 17:05:16 -070064
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070065<div class="toggleable opened">
66 <a href="#" onclick="return toggleDiv(this)">
67 <img src="{@docRoot}assets/images/triangle-opened.png" class="toggle-img" height="9px" width="9px" />
Robert Lyedc2aac2011-01-14 16:25:09 -080068SDK Tools, Revision 9</a> <em>(January 2011)</em>
69 <div class="toggleme">
70 <dl>
71<dt>Dependencies:</dt>
72<dd>
73<p>If you are developing in Eclipse with ADT, note that the SDK Tools r9 is
74designed for use with ADT 9.0.0 and later. After installing SDK Tools r9, we
75highly recommend updating your ADT Plugin to 9.0.0.</p>
76
77<p>If you are developing outside Eclipse, you must have <a href="http://ant.apache.org/">Apache
78Ant</a> 1.8 or later.</p>
79
80<dt>Upgrading to SDK Tools r9:</dt>
81<dd>
82<p>If you are upgrading to SDK Tools r9 from SDK Tools r7 or earlier, the default installed location
83for the <code>adb</code> tool has changed from <code>&lt;<em>SDK</em>&gt;/tools/adb</code> to
84<code>&lt;<em>SDK</em>&gt;/platform-tools/adb</code>. This means that you should
85add the new location to your PATH and modify any custom build scripts to
86reference the new location. Copying the <code>adb</code> executable from the new
87location to the old is not recommended, since subsequent updates to the SDK
88Tools will delete the file.</p>
89</dd>
90
91<dt>General notes:</dt>
92<dd>
93 <ul>
94 <li>The default ProGuard configuration, <code>proguard.cfg</code>, now ignores the following classes:
95 <ul>
96 <li>classes that extend {@link android.preference.Preference}</li>
97 <li>classes that extend {@link android.app.backup.BackupAgentHelper}</li>
98 </ul>
99 </li>
100 <li>Ant lib rules now allow you to override <code>java.encoding</code>, <code>java.source</code>,
101 and <code>java.target</code> properties.</li>
102 <li>The default encoding for the <code>javac</code> Ant task is now UTF-8.</li>
103 <li>The LogCat view in DDMS now properly displays UTF-8 characters.</li>
104 <li>The SDK Manager is more reliable on Windows. For details on the improvements, see the
105 <a href="http://tools.android.com/recent/sdkmanagerfixes">Android Tools Project Site</a>. </li>
106 <li>If you enabled snapshots for an AVD, they are automatically captured. The emulator also now restores to the state when
107 it last closed almost instantly.</li>
108 <li>Fixed the missing JAR file error that prevented <code>draw9patch</code> from running.</li>
109 <li>Fixed the Windows launch scripts <code>hierarchyviewer</code> and <code>ddms</code> to support
110 the new location of <code>adb</code>.</li>
Scott Main04f04b22011-01-21 19:11:23 -0800111 <li>Known issues with emulator performance: Because the Android emulator must simulate the ARM
112instruction set architecture on your computer, emulator performance is slow. We're working hard to
113resolve the performance issues and it will improve in future releases.</li>
Robert Lyedc2aac2011-01-14 16:25:09 -0800114 </ul>
115</dd>
116</dl>
117</div>
118</div>
119
120<div class="toggleable closed">
121 <a href="#" onclick="return toggleDiv(this)">
122 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
Dirk Dougherty9f7580d2010-10-26 09:29:03 -0700123SDK Tools, Revision 8</a> <em>(December 2010)</em>
124 <div class="toggleme">
125
126<dl>
127<dt>Dependencies:</dt>
128<dd>
129<p>If you are developing in Eclipse with ADT, note that SDK Tools r8 is
130designed for use with ADT 8.0.0 and later. After installing SDK Tools r8, we
131highly recommend updating your ADT Plugin to 8.0.0.</p>
132
Scott Main92b03082010-12-14 17:55:27 -0800133<p>If you are developing outside Eclipse, you must have <a href="http://ant.apache.org/">Apache
134Ant</a> 1.8 or later.</p>
135
Dirk Dougherty9f7580d2010-10-26 09:29:03 -0700136<p>Also note that SDK Tools r8 requires a new SDK component called
137<em>Platform-tools</em>. The new Platform-tools component lets all SDK platforms
138(Android 2.1, Android 2.2, and so on) use the same (latest) version of build
139tools such as <code>adb</code>, <code>aapt</code>, <code>aidl</code>, and
140<code>dx</code>. To download the Platform-tools component, use the Android SDK
141Manager, as described in <a href="adding-components.html">Adding SDK
142Components</a></p>
143
144<dt>Upgrading from SDK Tools r7:</dt>
145<dd>
146<p>If you are upgrading to SDK Tools r8 from an earlier version, note that the
147the default installed location for the <code>adb</code> tool has changed from
148<code>&lt;<em>SDK</em>&gt;/tools/adb</code> to
149<code>&lt;<em>SDK</em>&gt;/platform-tools/adb</code>. This means that you should
150add the new location to your PATH and modify any custom build scripts to
151reference the new location. Copying the <code>adb</code> executable from the new
152location to the old is not recommended, since subsequent updates to the SDK
153Tools will delete the file.</p>
154</dd>
155
156<dt>General notes:</dt>
157<dd>
158<ul>
159<li>All SDK platforms now support Library Projects.</li>
160<li>Support for a true debug build. Developers no longer need to add the
161<code>android:debuggable</code> attribute to the
162<code>&lt;application&gt;</code> tag in the manifest &mdash; the build tools add
163the attribute automatically. In Eclipse/ADT, all incremental builds are assumed
164to be debug builds, so the tools insert <code>android:debuggable="true"</code>.
165When exporting a signed release build, the tools do not add the attribute. In
166Ant, a <code>ant debug</code> command automatically inserts the
167<code>android:debuggable="true"</code> attribute, while <code>ant release</code>
168does not. If <code>android:debuggable="true"</code> is manually set, then
169<code>ant release</code> will actually do a debug build, rather than a release
170build.</li>
171<li>Automatic ProGuard support in release builds. Developers generate a ProGuard
172configuration file using the <code>android</code> tool &mdash; the build tools
173then automatically run ProGuard against the project sources during the build.
174For more information, see the <a
175href="{@docRoot}guide/developing/tools/proguard.html">ProGuard</a>
176documentation. </li>
177<li>New overridable Ant javac properties: <code>java.encoding</code>,
178<code>java.source</code>, and <code>java.target</code> (default values are
179"ascii", "1.5", and "1.5", respectively).</li>
180<li>New UI for the HierarchyViewer tool.</li>
181</ul>
182</dd>
183</dl>
184 </div>
185</div>
186
187<div class="toggleable closed">
188 <a href="#" onclick="return toggleDiv(this)">
189 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
Dirk Dougherty022171b2010-07-30 19:24:17 -0700190SDK Tools, Revision 7</a> <em>(September 2010)</em>
191 <div class="toggleme">
192
193<dl>
194<dt>Dependencies:</dt>
195<dd>
196<p>If you are developing in Eclipse with ADT, note that SDK Tools r7 is
197designed for use with ADT 0.9.8 and later. After installing SDK Tools r7, we
198highly recommend updating your ADT Plugin to 0.9.8.</p>
199</dd>
200
201<dt>General notes:</dt>
202<dd>
203<ul>
204<li>Added support for library projects that depend on other library projects.</li>
205<li>Adds support for aidl files in library projects.</li>
206<li>Adds support for extension targets in Ant build to perform tasks between the
207normal tasks: <code>-pre-build</code>, <code>-pre-compile</code>, and
208<code>-post-compile</code>.</li>
209<li>Adds support for "headless" SDK update. See <code>android -h update sdk</code>
210for more information.</li>
211<li>Fixes location control in DDMS to work in any locale not using '.' as a
212decimal point.</li>
213</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" width="9px" />
Dirk Dougherty0d1b0812010-04-07 17:05:16 -0700223SDK Tools, Revision 6</a> <em>(May 2010)</em>
224 <div class="toggleme">
225
226<dl>
227<dt>Dependencies:</dt>
228<dd>
229<p>If you are developing in Eclipse with ADT, note that SDK Tools r6 is
230designed for use with ADT 0.9.7 and later. After installing SDK Tools r6, we
231highly recommend updating your ADT Plugin to 0.9.7.</p>
232</dd>
233
234<dt>Library projects:</dt>
235<dd>
236<p>The SDK Tools now support the use of <em>library projects</em> during
237development, a capability that lets you store shared Android application
238code and resources in a separate development project. You can then reference the
239library project from other Android projects and, at build time, the tools
240compile the shared code and resources as part of the dependent applications.
241More information about this feature is available in the <a
Robert Lyc74a69a82011-01-04 22:48:02 -0800242href="{@docRoot}guide/developing/projects/index.html#LibraryProjects">Creating and Managing Projects</a> document.</p>
243<p>If you are developing in Eclipse, <a href="eclipse-adt.html">ADT</a>
Dirk Dougherty0d1b0812010-04-07 17:05:16 -0700244provides the equivalent library project support.</p>
245</dd>
246</dl>
247 </div>
248</div>
249
250<div class="toggleable closed">
251 <a href="#" onclick="return toggleDiv(this)">
Dirk Dougherty74a74d32010-09-09 18:40:13 -0700252 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700253SDK Tools, Revision 5</a> <em>(March 2010)</em>
254 <div class="toggleme">
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800255
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700256<dl>
257<dt>Dependencies:</dt>
258<dd><ul>
259<li>If you are developing in Eclipse with ADT, note that SDK Tools r5 is
260designed for use with ADT 0.9.6 and later. After installing SDK Tools r5, we
261highly recommend updating your ADT Plugin to 0.9.6.</li>
262<li>For Mac OS platforms, OS X 10.4.x (Tiger) is no longer
263officially supported. </li>
264</ul>
265</dd>
266
267<dt>SDK and AVD Manager:</dt>
268<dd>
269<ul>
270<li>Fixes SSL download for the standalone version of the SDK Updater.</li>
271<li>Fixes issue with 64-bit JVM on Windows.</li>
272<li>Adds support for platform samples components.</li>
273<li>Improves support for dependency between components.</li>
274<li>AVDs now sorted by API level.</li>
275<li>The AVD creation dialog now enforces a minimum SD card size of 9MB.</li>
276<li>Prevents deletion of running AVDs.</li>
277<li>Settings are now automatically saved, no need to click "Apply".</li>
278</ul>
279</dd>
280
281<dt>Emulator:</dt>
282<dd>
283<ul>
284<li>Emulator now requires SD card to be 9MB or more.</li>
285</ul>
286</dd>
287
288<dt>Layoutopt:</dt>
289<dd>
290<ul>
291<li>Fixes <code>layoutopt.bat</code> to execute correctly on Windows.</li>
292</ul>
293</dd>
294</dl>
295 </div>
296</div>
297
298<div class="toggleable closed">
299 <a href="#" onclick="return toggleDiv(this)">
300 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
301SDK Tools, Revision 4</a> <em>(December 2009)</em>
302 <div class="toggleme">
303
304<dl>
305<dt>Dependencies:</dt>
306<dd><p>SDK Tools r4 is compatible with ADT 0.9.5 and later, but not
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800307compatible with earlier versions. If you are developing in Eclipse with ADT, you
308<strong>must</strong> update your ADT plugin to version 0.9.5 or higher if you
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700309install SDK Tools r4 in your SDK. </p></dd>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800310
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700311<dt>General notes:</dt>
312<dd>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800313<ul>
314<li>Launcher script now forces GDK_NATIVE_WINDOW=true (linux only), to fix a
315compatibility issue between GTK and SWT.</li>
316</ul>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700317</dd>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800318
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700319<dt>Android SDK and AVD Manager:</dt>
320<dd>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800321<ul>
322<li>AVD Launch dialog now shows scale value.</li>
323<li>Fixes potential NPE in SDK Manager on AVD launch, for older AVD with no
324skin name specified.</li>
325<li>Fixes XML validation issue in on older Java versions.</li>
326<li>No longer forces the use of Java 1.5 on Mac OS X.</li>
327</ul>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700328</dd>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800329
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700330<dt>Emulator:</dt>
331<dd>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800332<ul>
333<li>No longer limits the size of the system partition.</li>
334</ul>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700335</dd>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800336
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700337<dt>Ant build tools:</dt>
338<dd>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800339<ul>
340<li>.apk packaging now properly ignores vi swap files as well as hidden files.</li>
341</ul>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700342</dd>
343</dl>
344 </div>
345</div>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800346
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700347<div class="toggleable closed">
348 <a href="#" onclick="return toggleDiv(this)">
349 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
350SDK Tools, Revision 3</a> <em>(October 2009)</em>
351 <div class="toggleme">
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700352
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700353<dl>
354<dt>Dependencies:</dt>
355<dd><p>SDK Tools r3 is compatible with ADT 0.9.4 and later, but not
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700356compatible with earlier versions. If you are developing in Eclipse with ADT, you
357<strong>must</strong> update your ADT plugin to version 0.9.4 or higher if you
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700358install SDK Tools r3 in your SDK.</p>
359</dd>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700360
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700361<dt>Android tool:</dt>
362<dd>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700363<ul>
364<li>Adds new <code>android create test-project</code> and <code>android update
365test-project</code> commands to allow for greater flexibility in the location of the
366main and test projects.</li>
367</ul>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700368</dd>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700369
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700370<dt>DDMS:</dt>
371<dd>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700372<ul>
373<li>Adds a button to dump HPROF file for running appplications (app must be able
374to write to the sdcard).</li>
375<li>Button to start/stop profiling of a running application (app must be able to
376write to the sdcard). Upon stop, Traceview will automatically be launched to
377display the trace.</li>
378<li>Fixed DDMS, Traceview, and the AVD Mananger/SDK Updater to run on Mac OS X
37910.6.</li>
380<li>Fixed screenshot support for devices running 32-bit framebuffer.</li>
381</ul>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700382</dd>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700383
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700384<dt>Android SDK and AVD Manager:</dt>
385<dd>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700386<ul>
387<li>Provides a new UI that lets you set options for controlling
388the emulator skin, screen size/density, and scale factor used when launching
389an AVD.</li>
390<li>Provides improved AVD creation UI, which lets you customize the hardware
391properties of your AVDs.</li>
392<li>Now enforces dependencies between platforms and tools components, and
393between SDK add-ons and platforms.</li>
394</ul>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700395</dd>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700396
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700397<dt>Layoutopt, a new tool for optimizing layouts:</dt>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700398
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700399<dd><p>The SDK Tools r3 package includes <code>layoutopt</code>, a new command-line
Dirk Doughertybf15ce62009-10-23 19:17:12 -0700400tool that helps you optimize your layout hierarchies. When run against your
401layout files, the tool analyzes their hierarchies and notifies you of
402inefficiencies and other potential issues. The tool also provides simple
403solutions for the issues it finds. For usage, see <a
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700404href="/guide/developing/tools/layoutopt.html">layoutopt</a>.</p>
405</dd>
406</dl>
407 </div>
408</div>