blob: 62e27d3be45670e514f8a143ef4fe01a9b42d8b9 [file] [log] [blame]
Dirk Dougherty7b229ef2010-03-26 17:32:26 -07001page.title=ADT Plugin for Eclipse
Scott Main9e6c0682011-01-26 16:23:37 -08002adt.zip.version=9.0.0
3adt.zip.download=ADT-9.0.0.zip
4adt.zip.bytes=4433536
5adt.zip.checksum=bc2757f2a5a11d131390ce547bae154b
Dirk Doughertyee58d1b2009-10-16 15:25:15 -07006
7@jd:body
8
9<div id="qv-wrapper">
10<div id="qv">
11
12 <h2>In this document</h2>
13 <ol>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070014 <li><a href="#notes">Revisions</a></li>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070015 <li><a href="#installing">Installing the ADT Plugin</a>
16 <ol>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070017 <li><a href="#preparing">Preparing for Installation</a></li>
18 <li><a href="#downloading">Downloading the ADT Plugin</a>
19 <li><a href="#configuring">Configuring the ADT Plugin</a></li>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070020 <li><a href="#troubleshooting">Troubleshooting</a></li>
21 </ol>
22 </li>
23 <li><a href="#updating">Updating the ADT Plugin</a></li>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070024 </ol>
25
26</div>
27</div>
28
Scott Main081127b2010-10-29 15:56:27 -070029<p>Android Development Tools (ADT) is a plugin for the Eclipse IDE
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070030that is designed to give you a powerful, integrated environment in which
31to build Android applications. </p>
Dirk Doughertybf15ce62009-10-23 19:17:12 -070032
Scott Main13244e52010-01-19 11:12:07 -080033<p>ADT extends the capabilities of Eclipse to let you quickly set up new Android
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070034projects, create an application UI, add components based on the Android
Dirk Doughertybf15ce62009-10-23 19:17:12 -070035Framework API, debug your applications using the Android SDK tools, and even
36export signed (or unsigned) APKs in order to distribute your application.</p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070037
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070038<p>Developing in Eclipse with ADT is highly recommended and is the fastest way
39to get started. With the guided project setup it provides, as well as tools
40integration, custom XML editors, and debug ouput pane, ADT gives you an
41incredible boost in developing Android applications. </p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070042
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070043<p>This document provides step-by-step instructions on how to download the ADT
44plugin and install it into your Eclipse development environment. Note that
45before you can install or use ADT, you must have compatible versions of both the
46Eclipse IDE and the Android SDK installed. For details, make sure to read <a
47href="#installing">Installing the ADT Plugin</a>, below. </p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070048
Scott Main081127b2010-10-29 15:56:27 -070049<p>If you are already using ADT, this document also provides instructions on
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070050how to update ADT to the latest version or how to uninstall it, if necessary.
51</p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070052
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070053<h2 id="notes">Revisions</h2>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070054
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070055<p>The sections below provide notes about successive releases of
56the ADT Plugin, as denoted by revision number. </p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070057
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070058<script type="text/javascript">
59function toggleDiv(link) {
60 var toggleable = $(link).parent();
61 if (toggleable.hasClass("closed")) {
62 //$(".toggleme", toggleable).slideDown("fast");
63 toggleable.removeClass("closed");
64 toggleable.addClass("open");
65 $(".toggle-img", toggleable).attr("title", "hide").attr("src", (toRoot + "assets/images/triangle-opened.png"));
66 } else {
67 //$(".toggleme", toggleable).slideUp("fast");
68 toggleable.removeClass("open");
69 toggleable.addClass("closed");
70 $(".toggle-img", toggleable).attr("title", "show").attr("src", (toRoot + "assets/images/triangle-closed.png"));
71 }
72 return false;
73}
74</script>
75<style>
76.toggleable {
77padding: .25em 1em;
78}
79.toggleme {
80 padding: 1em 1em 0 2em;
81 line-height:1em;
82}
83.toggleable a {
84 text-decoration:none;
85}
Dirk Dougherty0d1b0812010-04-07 17:05:16 -070086.toggleme a {
87 text-decoration:underline;
88}
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070089.toggleable.closed .toggleme {
90 display:none;
91}
92#jd-content .toggle-img {
93 margin:0;
94}
95</style>
96
Dirk Dougherty022171b2010-07-30 19:24:17 -070097
Dirk Dougherty0d1b0812010-04-07 17:05:16 -070098<div class="toggleable opened">
99 <a href="#" onclick="return toggleDiv(this)">
Scott Main92b03082010-12-14 17:55:27 -0800100 <img src="{@docRoot}assets/images/triangle-opened.png" class="toggle-img" height="9px"
101width="9px" />
Scott Main9e6c0682011-01-26 16:23:37 -0800102ADT 9.0.0</a> <em>(January 2011)</em>
103 <div class="toggleme">
104
105<dl>
106
107<dt>Dependencies:</dt>
108
109<dd>ADT 9.0.0 is designed for use with SDK Tools r9. If you haven't
110already installed SDK Tools r9 into your SDK, use the Android SDK and AVD Manager to do
111so.</dd>
112
113<dt>General notes:</dt>
114<dd>
115 <ul>
116 <li>"Go To Declaration" hyperlink support: You can jump directly from code references (such as
117 <code>R.id.main</code>) to the corresponding XML declaration, or from XML attributes (such as
118 <code>@string</code>) to the corresponding resource definition, or from manifest XML
119 registrations to activities and services.</li>
120 <li>Improvements were made to name refactoring.</li>
121 <li>AVDs now automatically save their state, so they can restart almost instantly. You can enable this feature when
122 creating an AVD or by editing an AVD with the AVD Manager.</li>
123 <li>Improvements to the Visual Layout Editor:
124 <ul>
125 <li>Support for rendering targets: You can now choose an arbitrary Android platform to
126 render the current page, regardless of the project's minimum platform. This makes it
127 easy to verify the layout and appearance of your activity on different versions of
128 the platform.
129 </li>
130 <li>Improved support for empty and nested layouts: Dragging items over nested and
131 invisible layouts automatically enlarges and highlights these layouts, so that they
132 can receive drops.
133 </li>
134 <li>XML formatting improvements: The editor generates cleaner XML and you can now enable
135 XML auto-formatting in the <strong>Preferences</strong> menu.</li>
136 <li>Improved Outline labels: The Outline tab now displays additional information about each
137 View. Textual Views display a snippet of the actual text. Views with a source
138 (such as ImageView) displays the resource name. Included Views display the name of the View.
139 </li>
140 <li>When you right click a View in the Layout Editor,
141 the context menu now contains <strong>Edit ID...</strong> and <strong>Edit Text...</strong>
142 items. The <strong>Properties...</strong> context menus now list all of the properties and
143 provide a way to edit them
144 (<a href="http://tools.android.com/recent/editidtextandotherpropertiesviamenu">Details</a>).
145 </li>
146 <li>The layout editor now properly handles
147 <a href="{@docRoot}guide/topics/resources/layout-resource.html#include-element"><code>&lt;include&gt;</code></a>
148 and <a href="{@docRoot}guide/topics/resources/layout-resource.html#merge-element"><code>&lt;merge&gt;</code></a>
149 tags (<a href="http://tools.android.com/recent/supportforincludeandmerge">Details</a>).</li>
150 <li>"Extract as Include" refactoring: The Layout Editor has a new refactoring that allows
151 you to select one or more views in a layout, and extract it into a separate layout
152 (<a href="http://tools.android.com/recent/extractasincluderefactoring">Details</a>).</li>
153 <li>Improved diagnostics for class loading and rendering errors: Class loading and rendering
154 error messages are more useful and provide better information about the root cause of the
155 error.</li>
156 <li>Improved error handling to prevent drag and reordering operations from adding children
157 into an {@link android.widget.AdapterView}.</li>
158 <li>Outline reordering: Reordering your views in the Outline tab is much easier
159 (<a href="http://tools.android.com/recent/outlineimprovements">Details</a>).</li>
160 <li>Fix for keybinding bug where keyboard shortcuts did not work (Issues
161 <a href="http://code.google.com/p/android/issues/detail?id=13231">13231</a> and
162 <a href="http://code.google.com/p/android/issues/detail?id=13134">13134</a>).</li>
163 <li>Fix for problems with Custom layout attribute menu (Issue
164 <a href="http://code.google.com/p/android/issues/detail?id=13134">13134</a>).</li>
165 <li>Automatic configuration for various view types: Certain views have properties configured
166 by default. For example, the width of an {@link android.widget.EditText} object is set to
167 <code>match_parent</code> when added to a vertical {@link android.widget.LinearLayout}
168 or a default image is added to an {@link android.widget.ImageButton}.</li>
169 <li>Previews during dragging: Dragging from the palette or dragging within the layout editor
170 now shows live previews of the dragged item.</li>
171 <li>Navigation improvements: In the Layout Editor, double-clicking Views jumps to the
172 corresponding XML element. In the Outline view, double-clicking opens the Properties view.</li>
173 <li>The editor has Honeycomb style animation preview support.</li>
174 <li>Improved rendering support for various Views (such as TabHosts and SlidingDrawers) in
175 Honeycomb (Issues <a href="http://code.google.com/p/android/issues/detail?id=3162">3162</a>
176 and <a href="http://code.google.com/p/android/issues/detail?id=13092">13092</a>).</li>
177 <li>Included layouts can be rendered and edited in the context of the layouts that include
178 them. From a layout using an <a href="{@docRoot}guide/topics/resources/layout-resource.html#include-element">
179 <code>&lt;include&gt;</code></a> tag, double-clicking on the
180 <a href="{@docRoot}guide/topics/resources/layout-resource.html#include-element">
181 <code>&lt;include&gt;</code></a> element edits the referenced layout in the context of the
182 current layout. Additionally, when editing a layout that is included by other layouts,
183 you can quickly change between context layouts, by right clicking in the editor and choosing
184 <strong>Show included in...</strong>. This feature is only available in Honeycomb.</li>
185 </ul>
186 </li>
187 <li>This release fixes many other bugs, but the most important ones are listed below:
188 <ul>
189 <li>Fixed issue that prevented launching debug builds on productions devices when
190 <code>debuggable=true</code> was not set in the Android manifest.</li>
191 <li>The LogCat view in DDMS properly handles UTF-8 characters.</li>
192 <li>The SDK Manager is more reliable on Windows
193 (<a href="http://tools.android.com/recent/sdkmanagerfixes">Details</a>).</li>
194 <li>A JUnit initialization bug that prevented you from working with JUnit tests was fixed
195 (Issue <a href="http://code.google.com/p/android/issues/detail?id=12411">12411</a>).</li>
196 </ul>
197</li>
198 </ul>
199</dd>
200</dl>
201</div>
202</div>
203
204
205
206
207<div class="toggleable closed">
208 <a href="#" onclick="return toggleDiv(this)">
209 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px"
210width="9px" />
Scott Main92b03082010-12-14 17:55:27 -0800211ADT 8.0.1</a> <em>(December 2010)</em>
212 <div class="toggleme">
213
214<dl>
215
216<dt>Dependencies:</dt>
217
218<p><p>ADT 8.0.1 is designed for use with SDK Tools r8. If you haven't
219already installed SDK Tools r8 into your SDK, use the Android SDK and AVD Manager to do
220so.</p></dd>
221
222<dt>General notes:</dt>
223<dd>
224<ul>
225 <li>This is a quick follow-up to ADT 8.0.0 to fix some bugs.</li>
226 <li>Fixes an issue in which projects failed to compile, citing a dex error.</li>
227 <li>Better ProGuard error reporting when exporting applications for release.</li>
228</ul>
229<p>Also see the recent release notes for 8.0.0, below.</p>
230</dd>
231</dl>
Scott Main9e6c0682011-01-26 16:23:37 -0800232</div>
Scott Main92b03082010-12-14 17:55:27 -0800233</div>
234
235
236<div class="toggleable closed">
237 <a href="#" onclick="return toggleDiv(this)">
238 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px"
239width="9px" />
Dirk Dougherty9f7580d2010-10-26 09:29:03 -0700240ADT 8.0.0</a> <em>(December 2010)</em>
Dirk Dougherty9a97aaf2010-09-23 11:48:54 -0700241 <div class="toggleme">
242
Scott Mainc0c0c422010-11-05 15:23:36 -0700243<dl>
Dirk Dougherty9a97aaf2010-09-23 11:48:54 -0700244
Scott Mainc0c0c422010-11-05 15:23:36 -0700245<dt>Dependencies:</dt>
246
Dirk Dougherty9f7580d2010-10-26 09:29:03 -0700247<p><p>ADT 8.0.0 is designed for use with SDK Tools r8. If you haven't
Scott Mainc0c0c422010-11-05 15:23:36 -0700248already installed SDK Tools r8 into your SDK, use the Android SDK and AVD Manager to do
249so.</p></dd>
250
251<dt>General notes:</dt>
252<dd>
253<ul>
254 <li>New version number scheme that follows the SDK Tools revision number. The major version
255number for your ADT plugin should now always match the revision number of your SDK Tools. For
256example, ADT 8.x is for SDK Tools r8.</li>
257 <li>Support for true debug build. You no longer need to change the value of the
258 <code>debuggable</code> attribute in the Android Manifest.
259 <p>Incremental builds automatically insert <code>debuggable="true"</code>, but if you perform
260 "export signed/unsigned application package", ADT does <em>not</em> insert it.
261 If you manually set <code>debuggable="true"</code> in the manifest file, then release builds will
262 actually create a debug build (it does not remove it if you placed it there).</p></li>
Scott Main9b447d12011-01-07 14:48:18 -0800263 <li>Automatic <a href="{@docRoot}guide/developing/tools/proguard.html">ProGuard</a> support in
264 release builds. For it to work, you need to have a <code>proguard.config</code>
265 property in the <code>default.properties</code> file that points to a ProGuard config file.</li>
Scott Mainc0c0c422010-11-05 15:23:36 -0700266 <li>Completely rewritten Visual Layout Editor. (This is still a work in progress.) Now includes:
267 <ul>
268 <li>Full drag and drop from palette to layout for all Layout classes.</li>
269 <li>Move widgets inside a Layout view, from one Layout view to another and from one layout file to another.</li>
270 <li>Contextual menu with enum/flag type properties.</li>
271 <li>New zoom controls.</li>
272 </ul></li>
273 <li>New HierarchyViewer plug-in integrated in Eclipse.</li>
274 <li>Android launch configurations don't recompile the whole workspace on launch anymore.</li>
275 <li><code>android.jar</code> source and javadoc location can now be configured.</li>
Dirk Dougherty9a97aaf2010-09-23 11:48:54 -0700276</ul>
277</dd>
Scott Mainc0c0c422010-11-05 15:23:36 -0700278</dl>
279 </div>
280</div>
281
282
283<div class="toggleable closed">
284 <a href="#" onclick="return toggleDiv(this)">
285 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
286ADT 0.9.9</a> <em>(September 2010)</em>
287 <div class="toggleme">
Dirk Dougherty9a97aaf2010-09-23 11:48:54 -0700288
289<dl>
290
291<dt>Dependencies:</dt>
292
293<dd><p>ADT 0.9.9 replaces ADT 0.9.8 and is designed for use with SDK Tools r7
294and later. ADT 0.9.9 includes the ADT 0.9.8 features as well as an important
295bugfix, so we recommend that you upgrade as soon as possible. If you haven't
296already installed SDK Tools r7 into your SDK, use the Android SDK Manager to do
297so.</p></dd>
298
299<dt>General notes:</dt>
300<dd>
301<ul>
302<li>Fixes a problem in project import, in which source files were deleted in some cases.</li>
303<li>Includes all other ADT 0.9.8 features (see below).</li>
304</ul>
305</dd>
306</dl>
307 </div>
308</div>
309
310<div class="toggleable closed">
311 <a href="#" onclick="return toggleDiv(this)">
312 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
Dirk Dougherty74a74d32010-09-09 18:40:13 -0700313ADT 0.9.8</a> <em>(September 2010)</em>
Dirk Dougherty022171b2010-07-30 19:24:17 -0700314 <div class="toggleme">
315
316
317</ul>
318</dd>
319
320<dl>
321
322<dt>Dependencies:</dt>
323
Dirk Dougherty9a97aaf2010-09-23 11:48:54 -0700324<dd><p>ADT 0.9.8 is now deprecated. Please use ADT 0.9.9 instead.</p></dd>
Dirk Dougherty022171b2010-07-30 19:24:17 -0700325
326<dt>General notes:</dt>
327<dd>
328<ul>
329<li>Adds a new Action, "Rename Application Package", to the Android Tools
330contextual menu. The Action does a full application package refactoring.
331<li>Adds support for library projects that don't have a source folder
332called <code>src/</code>. There is now support for any number of source folders,
333with no name restriction. They can even be in subfolder such as
334<code>src/java</code>. If you are already working with library projects created
Scott Main081127b2010-10-29 15:56:27 -0700335in ADT 0.9.7, see <a
Dirk Dougherty022171b2010-07-30 19:24:17 -0700336href="{@docRoot}guide/developing/eclipse-adt.html#libraryMigrating">Migrating
337library projects to ADT 0.9.8</a> for important information about moving
338to the new ADT environment.</li>
339<li>Adds support for library projects that depend on other library
340projects.</li>
341<li>Adds support for additional resource qualifiers:
342<code>car</code>/<code>desk</code>, <code>night</code>/<code>notnight</code> and
343<code>navexposed</code>/<code>navhidden</code>.</li>
344<li>Adds more device screen types in the layout editor. All screen
Scott Main081127b2010-10-29 15:56:27 -0700345resolution/density combinations listed in the <a
Dirk Dougherty022171b2010-07-30 19:24:17 -0700346href="{@docRoot}guide/practices/screens_support.html#range">Supporting
347Multiple Screens</a> are now available.</li>
348<li>Fixes problems with handling of library project names that
349contain characters that are incompatible with the Eclipse path variable.
350Now properly sets up the link between the main project and the library
351project.</li>
352</ul>
353</dd>
354</dl>
355 </div>
356</div>
357
358
359<div class="toggleable closed">
360 <a href="#" onclick="return toggleDiv(this)">
Dirk Dougherty0d1b0812010-04-07 17:05:16 -0700361 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
Dirk Doughertyc7c7afd2010-05-24 09:07:14 -0700362ADT 0.9.7</a> <em>(May 2010)</em>
Dirk Dougherty0d1b0812010-04-07 17:05:16 -0700363 <div class="toggleme">
364
365<dl>
366<dt>Library projects:</dt>
367<dd>
368<p>The ADT Plugin now supports the use of <em>library projects</em> during
369development, a capability that lets you store shared Android application
370code and resources in a separate development project. You can then reference the
371library project from other Android projects and, at build time, the tools
372compile the shared code and resources as part of the dependent applications.
373More information about this feature is available in the <a
Scott Main081127b2010-10-29 15:56:27 -0700374href="{@docRoot}guide/developing/eclipse-adt.html#libraryProject">Developing
Dirk Dougherty0d1b0812010-04-07 17:05:16 -0700375in Eclipse with ADT</a> document. </p>
Scott Main081127b2010-10-29 15:56:27 -0700376<p>If you are not developing in Eclipse, <a
377href="tools-notes.html">SDK Tools r6</a> provides the equivalent library
Dirk Dougherty0d1b0812010-04-07 17:05:16 -0700378project support through the Ant build system.</p>
379</dd>
380</dl>
381 </div>
382</div>
383
Dirk Dougherty022171b2010-07-30 19:24:17 -0700384
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700385<div class="toggleable closed">
386 <a href="#" onclick="return toggleDiv(this)">
387 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
388ADT 0.9.6</a> <em>(March 2010)</em>
389 <div class="toggleme">
390
391<dl>
392<dt>Dependencies:</dt>
393
Scott Main081127b2010-10-29 15:56:27 -0700394<dd><p>ADT 0.9.6 is designed for use with SDK Tools r5 and later. Before
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700395updating to ADT 0.9.6, we highly recommend that you use the Android SDK and
396AVD Manager to install SDK Tools r5 into your SDK.</p></dd>
397
398<dt>General Notes:</dt>
399<dd>
400<ul>
401<li>Editing <code>default.properties</code> outside of Eclipse will now
402automatically update the project.</li>
403<li>Loads the SDK content only when a project requires it. This will make
404Eclipse use less resources when the SDK contains many versions of Android.</li>
405<li>Resolves potential deadlock between modal dialogs, when launching ADT the
406first time with the SDK Usage panel.</li>
407<li>Fixes issues with the New Project Wizard when selecting samples.</li>
408</ul>
409</dd>
410<dt>AVD/SDK Manager:</dt>
411<dd>
412<ul>
413<li>Adds support for platform samples components.</li>
414<li>Improves support for dependency between components.</li>
415<li>AVDs now sorted by API level.</li>
416<li>The AVD creation dialog now enforces a minimum SD card size of 9MB.</li>
417<li>Prevents deletion of running AVDs.</li>
418</ul>
419</dd>
420<dt>DDMS:</dt>
421<dd>
422<ul>
423<li>DDMS plug-in now contains the Allocation Tracker view.</li>
424<li>New action in the Logcat view: "Go to problem" lets you go directly from an
425exception trace output to the code.</li>
426</ul>
427</dd>
428<dt>Editors:</dt>
429<dd>
430<ul>
431<li>Explode mode in the Visual Layout Editor adds a margin to all layout objects
432so that it's easier to see embedded or empty layouts.</li>
433<li>Outline mode in the Visual Layout Editor draws layout outline to make it
434easier to see layout objects.</li>
435<li>Several fixes in the configuration selector of the Visual Layout
436Editor.</li>
437</ul>
438</dd>
439<dt>Application launching:</dt>
440<dd>
441<ul>
442<li>Applications launched from ADT now behave as if they were clicked from the
443Home screen.</li>
444<li>Fixes issue where add-on with no optional library would not show up as valid
445targets for application launches.</li>
446<li>Resolves possible crash when launching applications.</li>
447</ul>
448</dd>
449</dl>
450 </div>
451</div>
452
453<div class="toggleable closed">
454 <a href="#" onclick="return toggleDiv(this)">
455 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
456ADT 0.9.5</a> <em>(December 2009)</em>
457 <div class="toggleme">
458<dl>
459<dt>Dependencies:</dt>
460
461<dd><p>ADT 0.9.5 requires features provided in SDK Tools r4 or higher. If you install
462ADT 0.9.5, which is highly recommended, you should use the Android SDK and AVD
Scott Main92b03082010-12-14 17:55:27 -0800463Manager to download the latest SDK Tools into your SDK. For more information,
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700464see <a href="{@docRoot}sdk/adding-components.html">Adding SDK Components</a>.</p>
465</dd>
466
467<dt>General Notes:</dt>
468<dd>
469<ul>
470<li>AVD Launch dialog now shows scale value.</li>
471<li>Fixes potential NPE in SDK Manager on AVD launch, for older AVD with no skin name specified.</li>
472<li>Fixes XML validation issue in on older Java versions.</li>
473<li>.apk packaging now properly ignores vi swap files as well as hidden files.</li>
474</ul>
475</dd>
476</dl>
477 </div>
478</div>
479
480<div class="toggleable closed">
481 <a href="#" onclick="return toggleDiv(this)">
482 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
483ADT 0.9.4</a> <em>(October 2009)</em>
484 <div class="toggleme">
485<dl>
486<dt>Dependencies:</dt>
487
488<dd><p>ADT 0.9.4 requires features provided in SDK Tools r3 or higher. If you install
489ADT 0.9.4, which is highly recommended, you should use the Android SDK and AVD
490Manager to download the latest SDK Tools into your SDK. For more information,
491see <a href="{@docRoot}sdk/adding-components.html">Adding SDK Components</a>.</p>
492</dd>
493
494<dt>Project Creation Wizard:</dt>
495<dd>
496<ul>
497<li>New option to create a project from a sample by choosing it from a list.</li>
498</ul>
499</dd>
500
501<dt>Layout Editor:</dt>
502<dd>
503<ul>
504<li>Improved Configuration selector that lets you see how your layout will
505render on different devices. Default device descriptions include ADP1
506and Google Ion, while SDK add-ons can also provide new descriptions.
507A new UI allows you to create custom descriptions.</li>
508<li>Adds a new clipping toggle, to let you see your full layout even if it's
509bigger than the screen.</li>
510</ul>
511</dd>
512
513<dt>DDMS Integration:</dt>
514<dd>
515<ul>
516<li>Includes the improvements from the standlone DDMS, revision 3.</li>
517<li>Adds an option to open HPROF files into eclipse instead of writing them on
Scott Main081127b2010-10-29 15:56:27 -0700518disk. If a profiler such as MAT (<a href="http://eclipse.org/mat">Memory Analyzer
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700519Tool</a>) is installed, it'll open the file.</li>
520</ul>
521</dd>
522
523<dt>Android SDK and AVD Manager integration:</dt>
524<dd>
525<ul>
Scott Main081127b2010-10-29 15:56:27 -0700526<li>Includes the improvements from the standalone Android SDK and AVD Manager,
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700527revision 3.</li>
528</ul>
529</dd>
530</dl>
531 </div>
532</div>
533
Scott Main77847a32010-11-09 16:41:32 -0800534
535
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700536<h2 id="installing">Installing the ADT Plugin</h2>
537
538<p>The sections below provide instructions on how to download and install
539ADT into your Eclipse environment. If you encounter problems, see the <a
540href="#troubleshooting">Troubleshooting</a> section.</p>
541
Scott Main77847a32010-11-09 16:41:32 -0800542
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700543<h3 id="preparing">Preparing Your Development Computer</h3>
544
545<p>ADT is a plugin for the Eclipse IDE. Before you can install or use ADT,
546you must have a compatible version of Eclipse installed on your development
547computer. </p>
548
549<ul>
550<li>If Eclipse is already installed on your computer, make sure that it is
551a version that is compatible with ADT and the Android SDK. Check the <a
552href="requirements.html">System Requirements</a> document for
553a list of Eclipse versions that are compatible with the Android SDK.</li>
554<li>If you need to install or update Eclipse, you can download it from this
555location:
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700556
Dirk Dougherty22558d02009-12-10 16:25:06 -0800557<p style="margin-left:2em;"><a href=
558"http://www.eclipse.org/downloads/">http://www.eclipse.org/downloads/</a>
559</p>
560
Scott Main77847a32010-11-09 16:41:32 -0800561<p>For Eclipse 3.5 or newer, the "Eclipse Classic" version is recommended. Otherwise, a Java or RCP
562version of Eclipse is recommended.</p></li>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700563</ul>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700564
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700565<p>Additionally, before you can configure or use ADT, you must install the
566Android SDK starter package, as described in <a
Robert Lyef13d022010-07-12 14:32:22 -0700567href="installing.html#Installing">Downloading the SDK Starter Package</a>.
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700568Specifically, you need to install a compatible version of the Android SDK Tools
569and at least one development platform. To simplify ADT setup, we recommend
570installing the Android SDK prior to installing ADT. </p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700571
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700572<p>When your Eclipse and Android SDK environments are ready, continue with the
573ADT installation as described in the steps below. </p>
574
575<h3 id="downloading">Downloading the ADT Plugin</h3>
576
577<p>Use Update Manager feature of your Eclipse installation to install the latest
578revision of ADT on your development computer.<p>
579
580<p>Assuming that you have a compatible version of the Eclipse IDE installed, as
581described in <a href="#preparing">Preparing for Installation</a>, above, follow
582these steps to download the ADT plugin and install it in your Eclipse
583environment. </p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700584
585<table style="font-size:100%">
Scott Main77847a32010-11-09 16:41:32 -0800586<tr><th>Eclipse 3.5 (Galileo) and 3.6 (Helios)</th><th>Eclipse 3.4 (Ganymede)</th></tr>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700587<tr>
588<td width="45%">
Scott Main77847a32010-11-09 16:41:32 -0800589<!-- 3.5+ steps -->
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700590<ol>
Scott Main77847a32010-11-09 16:41:32 -0800591 <li>Start Eclipse, then select <strong>Help</strong> &gt; <strong>Install New
592Software...</strong>.</li>
593 <li>Click <strong>Add</strong>, in the top-right corner.</li>
594 <li>In the Add Repository dialog that appears, enter "ADT Plugin" for the <em>Name</em> and the
595following URL for the <em>Location</em>:
596 <pre>https://dl-ssl.google.com/android/eclipse/</pre>
Scott Main13244e52010-01-19 11:12:07 -0800597 <p>Note: If you have trouble acquiring the plugin, try using "http" in the Location URL,
Scott Main081127b2010-10-29 15:56:27 -0700598 instead of "https" (https is preferred for security reasons).</p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700599 <p>Click <strong>OK</strong>.</p></li>
Scott Main77847a32010-11-09 16:41:32 -0800600 <li>In the Available Software dialog, select
601the checkbox next to Developer Tools and click <strong>Next</strong>.</li>
602 <li>In the next window, you'll see a list of the tools to be downloaded. Click
603<strong>Next</strong>. </li>
604 <li>Read and accept the license agreements, then click <strong>Finish</strong>.</li>
605 <li>When the installation completes, restart Eclipse. </li>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700606</ol>
607
608</td>
Scott Main77847a32010-11-09 16:41:32 -0800609<td width="50%">
610
611<!-- 3.4 steps -->
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700612<ol>
Scott Main77847a32010-11-09 16:41:32 -0800613 <li>Start Eclipse, then select <strong>Help</strong> &gt; <strong>Software Updates...</strong>.
614In the dialog that appears, click the <strong>Available Software</strong> tab.</li>
615 <li>Click <strong>Add Site</strong>.</li>
616 <li>In the Add Site dialog that appears, enter this URL in the "Location" field:
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700617 <pre>https://dl-ssl.google.com/android/eclipse/</pre>
Scott Main13244e52010-01-19 11:12:07 -0800618 <p>Note: If you have trouble acquiring the plugin, you can try
Scott Main081127b2010-10-29 15:56:27 -0700619 using "http" in the URL, instead of "https" (https is preferred for
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700620 security reasons).</p>
621 <p>Click <strong>OK</strong>.</p>
622 </li>
Scott Main77847a32010-11-09 16:41:32 -0800623 <li>Back in the Available Software view, you should see the plugin listed by the URL,
624 with "Developer Tools" nested within it. Select the checkbox next to Developer Tools,
625 which will automatically select the nested tools. Then click
626 <strong>Install</strong></li>
627 <li>On the subsequent Install window, all of the included tools
628 should be checked. Click <strong>Next</strong>. </li>
629 <li>Read and accept the license agreements, then click <strong>Finish</strong>.</li>
630 <li>When the installation completes, restart Eclipse. </li>
Scott Main081127b2010-10-29 15:56:27 -0700631
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700632</ol>
633</td>
634</tr>
635</table>
636
Scott Main369c1c12010-12-07 11:17:00 -0800637<h3 id="configuring">Configuring the ADT Plugin</h3>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700638
Dirk Dougherty4b4af992010-09-13 11:24:06 -0700639<p>Once you've successfully downloaded ADT as described above, the next step
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700640is to modify your ADT preferences in Eclipse to point to the Android SDK directory:</p>
641
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700642<ol>
643 <li>Select <strong>Window</strong> &gt; <strong>Preferences...</strong> to open the Preferences
644 panel (Mac OS X: <strong>Eclipse</strong> &gt; <strong>Preferences</strong>).</li>
645 <li>Select <strong>Android</strong> from the left panel. </li>
Scott Main081127b2010-10-29 15:56:27 -0700646 <li>For the <em>SDK Location</em> in the main panel, click <strong>Browse...</strong> and
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700647 locate your downloaded SDK directory. </li>
648 <li>Click <strong>Apply</strong>, then <strong>OK</strong>.</li>
649</ol>
650
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700651<p>Done! If you haven't encountered any problems, then the installation is
Scott Main081127b2010-10-29 15:56:27 -0700652complete. If you're installing the Android SDK for the first time, return to <a
653href="{@docRoot}sdk/installing.html#InstallingADT">Installing the SDK</a> to complete your setup.
654</p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700655
656
657<h3 id="troubleshooting">Troubleshooting ADT Installation</h3>
658
659<p> If you are having trouble downloading the ADT plugin after following the
660steps above, here are some suggestions: </p>
661
662<ul>
663 <li>If Eclipse can not find the remote update site containing the ADT plugin,
664try changing the remote site URL to use http, rather than https. That is, set
665the Location for the remote site to:
Scott Main081127b2010-10-29 15:56:27 -0700666<pre>http://dl-ssl.google.com/android/eclipse/</pre></li>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700667<li>If you are behind a firewall (such as a corporate firewall), make sure that
Scott Main77847a32010-11-09 16:41:32 -0800668you have properly configured your proxy settings in Eclipse. In Eclipse,
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700669you can configure proxy information from the main Eclipse menu in
670<strong>Window</strong> (on Mac OS X, <strong>Eclipse</strong>) &gt;
671<strong>Preferences</strong> &gt; <strong>General</strong> &gt; <strong>Network
672Connections</strong>.</li>
673</ul>
674
675<p> If you are still unable to use Eclipse to download the ADT plugin as a
676remote update site, you can download the ADT zip file to your local machine and
677manually install it:</p>
678
679<ol>
680 <li>Download the current ADT Plugin zip file from the table below (do not unpack it).
681
682 <table class="download">
683 <tr>
684 <th>Name</th>
685 <th>Package</th>
686 <th>Size</th>
687 <th>MD5 Checksum</th>
688 </tr>
689 <tr>
690 <td>ADT {@adtZipVersion}</td>
691 <td>
692 <a href="http://dl.google.com/android/{@adtZipDownload}">{@adtZipDownload}</a>
693 </td>
694 <td>{@adtZipBytes} bytes</td>
695 <td>{@adtZipChecksum}</td>
696 </tr>
697</table>
698</li>
699
700</li>
Scott Main081127b2010-10-29 15:56:27 -0700701 <li>Follow steps 1 and 2 in the <a href="#installing">default install
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700702 instructions</a> (above).</li>
703 <li>In the Add Site dialog, click <strong>Archive</strong>.</li>
704 <li>Browse and select the downloaded zip file.</li>
Scott Main77847a32010-11-09 16:41:32 -0800705 <li>Enter a name for the local update site (e.g.,
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700706 "Android Plugin") in the "Name" field.</li>
707 <li>Click <strong>OK</strong>.
Scott Main081127b2010-10-29 15:56:27 -0700708 <li>Follow the remaining procedures as listed for
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700709 <a href="#installing">default installation</a> above,
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700710 starting from step 4.</li>
711</ol>
712
713<p>To update your plugin once you've installed using the zip file, you will have
714to follow these steps again instead of the default update instructions.</p>
715
716<h4>Other install errors</h4>
717
Scott Main081127b2010-10-29 15:56:27 -0700718<p>Note that there are features of ADT that require some optional
719Eclipse components (for example, WST). If you encounter an error when
720installing ADT, your Eclipse installion might not include these components.
721For information about how to quickly add the necessary components to your
722Eclipse installation, see the troubleshooting topic
723<a href="{@docRoot}resources/faq/troubleshooting.html#installeclipsecomponents">ADT
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700724Installation Error: "requires plug-in org.eclipse.wst.sse.ui"</a>.</p>
725
726<h4>For Linux users</h4>
Scott Main081127b2010-10-29 15:56:27 -0700727<p>If you encounter this error when installing the ADT Plugin for Eclipse:
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700728<pre>
729An error occurred during provisioning.
730Cannot connect to keystore.
731JKS</pre>
732<p>
733...then your development machine lacks a suitable Java VM. Installing Sun
734Java 6 will resolve this issue and you can then reinstall the ADT
735Plugin.</p>
736
737
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700738<h2 id="updating">Updating the ADT Plugin</h2>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700739
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700740<p>From time to time, a new revision of the ADT Plugin becomes available, with
741new features and bug fixes. Generally, when a new revision of ADT is available,
742you should update to it as soon as convenient. </p>
743
744<p>In some cases, a new revision of ADT will have a dependency on a specific
745revision of the Android SDK Tools. If such dependencies exist, you will need to
746update the SDK Tools component of the SDK after installing the new revision of
747ADT. To update the SDK Tools component, use the Android SDK and AVD Manager, as
748described in <a href="adding-components.html">Adding SDK Components</a>.</p>
749
750<p>To learn about new features of each ADT revision and also any dependencies on
751the SDK Tools, see the listings in the <a href="#notes">Revisions</a>
Scott Main081127b2010-10-29 15:56:27 -0700752section. To determine the version currently installed, open the
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700753Eclipse Installed Software window using <strong>Help</strong>
Scott Main081127b2010-10-29 15:56:27 -0700754&gt; <strong>Software Updates</strong> and refer to the version listed for
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700755"Android Development Tools".</p>
756
Scott Main081127b2010-10-29 15:56:27 -0700757<p>Follow the steps below to check whether an update is available and, if so,
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700758to install it. </p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700759
760<table style="font-size:100%">
Scott Main77847a32010-11-09 16:41:32 -0800761<tr><th>Eclipse 3.5 (Galileo) and 3.6 (Helios)</th><th>Eclipse 3.4 (Ganymede)</th></tr>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700762<tr>
Scott Main77847a32010-11-09 16:41:32 -0800763<td>
764<!-- 3.5+ steps -->
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700765<ol>
Scott Main77847a32010-11-09 16:41:32 -0800766 <li>Select <strong>Help</strong> &gt; <strong>Check for Updates</strong>.
767 <p>If there are no updates available, a dialog will say so and you're done.</p></li>
768 <li>If there are updates available, select Android DDMS, Android Development Tools,
769 and Android Hierarchy Viewer, then click <strong>Next</strong>.</li>
770 <li>In the Update Details dialog, click <strong>Next</strong>.</li>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700771 <li>Read and accept the license agreement and then click <strong>Finish</strong>.
Scott Main081127b2010-10-29 15:56:27 -0700772 This will download and install the latest version of Android DDMS and
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700773 Android Development Tools.</li>
774 <li>Restart Eclipse.</li>
775</ol>
776</td>
Scott Main77847a32010-11-09 16:41:32 -0800777
778<td width="50%">
779<!-- 3.4 steps -->
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700780<ol>
Scott Main77847a32010-11-09 16:41:32 -0800781 <li>Select <strong>Help</strong> &gt; <strong>Software Updates</strong>.</li>
782 <li>Select the <strong>Available Software</strong> tab.</li>
783 <li>If there are updates available, select Android DDMS, Android Development Tools,
784 and Android Hierarchy Viewer, then click <strong>Update</strong>.</li>
785 <li>In the resulting Available Updates dialog, ensure that each of the listed tools
786 are selected, then click <strong>Next</strong>.</li>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700787 <li>Read and accept the license agreement and then click <strong>Finish</strong>.
Scott Main081127b2010-10-29 15:56:27 -0700788 This will download and install the latest version of Android DDMS and
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700789 Android Development Tools.</li>
790 <li>Restart Eclipse.</li>
791</ol>
792</td>
793</tr>
794</table>
795
796
Scott Main090a3dc2010-12-07 10:38:55 -0800797<p>If you encounter problems during the update, remove the existing ADT plugin from Eclipse, then
798perform a fresh installation, using the instructions for <a href="#installing">Installing the ADT
799Plugin</a>.</p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700800