blob: 0bb830c071071da92b5439c6ed3aae65860babf4 [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
Dirk Dougherty591a5f82011-01-27 10:00:48 -08003adt.zip.download=ADT_9.0.0.zip
Scott Main9e6c0682011-01-26 16:23:37 -08004adt.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" />
Robert Lyedc2aac2011-01-14 16:25:09 -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>
Robert Lyedc2aac2011-01-14 16:25:09 -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 Main60c4e032011-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
Robert Lyc74a69a82011-01-04 22:48:02 -0800336href="{@docRoot}guide/developing/projects/index.html#libraryMigrating">Migrating
Dirk Dougherty022171b2010-07-30 19:24:17 -0700337library 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
Robert Lyc74a69a82011-01-04 22:48:02 -0800374href="{@docRoot}guide/developing/projects/index.html#LibraryProjects">Creating and Managing Projects</a> document. </p>
Scott Main081127b2010-10-29 15:56:27 -0700375<p>If you are not developing in Eclipse, <a
376href="tools-notes.html">SDK Tools r6</a> provides the equivalent library
Dirk Dougherty0d1b0812010-04-07 17:05:16 -0700377project support through the Ant build system.</p>
378</dd>
379</dl>
380 </div>
381</div>
382
Dirk Dougherty022171b2010-07-30 19:24:17 -0700383
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700384<div class="toggleable closed">
385 <a href="#" onclick="return toggleDiv(this)">
386 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
387ADT 0.9.6</a> <em>(March 2010)</em>
388 <div class="toggleme">
389
390<dl>
391<dt>Dependencies:</dt>
392
Scott Main081127b2010-10-29 15:56:27 -0700393<dd><p>ADT 0.9.6 is designed for use with SDK Tools r5 and later. Before
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700394updating to ADT 0.9.6, we highly recommend that you use the Android SDK and
395AVD Manager to install SDK Tools r5 into your SDK.</p></dd>
396
397<dt>General Notes:</dt>
398<dd>
399<ul>
400<li>Editing <code>default.properties</code> outside of Eclipse will now
401automatically update the project.</li>
402<li>Loads the SDK content only when a project requires it. This will make
403Eclipse use less resources when the SDK contains many versions of Android.</li>
404<li>Resolves potential deadlock between modal dialogs, when launching ADT the
405first time with the SDK Usage panel.</li>
406<li>Fixes issues with the New Project Wizard when selecting samples.</li>
407</ul>
408</dd>
409<dt>AVD/SDK Manager:</dt>
410<dd>
411<ul>
412<li>Adds support for platform samples components.</li>
413<li>Improves support for dependency between components.</li>
414<li>AVDs now sorted by API level.</li>
415<li>The AVD creation dialog now enforces a minimum SD card size of 9MB.</li>
416<li>Prevents deletion of running AVDs.</li>
417</ul>
418</dd>
419<dt>DDMS:</dt>
420<dd>
421<ul>
422<li>DDMS plug-in now contains the Allocation Tracker view.</li>
423<li>New action in the Logcat view: "Go to problem" lets you go directly from an
424exception trace output to the code.</li>
425</ul>
426</dd>
427<dt>Editors:</dt>
428<dd>
429<ul>
430<li>Explode mode in the Visual Layout Editor adds a margin to all layout objects
431so that it's easier to see embedded or empty layouts.</li>
432<li>Outline mode in the Visual Layout Editor draws layout outline to make it
433easier to see layout objects.</li>
434<li>Several fixes in the configuration selector of the Visual Layout
435Editor.</li>
436</ul>
437</dd>
438<dt>Application launching:</dt>
439<dd>
440<ul>
441<li>Applications launched from ADT now behave as if they were clicked from the
442Home screen.</li>
443<li>Fixes issue where add-on with no optional library would not show up as valid
444targets for application launches.</li>
445<li>Resolves possible crash when launching applications.</li>
446</ul>
447</dd>
448</dl>
449 </div>
450</div>
451
452<div class="toggleable closed">
453 <a href="#" onclick="return toggleDiv(this)">
454 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
455ADT 0.9.5</a> <em>(December 2009)</em>
456 <div class="toggleme">
457<dl>
458<dt>Dependencies:</dt>
459
460<dd><p>ADT 0.9.5 requires features provided in SDK Tools r4 or higher. If you install
461ADT 0.9.5, which is highly recommended, you should use the Android SDK and AVD
Scott Main92b03082010-12-14 17:55:27 -0800462Manager to download the latest SDK Tools into your SDK. For more information,
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700463see <a href="{@docRoot}sdk/adding-components.html">Adding SDK Components</a>.</p>
464</dd>
465
466<dt>General Notes:</dt>
467<dd>
468<ul>
469<li>AVD Launch dialog now shows scale value.</li>
470<li>Fixes potential NPE in SDK Manager on AVD launch, for older AVD with no skin name specified.</li>
471<li>Fixes XML validation issue in on older Java versions.</li>
472<li>.apk packaging now properly ignores vi swap files as well as hidden files.</li>
473</ul>
474</dd>
475</dl>
476 </div>
477</div>
478
479<div class="toggleable closed">
480 <a href="#" onclick="return toggleDiv(this)">
481 <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" />
482ADT 0.9.4</a> <em>(October 2009)</em>
483 <div class="toggleme">
484<dl>
485<dt>Dependencies:</dt>
486
487<dd><p>ADT 0.9.4 requires features provided in SDK Tools r3 or higher. If you install
488ADT 0.9.4, which is highly recommended, you should use the Android SDK and AVD
489Manager to download the latest SDK Tools into your SDK. For more information,
490see <a href="{@docRoot}sdk/adding-components.html">Adding SDK Components</a>.</p>
491</dd>
492
493<dt>Project Creation Wizard:</dt>
494<dd>
495<ul>
496<li>New option to create a project from a sample by choosing it from a list.</li>
497</ul>
498</dd>
499
500<dt>Layout Editor:</dt>
501<dd>
502<ul>
503<li>Improved Configuration selector that lets you see how your layout will
504render on different devices. Default device descriptions include ADP1
505and Google Ion, while SDK add-ons can also provide new descriptions.
506A new UI allows you to create custom descriptions.</li>
507<li>Adds a new clipping toggle, to let you see your full layout even if it's
508bigger than the screen.</li>
509</ul>
510</dd>
511
512<dt>DDMS Integration:</dt>
513<dd>
514<ul>
515<li>Includes the improvements from the standlone DDMS, revision 3.</li>
516<li>Adds an option to open HPROF files into eclipse instead of writing them on
Scott Main081127b2010-10-29 15:56:27 -0700517disk. If a profiler such as MAT (<a href="http://eclipse.org/mat">Memory Analyzer
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700518Tool</a>) is installed, it'll open the file.</li>
519</ul>
520</dd>
521
522<dt>Android SDK and AVD Manager integration:</dt>
523<dd>
524<ul>
Scott Main081127b2010-10-29 15:56:27 -0700525<li>Includes the improvements from the standalone Android SDK and AVD Manager,
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700526revision 3.</li>
527</ul>
528</dd>
529</dl>
530 </div>
531</div>
532
Scott Main77847a32010-11-09 16:41:32 -0800533
534
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700535<h2 id="installing">Installing the ADT Plugin</h2>
536
537<p>The sections below provide instructions on how to download and install
538ADT into your Eclipse environment. If you encounter problems, see the <a
539href="#troubleshooting">Troubleshooting</a> section.</p>
540
Scott Main77847a32010-11-09 16:41:32 -0800541
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700542<h3 id="preparing">Preparing Your Development Computer</h3>
543
544<p>ADT is a plugin for the Eclipse IDE. Before you can install or use ADT,
545you must have a compatible version of Eclipse installed on your development
546computer. </p>
547
548<ul>
549<li>If Eclipse is already installed on your computer, make sure that it is
550a version that is compatible with ADT and the Android SDK. Check the <a
551href="requirements.html">System Requirements</a> document for
552a list of Eclipse versions that are compatible with the Android SDK.</li>
553<li>If you need to install or update Eclipse, you can download it from this
554location:
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700555
Dirk Dougherty22558d02009-12-10 16:25:06 -0800556<p style="margin-left:2em;"><a href=
557"http://www.eclipse.org/downloads/">http://www.eclipse.org/downloads/</a>
558</p>
559
Scott Main77847a32010-11-09 16:41:32 -0800560<p>For Eclipse 3.5 or newer, the "Eclipse Classic" version is recommended. Otherwise, a Java or RCP
561version of Eclipse is recommended.</p></li>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700562</ul>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700563
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700564<p>Additionally, before you can configure or use ADT, you must install the
565Android SDK starter package, as described in <a
Robert Lyef13d022010-07-12 14:32:22 -0700566href="installing.html#Installing">Downloading the SDK Starter Package</a>.
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700567Specifically, you need to install a compatible version of the Android SDK Tools
568and at least one development platform. To simplify ADT setup, we recommend
569installing the Android SDK prior to installing ADT. </p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700570
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700571<p>When your Eclipse and Android SDK environments are ready, continue with the
572ADT installation as described in the steps below. </p>
573
574<h3 id="downloading">Downloading the ADT Plugin</h3>
575
576<p>Use Update Manager feature of your Eclipse installation to install the latest
577revision of ADT on your development computer.<p>
578
579<p>Assuming that you have a compatible version of the Eclipse IDE installed, as
580described in <a href="#preparing">Preparing for Installation</a>, above, follow
581these steps to download the ADT plugin and install it in your Eclipse
582environment. </p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700583
584<table style="font-size:100%">
Scott Main77847a32010-11-09 16:41:32 -0800585<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 -0700586<tr>
587<td width="45%">
Scott Main77847a32010-11-09 16:41:32 -0800588<!-- 3.5+ steps -->
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700589<ol>
Scott Main77847a32010-11-09 16:41:32 -0800590 <li>Start Eclipse, then select <strong>Help</strong> &gt; <strong>Install New
591Software...</strong>.</li>
592 <li>Click <strong>Add</strong>, in the top-right corner.</li>
593 <li>In the Add Repository dialog that appears, enter "ADT Plugin" for the <em>Name</em> and the
594following URL for the <em>Location</em>:
595 <pre>https://dl-ssl.google.com/android/eclipse/</pre>
Scott Main13244e52010-01-19 11:12:07 -0800596 <p>Note: If you have trouble acquiring the plugin, try using "http" in the Location URL,
Scott Main081127b2010-10-29 15:56:27 -0700597 instead of "https" (https is preferred for security reasons).</p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700598 <p>Click <strong>OK</strong>.</p></li>
Scott Main77847a32010-11-09 16:41:32 -0800599 <li>In the Available Software dialog, select
600the checkbox next to Developer Tools and click <strong>Next</strong>.</li>
601 <li>In the next window, you'll see a list of the tools to be downloaded. Click
602<strong>Next</strong>. </li>
603 <li>Read and accept the license agreements, then click <strong>Finish</strong>.</li>
604 <li>When the installation completes, restart Eclipse. </li>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700605</ol>
606
607</td>
Scott Main77847a32010-11-09 16:41:32 -0800608<td width="50%">
609
610<!-- 3.4 steps -->
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700611<ol>
Scott Main77847a32010-11-09 16:41:32 -0800612 <li>Start Eclipse, then select <strong>Help</strong> &gt; <strong>Software Updates...</strong>.
613In the dialog that appears, click the <strong>Available Software</strong> tab.</li>
614 <li>Click <strong>Add Site</strong>.</li>
615 <li>In the Add Site dialog that appears, enter this URL in the "Location" field:
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700616 <pre>https://dl-ssl.google.com/android/eclipse/</pre>
Scott Main13244e52010-01-19 11:12:07 -0800617 <p>Note: If you have trouble acquiring the plugin, you can try
Scott Main081127b2010-10-29 15:56:27 -0700618 using "http" in the URL, instead of "https" (https is preferred for
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700619 security reasons).</p>
620 <p>Click <strong>OK</strong>.</p>
621 </li>
Scott Main77847a32010-11-09 16:41:32 -0800622 <li>Back in the Available Software view, you should see the plugin listed by the URL,
623 with "Developer Tools" nested within it. Select the checkbox next to Developer Tools,
624 which will automatically select the nested tools. Then click
625 <strong>Install</strong></li>
626 <li>On the subsequent Install window, all of the included tools
627 should be checked. Click <strong>Next</strong>. </li>
628 <li>Read and accept the license agreements, then click <strong>Finish</strong>.</li>
629 <li>When the installation completes, restart Eclipse. </li>
Scott Main081127b2010-10-29 15:56:27 -0700630
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700631</ol>
632</td>
633</tr>
634</table>
635
Scott Main369c1c12010-12-07 11:17:00 -0800636<h3 id="configuring">Configuring the ADT Plugin</h3>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700637
Dirk Dougherty4b4af992010-09-13 11:24:06 -0700638<p>Once you've successfully downloaded ADT as described above, the next step
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700639is to modify your ADT preferences in Eclipse to point to the Android SDK directory:</p>
640
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700641<ol>
642 <li>Select <strong>Window</strong> &gt; <strong>Preferences...</strong> to open the Preferences
643 panel (Mac OS X: <strong>Eclipse</strong> &gt; <strong>Preferences</strong>).</li>
644 <li>Select <strong>Android</strong> from the left panel. </li>
Scott Main081127b2010-10-29 15:56:27 -0700645 <li>For the <em>SDK Location</em> in the main panel, click <strong>Browse...</strong> and
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700646 locate your downloaded SDK directory. </li>
647 <li>Click <strong>Apply</strong>, then <strong>OK</strong>.</li>
648</ol>
649
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700650<p>Done! If you haven't encountered any problems, then the installation is
Scott Main081127b2010-10-29 15:56:27 -0700651complete. If you're installing the Android SDK for the first time, return to <a
652href="{@docRoot}sdk/installing.html#InstallingADT">Installing the SDK</a> to complete your setup.
653</p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700654
655
656<h3 id="troubleshooting">Troubleshooting ADT Installation</h3>
657
658<p> If you are having trouble downloading the ADT plugin after following the
659steps above, here are some suggestions: </p>
660
661<ul>
662 <li>If Eclipse can not find the remote update site containing the ADT plugin,
663try changing the remote site URL to use http, rather than https. That is, set
664the Location for the remote site to:
Scott Main081127b2010-10-29 15:56:27 -0700665<pre>http://dl-ssl.google.com/android/eclipse/</pre></li>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700666<li>If you are behind a firewall (such as a corporate firewall), make sure that
Scott Main77847a32010-11-09 16:41:32 -0800667you have properly configured your proxy settings in Eclipse. In Eclipse,
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700668you can configure proxy information from the main Eclipse menu in
669<strong>Window</strong> (on Mac OS X, <strong>Eclipse</strong>) &gt;
670<strong>Preferences</strong> &gt; <strong>General</strong> &gt; <strong>Network
671Connections</strong>.</li>
672</ul>
673
674<p> If you are still unable to use Eclipse to download the ADT plugin as a
675remote update site, you can download the ADT zip file to your local machine and
676manually install it:</p>
677
678<ol>
679 <li>Download the current ADT Plugin zip file from the table below (do not unpack it).
680
681 <table class="download">
682 <tr>
683 <th>Name</th>
684 <th>Package</th>
685 <th>Size</th>
686 <th>MD5 Checksum</th>
687 </tr>
688 <tr>
689 <td>ADT {@adtZipVersion}</td>
690 <td>
691 <a href="http://dl.google.com/android/{@adtZipDownload}">{@adtZipDownload}</a>
692 </td>
693 <td>{@adtZipBytes} bytes</td>
694 <td>{@adtZipChecksum}</td>
695 </tr>
696</table>
697</li>
698
699</li>
Scott Main081127b2010-10-29 15:56:27 -0700700 <li>Follow steps 1 and 2 in the <a href="#installing">default install
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700701 instructions</a> (above).</li>
702 <li>In the Add Site dialog, click <strong>Archive</strong>.</li>
703 <li>Browse and select the downloaded zip file.</li>
Scott Main77847a32010-11-09 16:41:32 -0800704 <li>Enter a name for the local update site (e.g.,
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700705 "Android Plugin") in the "Name" field.</li>
706 <li>Click <strong>OK</strong>.
Scott Main081127b2010-10-29 15:56:27 -0700707 <li>Follow the remaining procedures as listed for
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700708 <a href="#installing">default installation</a> above,
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700709 starting from step 4.</li>
710</ol>
711
712<p>To update your plugin once you've installed using the zip file, you will have
713to follow these steps again instead of the default update instructions.</p>
714
715<h4>Other install errors</h4>
716
Scott Main081127b2010-10-29 15:56:27 -0700717<p>Note that there are features of ADT that require some optional
718Eclipse components (for example, WST). If you encounter an error when
719installing ADT, your Eclipse installion might not include these components.
720For information about how to quickly add the necessary components to your
721Eclipse installation, see the troubleshooting topic
722<a href="{@docRoot}resources/faq/troubleshooting.html#installeclipsecomponents">ADT
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700723Installation Error: "requires plug-in org.eclipse.wst.sse.ui"</a>.</p>
724
725<h4>For Linux users</h4>
Scott Main081127b2010-10-29 15:56:27 -0700726<p>If you encounter this error when installing the ADT Plugin for Eclipse:
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700727<pre>
728An error occurred during provisioning.
729Cannot connect to keystore.
730JKS</pre>
731<p>
732...then your development machine lacks a suitable Java VM. Installing Sun
733Java 6 will resolve this issue and you can then reinstall the ADT
734Plugin.</p>
735
736
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700737<h2 id="updating">Updating the ADT Plugin</h2>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700738
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700739<p>From time to time, a new revision of the ADT Plugin becomes available, with
740new features and bug fixes. Generally, when a new revision of ADT is available,
741you should update to it as soon as convenient. </p>
742
743<p>In some cases, a new revision of ADT will have a dependency on a specific
744revision of the Android SDK Tools. If such dependencies exist, you will need to
745update the SDK Tools component of the SDK after installing the new revision of
746ADT. To update the SDK Tools component, use the Android SDK and AVD Manager, as
747described in <a href="adding-components.html">Adding SDK Components</a>.</p>
748
749<p>To learn about new features of each ADT revision and also any dependencies on
750the SDK Tools, see the listings in the <a href="#notes">Revisions</a>
Scott Main081127b2010-10-29 15:56:27 -0700751section. To determine the version currently installed, open the
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700752Eclipse Installed Software window using <strong>Help</strong>
Scott Main081127b2010-10-29 15:56:27 -0700753&gt; <strong>Software Updates</strong> and refer to the version listed for
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700754"Android Development Tools".</p>
755
Scott Main081127b2010-10-29 15:56:27 -0700756<p>Follow the steps below to check whether an update is available and, if so,
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700757to install it. </p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700758
759<table style="font-size:100%">
Scott Main77847a32010-11-09 16:41:32 -0800760<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 -0700761<tr>
Scott Main77847a32010-11-09 16:41:32 -0800762<td>
763<!-- 3.5+ steps -->
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700764<ol>
Scott Main77847a32010-11-09 16:41:32 -0800765 <li>Select <strong>Help</strong> &gt; <strong>Check for Updates</strong>.
766 <p>If there are no updates available, a dialog will say so and you're done.</p></li>
767 <li>If there are updates available, select Android DDMS, Android Development Tools,
768 and Android Hierarchy Viewer, then click <strong>Next</strong>.</li>
769 <li>In the Update Details dialog, click <strong>Next</strong>.</li>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700770 <li>Read and accept the license agreement and then click <strong>Finish</strong>.
Scott Main081127b2010-10-29 15:56:27 -0700771 This will download and install the latest version of Android DDMS and
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700772 Android Development Tools.</li>
773 <li>Restart Eclipse.</li>
774</ol>
775</td>
Scott Main77847a32010-11-09 16:41:32 -0800776
777<td width="50%">
778<!-- 3.4 steps -->
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700779<ol>
Scott Main77847a32010-11-09 16:41:32 -0800780 <li>Select <strong>Help</strong> &gt; <strong>Software Updates</strong>.</li>
781 <li>Select the <strong>Available Software</strong> tab.</li>
782 <li>If there are updates available, select Android DDMS, Android Development Tools,
783 and Android Hierarchy Viewer, then click <strong>Update</strong>.</li>
784 <li>In the resulting Available Updates dialog, ensure that each of the listed tools
785 are selected, then click <strong>Next</strong>.</li>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700786 <li>Read and accept the license agreement and then click <strong>Finish</strong>.
Scott Main081127b2010-10-29 15:56:27 -0700787 This will download and install the latest version of Android DDMS and
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700788 Android Development Tools.</li>
789 <li>Restart Eclipse.</li>
790</ol>
791</td>
792</tr>
793</table>
794
795
Scott Main090a3dc2010-12-07 10:38:55 -0800796<p>If you encounter problems during the update, remove the existing ADT plugin from Eclipse, then
797perform a fresh installation, using the instructions for <a href="#installing">Installing the ADT
798Plugin</a>.</p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700799