blob: f8d707141b2a8773dbb1f9e6f52427748ed5c171 [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 Dougherty9f7580d2010-10-26 09:29:03 -070067SDK Tools, Revision 8</a> <em>(December 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 r8 is
74designed for use with ADT 8.0.0 and later. After installing SDK Tools r8, we
75highly recommend updating your ADT Plugin to 8.0.0.</p>
76
Scott Main92b03082010-12-14 17:55:27 -080077<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
Dirk Dougherty9f7580d2010-10-26 09:29:03 -070080<p>Also note that SDK Tools r8 requires a new SDK component called
81<em>Platform-tools</em>. The new Platform-tools component lets all SDK platforms
82(Android 2.1, Android 2.2, and so on) use the same (latest) version of build
83tools such as <code>adb</code>, <code>aapt</code>, <code>aidl</code>, and
84<code>dx</code>. To download the Platform-tools component, use the Android SDK
85Manager, as described in <a href="adding-components.html">Adding SDK
86Components</a></p>
87
88<dt>Upgrading from SDK Tools r7:</dt>
89<dd>
90<p>If you are upgrading to SDK Tools r8 from an earlier version, note that the
91the default installed location for the <code>adb</code> tool has changed from
92<code>&lt;<em>SDK</em>&gt;/tools/adb</code> to
93<code>&lt;<em>SDK</em>&gt;/platform-tools/adb</code>. This means that you should
94add the new location to your PATH and modify any custom build scripts to
95reference the new location. Copying the <code>adb</code> executable from the new
96location to the old is not recommended, since subsequent updates to the SDK
97Tools will delete the file.</p>
98</dd>
99
100<dt>General notes:</dt>
101<dd>
102<ul>
103<li>All SDK platforms now support Library Projects.</li>
104<li>Support for a true debug build. Developers no longer need to add the
105<code>android:debuggable</code> attribute to the
106<code>&lt;application&gt;</code> tag in the manifest &mdash; the build tools add
107the attribute automatically. In Eclipse/ADT, all incremental builds are assumed
108to be debug builds, so the tools insert <code>android:debuggable="true"</code>.
109When exporting a signed release build, the tools do not add the attribute. In
110Ant, a <code>ant debug</code> command automatically inserts the
111<code>android:debuggable="true"</code> attribute, while <code>ant release</code>
112does not. If <code>android:debuggable="true"</code> is manually set, then
113<code>ant release</code> will actually do a debug build, rather than a release
114build.</li>
115<li>Automatic ProGuard support in release builds. Developers generate a ProGuard
116configuration file using the <code>android</code> tool &mdash; the build tools
117then automatically run ProGuard against the project sources during the build.
118For more information, see the <a
119href="{@docRoot}guide/developing/tools/proguard.html">ProGuard</a>
120documentation. </li>
121<li>New overridable Ant javac properties: <code>java.encoding</code>,
122<code>java.source</code>, and <code>java.target</code> (default values are
123"ascii", "1.5", and "1.5", respectively).</li>
124<li>New UI for the HierarchyViewer tool.</li>
125</ul>
126</dd>
127</dl>
128 </div>
129</div>
130
131<div class="toggleable closed">
132 <a href="#" onclick="return toggleDiv(this)">
133 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
Dirk Dougherty022171b2010-07-30 19:24:17 -0700134SDK Tools, Revision 7</a> <em>(September 2010)</em>
135 <div class="toggleme">
136
137<dl>
138<dt>Dependencies:</dt>
139<dd>
140<p>If you are developing in Eclipse with ADT, note that SDK Tools r7 is
141designed for use with ADT 0.9.8 and later. After installing SDK Tools r7, we
142highly recommend updating your ADT Plugin to 0.9.8.</p>
143</dd>
144
145<dt>General notes:</dt>
146<dd>
147<ul>
148<li>Added support for library projects that depend on other library projects.</li>
149<li>Adds support for aidl files in library projects.</li>
150<li>Adds support for extension targets in Ant build to perform tasks between the
151normal tasks: <code>-pre-build</code>, <code>-pre-compile</code>, and
152<code>-post-compile</code>.</li>
153<li>Adds support for "headless" SDK update. See <code>android -h update sdk</code>
154for more information.</li>
155<li>Fixes location control in DDMS to work in any locale not using '.' as a
156decimal point.</li>
157</li>
158</ul>
159</dd>
160</dl>
161 </div>
162</div>
163
164<div class="toggleable closed">
165 <a href="#" onclick="return toggleDiv(this)">
166 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
Dirk Dougherty0d1b0812010-04-07 17:05:16 -0700167SDK Tools, Revision 6</a> <em>(May 2010)</em>
168 <div class="toggleme">
169
170<dl>
171<dt>Dependencies:</dt>
172<dd>
173<p>If you are developing in Eclipse with ADT, note that SDK Tools r6 is
174designed for use with ADT 0.9.7 and later. After installing SDK Tools r6, we
175highly recommend updating your ADT Plugin to 0.9.7.</p>
176</dd>
177
178<dt>Library projects:</dt>
179<dd>
180<p>The SDK Tools now support the use of <em>library projects</em> during
181development, a capability that lets you store shared Android application
182code and resources in a separate development project. You can then reference the
183library project from other Android projects and, at build time, the tools
184compile the shared code and resources as part of the dependent applications.
185More information about this feature is available in the <a
186href="{@docRoot}guide/developing/other-ide.html#libraryProject">Developing
187in Other IDEs</a> document.</p>
188<p>If you are developing in Eclipse, <a href="eclipse-adt.html">ADT 0.9.7</a>
189provides the equivalent library project support.</p>
190</dd>
191</dl>
192 </div>
193</div>
194
195<div class="toggleable closed">
196 <a href="#" onclick="return toggleDiv(this)">
Dirk Dougherty74a74d32010-09-09 18:40:13 -0700197 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700198SDK Tools, Revision 5</a> <em>(March 2010)</em>
199 <div class="toggleme">
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800200
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700201<dl>
202<dt>Dependencies:</dt>
203<dd><ul>
204<li>If you are developing in Eclipse with ADT, note that SDK Tools r5 is
205designed for use with ADT 0.9.6 and later. After installing SDK Tools r5, we
206highly recommend updating your ADT Plugin to 0.9.6.</li>
207<li>For Mac OS platforms, OS X 10.4.x (Tiger) is no longer
208officially supported. </li>
209</ul>
210</dd>
211
212<dt>SDK and AVD Manager:</dt>
213<dd>
214<ul>
215<li>Fixes SSL download for the standalone version of the SDK Updater.</li>
216<li>Fixes issue with 64-bit JVM on Windows.</li>
217<li>Adds support for platform samples components.</li>
218<li>Improves support for dependency between components.</li>
219<li>AVDs now sorted by API level.</li>
220<li>The AVD creation dialog now enforces a minimum SD card size of 9MB.</li>
221<li>Prevents deletion of running AVDs.</li>
222<li>Settings are now automatically saved, no need to click "Apply".</li>
223</ul>
224</dd>
225
226<dt>Emulator:</dt>
227<dd>
228<ul>
229<li>Emulator now requires SD card to be 9MB or more.</li>
230</ul>
231</dd>
232
233<dt>Layoutopt:</dt>
234<dd>
235<ul>
236<li>Fixes <code>layoutopt.bat</code> to execute correctly on Windows.</li>
237</ul>
238</dd>
239</dl>
240 </div>
241</div>
242
243<div class="toggleable closed">
244 <a href="#" onclick="return toggleDiv(this)">
245 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
246SDK Tools, Revision 4</a> <em>(December 2009)</em>
247 <div class="toggleme">
248
249<dl>
250<dt>Dependencies:</dt>
251<dd><p>SDK Tools r4 is compatible with ADT 0.9.5 and later, but not
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800252compatible with earlier versions. If you are developing in Eclipse with ADT, you
253<strong>must</strong> update your ADT plugin to version 0.9.5 or higher if you
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700254install SDK Tools r4 in your SDK. </p></dd>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800255
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700256<dt>General notes:</dt>
257<dd>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800258<ul>
259<li>Launcher script now forces GDK_NATIVE_WINDOW=true (linux only), to fix a
260compatibility issue between GTK and SWT.</li>
261</ul>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700262</dd>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800263
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700264<dt>Android SDK and AVD Manager:</dt>
265<dd>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800266<ul>
267<li>AVD Launch dialog now shows scale value.</li>
268<li>Fixes potential NPE in SDK Manager on AVD launch, for older AVD with no
269skin name specified.</li>
270<li>Fixes XML validation issue in on older Java versions.</li>
271<li>No longer forces the use of Java 1.5 on Mac OS X.</li>
272</ul>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700273</dd>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800274
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700275<dt>Emulator:</dt>
276<dd>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800277<ul>
278<li>No longer limits the size of the system partition.</li>
279</ul>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700280</dd>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800281
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700282<dt>Ant build tools:</dt>
283<dd>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800284<ul>
285<li>.apk packaging now properly ignores vi swap files as well as hidden files.</li>
286</ul>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700287</dd>
288</dl>
289 </div>
290</div>
Dirk Doughertybca9f1b2009-11-18 23:06:16 -0800291
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700292<div class="toggleable closed">
293 <a href="#" onclick="return toggleDiv(this)">
294 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
295SDK Tools, Revision 3</a> <em>(October 2009)</em>
296 <div class="toggleme">
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700297
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700298<dl>
299<dt>Dependencies:</dt>
300<dd><p>SDK Tools r3 is compatible with ADT 0.9.4 and later, but not
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700301compatible with earlier versions. If you are developing in Eclipse with ADT, you
302<strong>must</strong> update your ADT plugin to version 0.9.4 or higher if you
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700303install SDK Tools r3 in your SDK.</p>
304</dd>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700305
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700306<dt>Android tool:</dt>
307<dd>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700308<ul>
309<li>Adds new <code>android create test-project</code> and <code>android update
310test-project</code> commands to allow for greater flexibility in the location of the
311main and test projects.</li>
312</ul>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700313</dd>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700314
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700315<dt>DDMS:</dt>
316<dd>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700317<ul>
318<li>Adds a button to dump HPROF file for running appplications (app must be able
319to write to the sdcard).</li>
320<li>Button to start/stop profiling of a running application (app must be able to
321write to the sdcard). Upon stop, Traceview will automatically be launched to
322display the trace.</li>
323<li>Fixed DDMS, Traceview, and the AVD Mananger/SDK Updater to run on Mac OS X
32410.6.</li>
325<li>Fixed screenshot support for devices running 32-bit framebuffer.</li>
326</ul>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700327</dd>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700328
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700329<dt>Android SDK and AVD Manager:</dt>
330<dd>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700331<ul>
332<li>Provides a new UI that lets you set options for controlling
333the emulator skin, screen size/density, and scale factor used when launching
334an AVD.</li>
335<li>Provides improved AVD creation UI, which lets you customize the hardware
336properties of your AVDs.</li>
337<li>Now enforces dependencies between platforms and tools components, and
338between SDK add-ons and platforms.</li>
339</ul>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700340</dd>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700341
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700342<dt>Layoutopt, a new tool for optimizing layouts:</dt>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700343
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700344<dd><p>The SDK Tools r3 package includes <code>layoutopt</code>, a new command-line
Dirk Doughertybf15ce62009-10-23 19:17:12 -0700345tool that helps you optimize your layout hierarchies. When run against your
346layout files, the tool analyzes their hierarchies and notifies you of
347inefficiencies and other potential issues. The tool also provides simple
348solutions for the issues it finds. For usage, see <a
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700349href="/guide/developing/tools/layoutopt.html">layoutopt</a>.</p>
350</dd>
351</dl>
352 </div>
353</div>