blob: c9be6ff8916f96cc531911ae3a4e6636c8594513 [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
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070018<h2 id="notes">Revisions</h2>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -080019
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070020<p>The sections below provide notes about successive releases of
21the SDK Tools, as denoted by revision number. To determine what revision of the SDK
22Tools you are using, refer to the "Installed Packages" listing in the Android SDK
23and AVD Manager. </p>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -080024
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070025<script type="text/javascript">
26function toggleDiv(link) {
27 var toggleable = $(link).parent();
28 if (toggleable.hasClass("closed")) {
29 //$(".toggleme", toggleable).slideDown("fast");
30 toggleable.removeClass("closed");
31 toggleable.addClass("open");
32 $(".toggle-img", toggleable).attr("title", "hide").attr("src", (toRoot + "assets/images/triangle-opened.png"));
33 } else {
34 //$(".toggleme", toggleable).slideUp("fast");
35 toggleable.removeClass("open");
36 toggleable.addClass("closed");
37 $(".toggle-img", toggleable).attr("title", "show").attr("src", (toRoot + "assets/images/triangle-closed.png"));
38 }
39 return false;
40}
41</script>
42<style>
43.toggleable {
44padding: .25em 1em;
45}
46.toggleme {
47 padding: 1em 1em 0 2em;
48 line-height:1em;
49}
50.toggleable a {
51 text-decoration:none;
52}
Dirk Dougherty0d1b0812010-04-07 17:05:16 -070053.toggleme a {
54 text-decoration:underline;
55}
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070056.toggleable.closed .toggleme {
57 display:none;
58}
59#jd-content .toggle-img {
60 margin:0;
61}
62</style>
Dirk Dougherty0d1b0812010-04-07 17:05:16 -070063
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070064<div class="toggleable opened">
65 <a href="#" onclick="return toggleDiv(this)">
66 <img src="{@docRoot}assets/images/triangle-opened.png" class="toggle-img" height="9px" width="9px" />
Dirk Dougherty0d1b0812010-04-07 17:05:16 -070067SDK Tools, Revision 6</a> <em>(May 2010)</em>
68 <div class="toggleme">
69
70<dl>
71<dt>Dependencies:</dt>
72<dd>
73<p>If you are developing in Eclipse with ADT, note that SDK Tools r6 is
74designed for use with ADT 0.9.7 and later. After installing SDK Tools r6, we
75highly recommend updating your ADT Plugin to 0.9.7.</p>
76</dd>
77
78<dt>Library projects:</dt>
79<dd>
80<p>The SDK Tools now support the use of <em>library projects</em> during
81development, a capability that lets you store shared Android application
82code and resources in a separate development project. You can then reference the
83library project from other Android projects and, at build time, the tools
84compile the shared code and resources as part of the dependent applications.
85More information about this feature is available in the <a
86href="{@docRoot}guide/developing/other-ide.html#libraryProject">Developing
87in Other IDEs</a> document.</p>
88<p>If you are developing in Eclipse, <a href="eclipse-adt.html">ADT 0.9.7</a>
89provides the equivalent library project support.</p>
90</dd>
91</dl>
92 </div>
93</div>
94
95<div class="toggleable closed">
96 <a href="#" onclick="return toggleDiv(this)">
97 <img src="{@docRoot}assets/images/triangle-opened.png" class="toggle-img" height="9px" width="9px" />
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070098SDK Tools, Revision 5</a> <em>(March 2010)</em>
99 <div class="toggleme">
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800100
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700101<dl>
102<dt>Dependencies:</dt>
103<dd><ul>
104<li>If you are developing in Eclipse with ADT, note that SDK Tools r5 is
105designed for use with ADT 0.9.6 and later. After installing SDK Tools r5, we
106highly recommend updating your ADT Plugin to 0.9.6.</li>
107<li>For Mac OS platforms, OS X 10.4.x (Tiger) is no longer
108officially supported. </li>
109</ul>
110</dd>
111
112<dt>SDK and AVD Manager:</dt>
113<dd>
114<ul>
115<li>Fixes SSL download for the standalone version of the SDK Updater.</li>
116<li>Fixes issue with 64-bit JVM on Windows.</li>
117<li>Adds support for platform samples components.</li>
118<li>Improves support for dependency between components.</li>
119<li>AVDs now sorted by API level.</li>
120<li>The AVD creation dialog now enforces a minimum SD card size of 9MB.</li>
121<li>Prevents deletion of running AVDs.</li>
122<li>Settings are now automatically saved, no need to click "Apply".</li>
123</ul>
124</dd>
125
126<dt>Emulator:</dt>
127<dd>
128<ul>
129<li>Emulator now requires SD card to be 9MB or more.</li>
130</ul>
131</dd>
132
133<dt>Layoutopt:</dt>
134<dd>
135<ul>
136<li>Fixes <code>layoutopt.bat</code> to execute correctly on Windows.</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" width="9px" />
146SDK Tools, Revision 4</a> <em>(December 2009)</em>
147 <div class="toggleme">
148
149<dl>
150<dt>Dependencies:</dt>
151<dd><p>SDK Tools r4 is compatible with ADT 0.9.5 and later, but not
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800152compatible with earlier versions. If you are developing in Eclipse with ADT, you
153<strong>must</strong> update your ADT plugin to version 0.9.5 or higher if you
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700154install SDK Tools r4 in your SDK. </p></dd>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800155
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700156<dt>General notes:</dt>
157<dd>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800158<ul>
159<li>Launcher script now forces GDK_NATIVE_WINDOW=true (linux only), to fix a
160compatibility issue between GTK and SWT.</li>
161</ul>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700162</dd>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800163
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700164<dt>Android SDK and AVD Manager:</dt>
165<dd>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800166<ul>
167<li>AVD Launch dialog now shows scale value.</li>
168<li>Fixes potential NPE in SDK Manager on AVD launch, for older AVD with no
169skin name specified.</li>
170<li>Fixes XML validation issue in on older Java versions.</li>
171<li>No longer forces the use of Java 1.5 on Mac OS X.</li>
172</ul>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700173</dd>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800174
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700175<dt>Emulator:</dt>
176<dd>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800177<ul>
178<li>No longer limits the size of the system partition.</li>
179</ul>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700180</dd>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800181
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700182<dt>Ant build tools:</dt>
183<dd>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800184<ul>
185<li>.apk packaging now properly ignores vi swap files as well as hidden files.</li>
186</ul>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700187</dd>
188</dl>
189 </div>
190</div>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800191
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700192<div class="toggleable closed">
193 <a href="#" onclick="return toggleDiv(this)">
194 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
195SDK Tools, Revision 3</a> <em>(October 2009)</em>
196 <div class="toggleme">
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700197
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700198<dl>
199<dt>Dependencies:</dt>
200<dd><p>SDK Tools r3 is compatible with ADT 0.9.4 and later, but not
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700201compatible with earlier versions. If you are developing in Eclipse with ADT, you
202<strong>must</strong> update your ADT plugin to version 0.9.4 or higher if you
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700203install SDK Tools r3 in your SDK.</p>
204</dd>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700205
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700206<dt>Android tool:</dt>
207<dd>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700208<ul>
209<li>Adds new <code>android create test-project</code> and <code>android update
210test-project</code> commands to allow for greater flexibility in the location of the
211main and test projects.</li>
212</ul>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700213</dd>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700214
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700215<dt>DDMS:</dt>
216<dd>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700217<ul>
218<li>Adds a button to dump HPROF file for running appplications (app must be able
219to write to the sdcard).</li>
220<li>Button to start/stop profiling of a running application (app must be able to
221write to the sdcard). Upon stop, Traceview will automatically be launched to
222display the trace.</li>
223<li>Fixed DDMS, Traceview, and the AVD Mananger/SDK Updater to run on Mac OS X
22410.6.</li>
225<li>Fixed screenshot support for devices running 32-bit framebuffer.</li>
226</ul>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700227</dd>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700228
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700229<dt>Android SDK and AVD Manager:</dt>
230<dd>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700231<ul>
232<li>Provides a new UI that lets you set options for controlling
233the emulator skin, screen size/density, and scale factor used when launching
234an AVD.</li>
235<li>Provides improved AVD creation UI, which lets you customize the hardware
236properties of your AVDs.</li>
237<li>Now enforces dependencies between platforms and tools components, and
238between SDK add-ons and platforms.</li>
239</ul>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700240</dd>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700241
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700242<dt>Layoutopt, a new tool for optimizing layouts:</dt>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700243
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700244<dd><p>The SDK Tools r3 package includes <code>layoutopt</code>, a new command-line
Dirk Doughertybf15ce62009-10-23 19:17:12 -0700245tool that helps you optimize your layout hierarchies. When run against your
246layout files, the tool analyzes their hierarchies and notifies you of
247inefficiencies and other potential issues. The tool also provides simple
248solutions for the issues it finds. For usage, see <a
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700249href="/guide/developing/tools/layoutopt.html">layoutopt</a>.</p>
250</dd>
251</dl>
252 </div>
253</div>