blob: 97717feb3f29413cb945fbe338a9cab5215bf8ad [file] [log] [blame]
Dirk Dougherty7b229ef2010-03-26 17:32:26 -07001page.title=ADT Plugin for Eclipse
Scott Mainb8426292011-02-18 16:33:25 -08002adt.zip.version=10.0.0
3adt.zip.download=ADT-10.0.0.zip
4adt.zip.bytes=4243777
5adt.zip.checksum=bf88bff62bc45c3b6d062e2beed67765
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
Robert Lyccea5d22011-02-11 14:59:36 -080031to 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
Robert Lyccea5d22011-02-11 14:59:36 -080098
Dirk Dougherty0d1b0812010-04-07 17:05:16 -070099<div class="toggleable opened">
100 <a href="#" onclick="return toggleDiv(this)">
Scott Main92b03082010-12-14 17:55:27 -0800101 <img src="{@docRoot}assets/images/triangle-opened.png" class="toggle-img" height="9px"
102width="9px" />
Robert Lyccea5d22011-02-11 14:59:36 -0800103ADT 10.0.0</a> <em>(February 2011)</em>
104 <div class="toggleme">
105
106<dl>
107
108<dt>Dependencies:</dt>
109
110<dd>ADT 10.0.0 is designed for use with SDK Tools r10. If you haven't
111already installed SDK Tools r10 into your SDK, use the Android SDK and AVD Manager to do
112so.</dd>
113
114<dt>General notes:</dt>
115<dd>
116 <ul>
117 <li>The tools now automatically generate Java Programming Language source files (in the <code>gen/</code> directory) and
118 bytecode (in the <code>res/raw/</code> directory) from your <code>.rs</code> files.</li>
Robert Lya0ef3502011-02-15 16:08:03 -0800119 <li>A Binary XML editor has been added (<a href="http://tools.android.com/recent/binaryxmleditor">details</a>).</li>
Robert Lyccea5d22011-02-11 14:59:36 -0800120 <li>Traceview is now integrated into the Eclipse UI (<a href="http://tools.android.com/recent/traceviewineclipse">details</a>).</li>
121 <li>The "Go To Declaration" feature for XML and <code>.java</code> files quickly show all the matches in the project
Robert Lya0ef3502011-02-15 16:08:03 -0800122 and allows you jump to specific items such as string translations or <code>onClick</code> handlers
123 (<a href="http://tools.android.com/recent/gotodeclarationimprovements">details</a>).</li>
124 <li>The Resource Chooser can create items such as dimensions, integers, ids, and booleans
125 (<a href="http://tools.android.com/recent/resourcechoosercannowcreatearbitraryvalues">details</a>).</li>
Robert Lyccea5d22011-02-11 14:59:36 -0800126 <li>Improvements to the Visual Layout Editor:
127 <ul>
128 <li>A new Palette with categories and rendering previews
129 (<a href="http://tools.android.com/recent/newpalette">details</a>).</li>
Robert Lya0ef3502011-02-15 16:08:03 -0800130 <li>A Layout Actions bar that provides quick access to common layout operations
131 (<a href="http://tools.android.com/recent/layoutactionsbar">details</a>).</li>
Robert Lyccea5d22011-02-11 14:59:36 -0800132 <li>When the Android 3.0 rendering library is selected, layouts render more like they do on devices.
133 This includes rendering of status and title bars to more accurately reflect the actual
Robert Lya0ef3502011-02-15 16:08:03 -0800134 screen space available to applications
135 (<a href="http://tools.android.com/recent/systembarandactionbar">details</a>).</li>
Robert Lyccea5d22011-02-11 14:59:36 -0800136 <li>Zoom improvements such as fit to view, persistent scale, and keyboard access.
137 (<a href="http://tools.android.com/recent/zoomimprovements">details</a>).</li>
Robert Lya0ef3502011-02-15 16:08:03 -0800138 <li>Further improvements to <code>&lt;merge&gt;</code> layouts, as well as layouts with gesture overlays
139 (<a href="http://tools.android.com/recent/improvedsupportformergetags">details</a>).</li>
Robert Lyccea5d22011-02-11 14:59:36 -0800140 <li>Improved rendering error diagnostics.</li>
141 </ul>
142 </li>
143 </ul>
144</dd>
145</dl>
146</div>
147</div>
148
149<div class="toggleable closed">
150 <a href="#" onclick="return toggleDiv(this)">
151 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px"
152width="9px" />
Robert Lyedc2aac2011-01-14 16:25:09 -0800153ADT 9.0.0</a> <em>(January 2011)</em>
154 <div class="toggleme">
155
156<dl>
157
158<dt>Dependencies:</dt>
159
160<dd>ADT 9.0.0 is designed for use with SDK Tools r9. If you haven't
161already installed SDK Tools r9 into your SDK, use the Android SDK and AVD Manager to do
162so.</dd>
163
164<dt>General notes:</dt>
165<dd>
166 <ul>
167 <li>"Go To Declaration" hyperlink support: You can jump directly from code references (such as
168 <code>R.id.main</code>) to the corresponding XML declaration, or from XML attributes (such as
169 <code>@string</code>) to the corresponding resource definition, or from manifest XML
170 registrations to activities and services.</li>
171 <li>Improvements were made to name refactoring.</li>
172 <li>AVDs now automatically save their state, so they can restart almost instantly. You can enable this feature when
173 creating an AVD or by editing an AVD with the AVD Manager.</li>
174 <li>Improvements to the Visual Layout Editor:
175 <ul>
176 <li>Support for rendering targets: You can now choose an arbitrary Android platform to
177 render the current page, regardless of the project's minimum platform. This makes it
178 easy to verify the layout and appearance of your activity on different versions of
179 the platform.
180 </li>
181 <li>Improved support for empty and nested layouts: Dragging items over nested and
182 invisible layouts automatically enlarges and highlights these layouts, so that they
183 can receive drops.
184 </li>
185 <li>XML formatting improvements: The editor generates cleaner XML and you can now enable
186 XML auto-formatting in the <strong>Preferences</strong> menu.</li>
187 <li>Improved Outline labels: The Outline tab now displays additional information about each
188 View. Textual Views display a snippet of the actual text. Views with a source
189 (such as ImageView) displays the resource name. Included Views display the name of the View.
190 </li>
191 <li>When you right click a View in the Layout Editor,
192 the context menu now contains <strong>Edit ID...</strong> and <strong>Edit Text...</strong>
193 items. The <strong>Properties...</strong> context menus now list all of the properties and
194 provide a way to edit them
195 (<a href="http://tools.android.com/recent/editidtextandotherpropertiesviamenu">Details</a>).
196 </li>
197 <li>The layout editor now properly handles
198 <a href="{@docRoot}guide/topics/resources/layout-resource.html#include-element"><code>&lt;include&gt;</code></a>
199 and <a href="{@docRoot}guide/topics/resources/layout-resource.html#merge-element"><code>&lt;merge&gt;</code></a>
200 tags (<a href="http://tools.android.com/recent/supportforincludeandmerge">Details</a>).</li>
201 <li>"Extract as Include" refactoring: The Layout Editor has a new refactoring that allows
202 you to select one or more views in a layout, and extract it into a separate layout
203 (<a href="http://tools.android.com/recent/extractasincluderefactoring">Details</a>).</li>
204 <li>Improved diagnostics for class loading and rendering errors: Class loading and rendering
205 error messages are more useful and provide better information about the root cause of the
206 error.</li>
207 <li>Improved error handling to prevent drag and reordering operations from adding children
208 into an {@link android.widget.AdapterView}.</li>
209 <li>Outline reordering: Reordering your views in the Outline tab is much easier
210 (<a href="http://tools.android.com/recent/outlineimprovements">Details</a>).</li>
211 <li>Fix for keybinding bug where keyboard shortcuts did not work (Issues
212 <a href="http://code.google.com/p/android/issues/detail?id=13231">13231</a> and
213 <a href="http://code.google.com/p/android/issues/detail?id=13134">13134</a>).</li>
214 <li>Fix for problems with Custom layout attribute menu (Issue
215 <a href="http://code.google.com/p/android/issues/detail?id=13134">13134</a>).</li>
216 <li>Automatic configuration for various view types: Certain views have properties configured
217 by default. For example, the width of an {@link android.widget.EditText} object is set to
218 <code>match_parent</code> when added to a vertical {@link android.widget.LinearLayout}
219 or a default image is added to an {@link android.widget.ImageButton}.</li>
220 <li>Previews during dragging: Dragging from the palette or dragging within the layout editor
221 now shows live previews of the dragged item.</li>
222 <li>Navigation improvements: In the Layout Editor, double-clicking Views jumps to the
223 corresponding XML element. In the Outline view, double-clicking opens the Properties view.</li>
224 <li>The editor has Honeycomb style animation preview support.</li>
225 <li>Improved rendering support for various Views (such as TabHosts and SlidingDrawers) in
226 Honeycomb (Issues <a href="http://code.google.com/p/android/issues/detail?id=3162">3162</a>
227 and <a href="http://code.google.com/p/android/issues/detail?id=13092">13092</a>).</li>
228 <li>Included layouts can be rendered and edited in the context of the layouts that include
229 them. From a layout using an <a href="{@docRoot}guide/topics/resources/layout-resource.html#include-element">
230 <code>&lt;include&gt;</code></a> tag, double-clicking on the
231 <a href="{@docRoot}guide/topics/resources/layout-resource.html#include-element">
232 <code>&lt;include&gt;</code></a> element edits the referenced layout in the context of the
233 current layout. Additionally, when editing a layout that is included by other layouts,
234 you can quickly change between context layouts, by right clicking in the editor and choosing
235 <strong>Show included in...</strong>. This feature is only available in Honeycomb.</li>
236 </ul>
237 </li>
238 <li>This release fixes many other bugs, but the most important ones are listed below:
239 <ul>
240 <li>Fixed issue that prevented launching debug builds on productions devices when
241 <code>debuggable=true</code> was not set in the Android manifest.</li>
242 <li>The LogCat view in DDMS properly handles UTF-8 characters.</li>
243 <li>The SDK Manager is more reliable on Windows
244 (<a href="http://tools.android.com/recent/sdkmanagerfixes">Details</a>).</li>
245 <li>A JUnit initialization bug that prevented you from working with JUnit tests was fixed
246 (Issue <a href="http://code.google.com/p/android/issues/detail?id=12411">12411</a>).</li>
247 </ul>
248</li>
249 </ul>
250</dd>
251</dl>
252</div>
253</div>
254
255
256
257
258<div class="toggleable closed">
259 <a href="#" onclick="return toggleDiv(this)">
260 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px"
261width="9px" />
Scott Main92b03082010-12-14 17:55:27 -0800262ADT 8.0.1</a> <em>(December 2010)</em>
263 <div class="toggleme">
264
265<dl>
266
267<dt>Dependencies:</dt>
268
269<p><p>ADT 8.0.1 is designed for use with SDK Tools r8. If you haven't
270already installed SDK Tools r8 into your SDK, use the Android SDK and AVD Manager to do
271so.</p></dd>
272
273<dt>General notes:</dt>
274<dd>
275<ul>
276 <li>This is a quick follow-up to ADT 8.0.0 to fix some bugs.</li>
277 <li>Fixes an issue in which projects failed to compile, citing a dex error.</li>
278 <li>Better ProGuard error reporting when exporting applications for release.</li>
279</ul>
280<p>Also see the recent release notes for 8.0.0, below.</p>
281</dd>
282</dl>
Robert Lyedc2aac2011-01-14 16:25:09 -0800283</div>
Scott Main92b03082010-12-14 17:55:27 -0800284</div>
285
286
287<div class="toggleable closed">
288 <a href="#" onclick="return toggleDiv(this)">
289 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px"
290width="9px" />
Dirk Dougherty9f7580d2010-10-26 09:29:03 -0700291ADT 8.0.0</a> <em>(December 2010)</em>
Dirk Dougherty9a97aaf2010-09-23 11:48:54 -0700292 <div class="toggleme">
293
Scott Mainc0c0c422010-11-05 15:23:36 -0700294<dl>
Dirk Dougherty9a97aaf2010-09-23 11:48:54 -0700295
Scott Mainc0c0c422010-11-05 15:23:36 -0700296<dt>Dependencies:</dt>
297
Dirk Dougherty9f7580d2010-10-26 09:29:03 -0700298<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 -0700299already installed SDK Tools r8 into your SDK, use the Android SDK and AVD Manager to do
300so.</p></dd>
301
302<dt>General notes:</dt>
303<dd>
304<ul>
305 <li>New version number scheme that follows the SDK Tools revision number. The major version
306number for your ADT plugin should now always match the revision number of your SDK Tools. For
307example, ADT 8.x is for SDK Tools r8.</li>
308 <li>Support for true debug build. You no longer need to change the value of the
309 <code>debuggable</code> attribute in the Android Manifest.
310 <p>Incremental builds automatically insert <code>debuggable="true"</code>, but if you perform
311 "export signed/unsigned application package", ADT does <em>not</em> insert it.
312 If you manually set <code>debuggable="true"</code> in the manifest file, then release builds will
313 actually create a debug build (it does not remove it if you placed it there).</p></li>
Scott Main60c4e032011-01-07 14:48:18 -0800314 <li>Automatic <a href="{@docRoot}guide/developing/tools/proguard.html">ProGuard</a> support in
315 release builds. For it to work, you need to have a <code>proguard.config</code>
316 property in the <code>default.properties</code> file that points to a ProGuard config file.</li>
Scott Mainc0c0c422010-11-05 15:23:36 -0700317 <li>Completely rewritten Visual Layout Editor. (This is still a work in progress.) Now includes:
318 <ul>
319 <li>Full drag and drop from palette to layout for all Layout classes.</li>
320 <li>Move widgets inside a Layout view, from one Layout view to another and from one layout file to another.</li>
321 <li>Contextual menu with enum/flag type properties.</li>
322 <li>New zoom controls.</li>
323 </ul></li>
324 <li>New HierarchyViewer plug-in integrated in Eclipse.</li>
325 <li>Android launch configurations don't recompile the whole workspace on launch anymore.</li>
326 <li><code>android.jar</code> source and javadoc location can now be configured.</li>
Dirk Dougherty9a97aaf2010-09-23 11:48:54 -0700327</ul>
328</dd>
Scott Mainc0c0c422010-11-05 15:23:36 -0700329</dl>
330 </div>
331</div>
332
333
334<div class="toggleable closed">
335 <a href="#" onclick="return toggleDiv(this)">
336 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
337ADT 0.9.9</a> <em>(September 2010)</em>
338 <div class="toggleme">
Dirk Dougherty9a97aaf2010-09-23 11:48:54 -0700339
340<dl>
341
342<dt>Dependencies:</dt>
343
344<dd><p>ADT 0.9.9 replaces ADT 0.9.8 and is designed for use with SDK Tools r7
345and later. ADT 0.9.9 includes the ADT 0.9.8 features as well as an important
346bugfix, so we recommend that you upgrade as soon as possible. If you haven't
347already installed SDK Tools r7 into your SDK, use the Android SDK Manager to do
348so.</p></dd>
349
350<dt>General notes:</dt>
351<dd>
352<ul>
353<li>Fixes a problem in project import, in which source files were deleted in some cases.</li>
354<li>Includes all other ADT 0.9.8 features (see below).</li>
355</ul>
356</dd>
357</dl>
358 </div>
359</div>
360
361<div class="toggleable closed">
362 <a href="#" onclick="return toggleDiv(this)">
363 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
Dirk Dougherty74a74d32010-09-09 18:40:13 -0700364ADT 0.9.8</a> <em>(September 2010)</em>
Dirk Dougherty022171b2010-07-30 19:24:17 -0700365 <div class="toggleme">
366
367
368</ul>
369</dd>
370
371<dl>
372
373<dt>Dependencies:</dt>
374
Dirk Dougherty9a97aaf2010-09-23 11:48:54 -0700375<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 -0700376
377<dt>General notes:</dt>
378<dd>
379<ul>
380<li>Adds a new Action, "Rename Application Package", to the Android Tools
381contextual menu. The Action does a full application package refactoring.
382<li>Adds support for library projects that don't have a source folder
383called <code>src/</code>. There is now support for any number of source folders,
384with no name restriction. They can even be in subfolder such as
385<code>src/java</code>. If you are already working with library projects created
Scott Main081127b2010-10-29 15:56:27 -0700386in ADT 0.9.7, see <a
Robert Lyc74a69a82011-01-04 22:48:02 -0800387href="{@docRoot}guide/developing/projects/index.html#libraryMigrating">Migrating
Dirk Dougherty022171b2010-07-30 19:24:17 -0700388library projects to ADT 0.9.8</a> for important information about moving
389to the new ADT environment.</li>
390<li>Adds support for library projects that depend on other library
391projects.</li>
392<li>Adds support for additional resource qualifiers:
393<code>car</code>/<code>desk</code>, <code>night</code>/<code>notnight</code> and
394<code>navexposed</code>/<code>navhidden</code>.</li>
395<li>Adds more device screen types in the layout editor. All screen
Scott Main081127b2010-10-29 15:56:27 -0700396resolution/density combinations listed in the <a
Dirk Dougherty022171b2010-07-30 19:24:17 -0700397href="{@docRoot}guide/practices/screens_support.html#range">Supporting
398Multiple Screens</a> are now available.</li>
399<li>Fixes problems with handling of library project names that
400contain characters that are incompatible with the Eclipse path variable.
401Now properly sets up the link between the main project and the library
402project.</li>
403</ul>
404</dd>
405</dl>
406 </div>
407</div>
408
409
410<div class="toggleable closed">
411 <a href="#" onclick="return toggleDiv(this)">
Dirk Dougherty0d1b0812010-04-07 17:05:16 -0700412 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
Dirk Doughertyc7c7afd2010-05-24 09:07:14 -0700413ADT 0.9.7</a> <em>(May 2010)</em>
Dirk Dougherty0d1b0812010-04-07 17:05:16 -0700414 <div class="toggleme">
415
416<dl>
417<dt>Library projects:</dt>
418<dd>
419<p>The ADT Plugin now supports the use of <em>library projects</em> during
420development, a capability that lets you store shared Android application
421code and resources in a separate development project. You can then reference the
422library project from other Android projects and, at build time, the tools
423compile the shared code and resources as part of the dependent applications.
424More information about this feature is available in the <a
Robert Lyc74a69a82011-01-04 22:48:02 -0800425href="{@docRoot}guide/developing/projects/index.html#LibraryProjects">Creating and Managing Projects</a> document. </p>
Scott Main081127b2010-10-29 15:56:27 -0700426<p>If you are not developing in Eclipse, <a
427href="tools-notes.html">SDK Tools r6</a> provides the equivalent library
Dirk Dougherty0d1b0812010-04-07 17:05:16 -0700428project support through the Ant build system.</p>
429</dd>
430</dl>
431 </div>
432</div>
433
Dirk Dougherty022171b2010-07-30 19:24:17 -0700434
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700435<div class="toggleable closed">
436 <a href="#" onclick="return toggleDiv(this)">
437 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
438ADT 0.9.6</a> <em>(March 2010)</em>
439 <div class="toggleme">
440
441<dl>
442<dt>Dependencies:</dt>
443
Scott Main081127b2010-10-29 15:56:27 -0700444<dd><p>ADT 0.9.6 is designed for use with SDK Tools r5 and later. Before
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700445updating to ADT 0.9.6, we highly recommend that you use the Android SDK and
446AVD Manager to install SDK Tools r5 into your SDK.</p></dd>
447
448<dt>General Notes:</dt>
449<dd>
450<ul>
451<li>Editing <code>default.properties</code> outside of Eclipse will now
452automatically update the project.</li>
453<li>Loads the SDK content only when a project requires it. This will make
454Eclipse use less resources when the SDK contains many versions of Android.</li>
455<li>Resolves potential deadlock between modal dialogs, when launching ADT the
456first time with the SDK Usage panel.</li>
457<li>Fixes issues with the New Project Wizard when selecting samples.</li>
458</ul>
459</dd>
460<dt>AVD/SDK Manager:</dt>
461<dd>
462<ul>
463<li>Adds support for platform samples components.</li>
464<li>Improves support for dependency between components.</li>
465<li>AVDs now sorted by API level.</li>
466<li>The AVD creation dialog now enforces a minimum SD card size of 9MB.</li>
467<li>Prevents deletion of running AVDs.</li>
468</ul>
469</dd>
470<dt>DDMS:</dt>
471<dd>
472<ul>
473<li>DDMS plug-in now contains the Allocation Tracker view.</li>
474<li>New action in the Logcat view: "Go to problem" lets you go directly from an
475exception trace output to the code.</li>
476</ul>
477</dd>
478<dt>Editors:</dt>
479<dd>
480<ul>
481<li>Explode mode in the Visual Layout Editor adds a margin to all layout objects
482so that it's easier to see embedded or empty layouts.</li>
483<li>Outline mode in the Visual Layout Editor draws layout outline to make it
484easier to see layout objects.</li>
485<li>Several fixes in the configuration selector of the Visual Layout
486Editor.</li>
487</ul>
488</dd>
489<dt>Application launching:</dt>
490<dd>
491<ul>
492<li>Applications launched from ADT now behave as if they were clicked from the
493Home screen.</li>
494<li>Fixes issue where add-on with no optional library would not show up as valid
495targets for application launches.</li>
496<li>Resolves possible crash when launching applications.</li>
497</ul>
498</dd>
499</dl>
500 </div>
501</div>
502
503<div class="toggleable closed">
504 <a href="#" onclick="return toggleDiv(this)">
505 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
506ADT 0.9.5</a> <em>(December 2009)</em>
507 <div class="toggleme">
508<dl>
509<dt>Dependencies:</dt>
510
511<dd><p>ADT 0.9.5 requires features provided in SDK Tools r4 or higher. If you install
512ADT 0.9.5, which is highly recommended, you should use the Android SDK and AVD
Scott Main92b03082010-12-14 17:55:27 -0800513Manager to download the latest SDK Tools into your SDK. For more information,
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700514see <a href="{@docRoot}sdk/adding-components.html">Adding SDK Components</a>.</p>
515</dd>
516
517<dt>General Notes:</dt>
518<dd>
519<ul>
520<li>AVD Launch dialog now shows scale value.</li>
521<li>Fixes potential NPE in SDK Manager on AVD launch, for older AVD with no skin name specified.</li>
522<li>Fixes XML validation issue in on older Java versions.</li>
523<li>.apk packaging now properly ignores vi swap files as well as hidden files.</li>
524</ul>
525</dd>
526</dl>
527 </div>
528</div>
529
530<div class="toggleable closed">
531 <a href="#" onclick="return toggleDiv(this)">
532 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
533ADT 0.9.4</a> <em>(October 2009)</em>
534 <div class="toggleme">
535<dl>
536<dt>Dependencies:</dt>
537
538<dd><p>ADT 0.9.4 requires features provided in SDK Tools r3 or higher. If you install
539ADT 0.9.4, which is highly recommended, you should use the Android SDK and AVD
540Manager to download the latest SDK Tools into your SDK. For more information,
541see <a href="{@docRoot}sdk/adding-components.html">Adding SDK Components</a>.</p>
542</dd>
543
544<dt>Project Creation Wizard:</dt>
545<dd>
546<ul>
547<li>New option to create a project from a sample by choosing it from a list.</li>
548</ul>
549</dd>
550
551<dt>Layout Editor:</dt>
552<dd>
553<ul>
554<li>Improved Configuration selector that lets you see how your layout will
555render on different devices. Default device descriptions include ADP1
556and Google Ion, while SDK add-ons can also provide new descriptions.
557A new UI allows you to create custom descriptions.</li>
558<li>Adds a new clipping toggle, to let you see your full layout even if it's
559bigger than the screen.</li>
560</ul>
561</dd>
562
563<dt>DDMS Integration:</dt>
564<dd>
565<ul>
566<li>Includes the improvements from the standlone DDMS, revision 3.</li>
567<li>Adds an option to open HPROF files into eclipse instead of writing them on
Scott Main081127b2010-10-29 15:56:27 -0700568disk. If a profiler such as MAT (<a href="http://eclipse.org/mat">Memory Analyzer
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700569Tool</a>) is installed, it'll open the file.</li>
570</ul>
571</dd>
572
573<dt>Android SDK and AVD Manager integration:</dt>
574<dd>
575<ul>
Scott Main081127b2010-10-29 15:56:27 -0700576<li>Includes the improvements from the standalone Android SDK and AVD Manager,
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700577revision 3.</li>
578</ul>
579</dd>
580</dl>
581 </div>
582</div>
583
Scott Main77847a32010-11-09 16:41:32 -0800584
585
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700586<h2 id="installing">Installing the ADT Plugin</h2>
587
588<p>The sections below provide instructions on how to download and install
589ADT into your Eclipse environment. If you encounter problems, see the <a
590href="#troubleshooting">Troubleshooting</a> section.</p>
591
Scott Main77847a32010-11-09 16:41:32 -0800592
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700593<h3 id="preparing">Preparing Your Development Computer</h3>
594
595<p>ADT is a plugin for the Eclipse IDE. Before you can install or use ADT,
596you must have a compatible version of Eclipse installed on your development
Robert Ly2a36cf42011-03-09 10:33:20 -0800597computer. Check the <a
598href="requirements.html">System Requirements</a> document for
599a list of Eclipse versions that are compatible with the Android SDK.</li></p>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700600
601<ul>
602<li>If Eclipse is already installed on your computer, make sure that it is
Robert Ly2a36cf42011-03-09 10:33:20 -0800603a version that is compatible with ADT and the Android SDK.
604
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700605<li>If you need to install or update Eclipse, you can download it from this
606location:
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700607
Dirk Dougherty22558d02009-12-10 16:25:06 -0800608<p style="margin-left:2em;"><a href=
609"http://www.eclipse.org/downloads/">http://www.eclipse.org/downloads/</a>
610</p>
611
Robert Ly2a36cf42011-03-09 10:33:20 -0800612<p>The "Eclipse Classic" version is recommended. Otherwise, a Java or RCP
Scott Main77847a32010-11-09 16:41:32 -0800613version of Eclipse is recommended.</p></li>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700614</ul>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700615
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700616<p>Additionally, before you can configure or use ADT, you must install the
617Android SDK starter package, as described in <a
Robert Lyef13d022010-07-12 14:32:22 -0700618href="installing.html#Installing">Downloading the SDK Starter Package</a>.
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700619Specifically, you need to install a compatible version of the Android SDK Tools
620and at least one development platform. To simplify ADT setup, we recommend
621installing the Android SDK prior to installing ADT. </p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700622
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700623<p>When your Eclipse and Android SDK environments are ready, continue with the
624ADT installation as described in the steps below. </p>
625
626<h3 id="downloading">Downloading the ADT Plugin</h3>
627
Robert Ly2a36cf42011-03-09 10:33:20 -0800628<p>Use the Update Manager feature of your Eclipse installation to install the latest
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700629revision of ADT on your development computer.<p>
630
631<p>Assuming that you have a compatible version of the Eclipse IDE installed, as
632described in <a href="#preparing">Preparing for Installation</a>, above, follow
633these steps to download the ADT plugin and install it in your Eclipse
Robert Ly2a36cf42011-03-09 10:33:20 -0800634environment.</p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700635
Robert Ly2a36cf42011-03-09 10:33:20 -0800636
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700637<ol>
Scott Main77847a32010-11-09 16:41:32 -0800638 <li>Start Eclipse, then select <strong>Help</strong> &gt; <strong>Install New
639Software...</strong>.</li>
640 <li>Click <strong>Add</strong>, in the top-right corner.</li>
641 <li>In the Add Repository dialog that appears, enter "ADT Plugin" for the <em>Name</em> and the
642following URL for the <em>Location</em>:
643 <pre>https://dl-ssl.google.com/android/eclipse/</pre>
Scott Main13244e52010-01-19 11:12:07 -0800644 <p>Note: If you have trouble acquiring the plugin, try using "http" in the Location URL,
Scott Main081127b2010-10-29 15:56:27 -0700645 instead of "https" (https is preferred for security reasons).</p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700646 <p>Click <strong>OK</strong>.</p></li>
Scott Main77847a32010-11-09 16:41:32 -0800647 <li>In the Available Software dialog, select
648the checkbox next to Developer Tools and click <strong>Next</strong>.</li>
649 <li>In the next window, you'll see a list of the tools to be downloaded. Click
650<strong>Next</strong>. </li>
651 <li>Read and accept the license agreements, then click <strong>Finish</strong>.</li>
652 <li>When the installation completes, restart Eclipse. </li>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700653</ol>
654
Scott Main369c1c12010-12-07 11:17:00 -0800655<h3 id="configuring">Configuring the ADT Plugin</h3>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700656
Dirk Dougherty4b4af992010-09-13 11:24:06 -0700657<p>Once you've successfully downloaded ADT as described above, the next step
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700658is to modify your ADT preferences in Eclipse to point to the Android SDK directory:</p>
659
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700660<ol>
661 <li>Select <strong>Window</strong> &gt; <strong>Preferences...</strong> to open the Preferences
662 panel (Mac OS X: <strong>Eclipse</strong> &gt; <strong>Preferences</strong>).</li>
663 <li>Select <strong>Android</strong> from the left panel. </li>
Scott Main081127b2010-10-29 15:56:27 -0700664 <li>For the <em>SDK Location</em> in the main panel, click <strong>Browse...</strong> and
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700665 locate your downloaded SDK directory. </li>
666 <li>Click <strong>Apply</strong>, then <strong>OK</strong>.</li>
667</ol>
668
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700669<p>Done! If you haven't encountered any problems, then the installation is
Scott Main081127b2010-10-29 15:56:27 -0700670complete. If you're installing the Android SDK for the first time, return to <a
671href="{@docRoot}sdk/installing.html#InstallingADT">Installing the SDK</a> to complete your setup.
672</p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700673
674
675<h3 id="troubleshooting">Troubleshooting ADT Installation</h3>
676
677<p> If you are having trouble downloading the ADT plugin after following the
678steps above, here are some suggestions: </p>
679
680<ul>
681 <li>If Eclipse can not find the remote update site containing the ADT plugin,
682try changing the remote site URL to use http, rather than https. That is, set
683the Location for the remote site to:
Scott Main081127b2010-10-29 15:56:27 -0700684<pre>http://dl-ssl.google.com/android/eclipse/</pre></li>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700685<li>If you are behind a firewall (such as a corporate firewall), make sure that
Scott Main77847a32010-11-09 16:41:32 -0800686you have properly configured your proxy settings in Eclipse. In Eclipse,
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700687you can configure proxy information from the main Eclipse menu in
688<strong>Window</strong> (on Mac OS X, <strong>Eclipse</strong>) &gt;
689<strong>Preferences</strong> &gt; <strong>General</strong> &gt; <strong>Network
690Connections</strong>.</li>
691</ul>
692
693<p> If you are still unable to use Eclipse to download the ADT plugin as a
694remote update site, you can download the ADT zip file to your local machine and
695manually install it:</p>
696
697<ol>
698 <li>Download the current ADT Plugin zip file from the table below (do not unpack it).
699
700 <table class="download">
701 <tr>
702 <th>Name</th>
703 <th>Package</th>
704 <th>Size</th>
705 <th>MD5 Checksum</th>
706 </tr>
707 <tr>
708 <td>ADT {@adtZipVersion}</td>
709 <td>
710 <a href="http://dl.google.com/android/{@adtZipDownload}">{@adtZipDownload}</a>
711 </td>
712 <td>{@adtZipBytes} bytes</td>
713 <td>{@adtZipChecksum}</td>
714 </tr>
715</table>
716</li>
717
718</li>
Scott Main081127b2010-10-29 15:56:27 -0700719 <li>Follow steps 1 and 2 in the <a href="#installing">default install
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700720 instructions</a> (above).</li>
721 <li>In the Add Site dialog, click <strong>Archive</strong>.</li>
722 <li>Browse and select the downloaded zip file.</li>
Scott Main77847a32010-11-09 16:41:32 -0800723 <li>Enter a name for the local update site (e.g.,
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700724 "Android Plugin") in the "Name" field.</li>
725 <li>Click <strong>OK</strong>.
Scott Main081127b2010-10-29 15:56:27 -0700726 <li>Follow the remaining procedures as listed for
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700727 <a href="#installing">default installation</a> above,
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700728 starting from step 4.</li>
729</ol>
730
731<p>To update your plugin once you've installed using the zip file, you will have
732to follow these steps again instead of the default update instructions.</p>
733
734<h4>Other install errors</h4>
735
Scott Main081127b2010-10-29 15:56:27 -0700736<p>Note that there are features of ADT that require some optional
737Eclipse components (for example, WST). If you encounter an error when
738installing ADT, your Eclipse installion might not include these components.
739For information about how to quickly add the necessary components to your
740Eclipse installation, see the troubleshooting topic
741<a href="{@docRoot}resources/faq/troubleshooting.html#installeclipsecomponents">ADT
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700742Installation Error: "requires plug-in org.eclipse.wst.sse.ui"</a>.</p>
743
744<h4>For Linux users</h4>
Scott Main081127b2010-10-29 15:56:27 -0700745<p>If you encounter this error when installing the ADT Plugin for Eclipse:
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700746<pre>
747An error occurred during provisioning.
748Cannot connect to keystore.
749JKS</pre>
750<p>
751...then your development machine lacks a suitable Java VM. Installing Sun
752Java 6 will resolve this issue and you can then reinstall the ADT
753Plugin.</p>
754
755
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700756<h2 id="updating">Updating the ADT Plugin</h2>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700757
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700758<p>From time to time, a new revision of the ADT Plugin becomes available, with
759new features and bug fixes. Generally, when a new revision of ADT is available,
760you should update to it as soon as convenient. </p>
761
762<p>In some cases, a new revision of ADT will have a dependency on a specific
763revision of the Android SDK Tools. If such dependencies exist, you will need to
764update the SDK Tools component of the SDK after installing the new revision of
765ADT. To update the SDK Tools component, use the Android SDK and AVD Manager, as
766described in <a href="adding-components.html">Adding SDK Components</a>.</p>
767
768<p>To learn about new features of each ADT revision and also any dependencies on
769the SDK Tools, see the listings in the <a href="#notes">Revisions</a>
Scott Main081127b2010-10-29 15:56:27 -0700770section. To determine the version currently installed, open the
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700771Eclipse Installed Software window using <strong>Help</strong>
Scott Main081127b2010-10-29 15:56:27 -0700772&gt; <strong>Software Updates</strong> and refer to the version listed for
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700773"Android Development Tools".</p>
774
Scott Main081127b2010-10-29 15:56:27 -0700775<p>Follow the steps below to check whether an update is available and, if so,
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700776to install it. </p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700777
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700778<ol>
Scott Main77847a32010-11-09 16:41:32 -0800779 <li>Select <strong>Help</strong> &gt; <strong>Check for Updates</strong>.
780 <p>If there are no updates available, a dialog will say so and you're done.</p></li>
781 <li>If there are updates available, select Android DDMS, Android Development Tools,
782 and Android Hierarchy Viewer, then click <strong>Next</strong>.</li>
783 <li>In the Update Details dialog, click <strong>Next</strong>.</li>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700784 <li>Read and accept the license agreement and then click <strong>Finish</strong>.
Scott Main081127b2010-10-29 15:56:27 -0700785 This will download and install the latest version of Android DDMS and
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700786 Android Development Tools.</li>
787 <li>Restart Eclipse.</li>
788</ol>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700789
790
Scott Main090a3dc2010-12-07 10:38:55 -0800791<p>If you encounter problems during the update, remove the existing ADT plugin from Eclipse, then
792perform a fresh installation, using the instructions for <a href="#installing">Installing the ADT
793Plugin</a>.</p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700794