Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 1 | page.title=ADT Plugin for Eclipse |
Scott Main | 9e6c068 | 2011-01-26 16:23:37 -0800 | [diff] [blame] | 2 | adt.zip.version=9.0.0 |
Dirk Dougherty | 591a5f8 | 2011-01-27 10:00:48 -0800 | [diff] [blame] | 3 | adt.zip.download=ADT_9.0.0.zip |
Scott Main | 9e6c068 | 2011-01-26 16:23:37 -0800 | [diff] [blame] | 4 | adt.zip.bytes=4433536 |
| 5 | adt.zip.checksum=bc2757f2a5a11d131390ce547bae154b |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 6 | |
| 7 | @jd:body |
| 8 | |
| 9 | <div id="qv-wrapper"> |
| 10 | <div id="qv"> |
| 11 | |
| 12 | <h2>In this document</h2> |
| 13 | <ol> |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 14 | <li><a href="#notes">Revisions</a></li> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 15 | <li><a href="#installing">Installing the ADT Plugin</a> |
| 16 | <ol> |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 17 | <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 Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 20 | <li><a href="#troubleshooting">Troubleshooting</a></li> |
| 21 | </ol> |
| 22 | </li> |
| 23 | <li><a href="#updating">Updating the ADT Plugin</a></li> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 24 | </ol> |
| 25 | |
| 26 | </div> |
| 27 | </div> |
| 28 | |
Scott Main | 081127b | 2010-10-29 15:56:27 -0700 | [diff] [blame] | 29 | <p>Android Development Tools (ADT) is a plugin for the Eclipse IDE |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 30 | that is designed to give you a powerful, integrated environment in which |
Robert Ly | ccea5d2 | 2011-02-11 14:59:36 -0800 | [diff] [blame^] | 31 | to build Android applications.</p> |
Dirk Dougherty | bf15ce6 | 2009-10-23 19:17:12 -0700 | [diff] [blame] | 32 | |
Scott Main | 13244e5 | 2010-01-19 11:12:07 -0800 | [diff] [blame] | 33 | <p>ADT extends the capabilities of Eclipse to let you quickly set up new Android |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 34 | projects, create an application UI, add components based on the Android |
Dirk Dougherty | bf15ce6 | 2009-10-23 19:17:12 -0700 | [diff] [blame] | 35 | Framework API, debug your applications using the Android SDK tools, and even |
| 36 | export signed (or unsigned) APKs in order to distribute your application.</p> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 37 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 38 | <p>Developing in Eclipse with ADT is highly recommended and is the fastest way |
| 39 | to get started. With the guided project setup it provides, as well as tools |
| 40 | integration, custom XML editors, and debug ouput pane, ADT gives you an |
| 41 | incredible boost in developing Android applications. </p> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 42 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 43 | <p>This document provides step-by-step instructions on how to download the ADT |
| 44 | plugin and install it into your Eclipse development environment. Note that |
| 45 | before you can install or use ADT, you must have compatible versions of both the |
| 46 | Eclipse IDE and the Android SDK installed. For details, make sure to read <a |
| 47 | href="#installing">Installing the ADT Plugin</a>, below. </p> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 48 | |
Scott Main | 081127b | 2010-10-29 15:56:27 -0700 | [diff] [blame] | 49 | <p>If you are already using ADT, this document also provides instructions on |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 50 | how to update ADT to the latest version or how to uninstall it, if necessary. |
| 51 | </p> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 52 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 53 | <h2 id="notes">Revisions</h2> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 54 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 55 | <p>The sections below provide notes about successive releases of |
| 56 | the ADT Plugin, as denoted by revision number. </p> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 57 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 58 | <script type="text/javascript"> |
| 59 | function 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 { |
| 77 | padding: .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 Dougherty | 0d1b081 | 2010-04-07 17:05:16 -0700 | [diff] [blame] | 86 | .toggleme a { |
| 87 | text-decoration:underline; |
| 88 | } |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 89 | .toggleable.closed .toggleme { |
| 90 | display:none; |
| 91 | } |
| 92 | #jd-content .toggle-img { |
| 93 | margin:0; |
| 94 | } |
| 95 | </style> |
| 96 | |
Dirk Dougherty | 022171b | 2010-07-30 19:24:17 -0700 | [diff] [blame] | 97 | |
Robert Ly | ccea5d2 | 2011-02-11 14:59:36 -0800 | [diff] [blame^] | 98 | |
Dirk Dougherty | 0d1b081 | 2010-04-07 17:05:16 -0700 | [diff] [blame] | 99 | <div class="toggleable opened"> |
| 100 | <a href="#" onclick="return toggleDiv(this)"> |
Scott Main | 92b0308 | 2010-12-14 17:55:27 -0800 | [diff] [blame] | 101 | <img src="{@docRoot}assets/images/triangle-opened.png" class="toggle-img" height="9px" |
| 102 | width="9px" /> |
Robert Ly | ccea5d2 | 2011-02-11 14:59:36 -0800 | [diff] [blame^] | 103 | ADT 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 |
| 111 | already installed SDK Tools r10 into your SDK, use the Android SDK and AVD Manager to do |
| 112 | so.</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> |
| 119 | <li>A Binary XML editor has been added.</li> |
| 120 | <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 |
| 122 | and allows you jump to specific items such as string translations or <code>onClick</code> handlers.</li> |
| 123 | <li>The Resource Chooser can create items such as dimensions, integers, ids, and booleans.</li> |
| 124 | <li>Improvements to the Visual Layout Editor: |
| 125 | <ul> |
| 126 | <li>A new Palette with categories and rendering previews |
| 127 | (<a href="http://tools.android.com/recent/newpalette">details</a>).</li> |
| 128 | <li>A Layout action bar.</li> |
| 129 | <li>When the Android 3.0 rendering library is selected, layouts render more like they do on devices. |
| 130 | This includes rendering of status and title bars to more accurately reflect the actual |
| 131 | screen space available to applications.</li> |
| 132 | <li>Zoom improvements such as fit to view, persistent scale, and keyboard access. |
| 133 | (<a href="http://tools.android.com/recent/zoomimprovements">details</a>).</li> |
| 134 | <li>Further improvements to <code><merge></code> layouts, as well as layouts with gesture overlays.</li> |
| 135 | <li>Improved rendering error diagnostics.</li> |
| 136 | </ul> |
| 137 | </li> |
| 138 | </ul> |
| 139 | </dd> |
| 140 | </dl> |
| 141 | </div> |
| 142 | </div> |
| 143 | |
| 144 | <div class="toggleable closed"> |
| 145 | <a href="#" onclick="return toggleDiv(this)"> |
| 146 | <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" |
| 147 | width="9px" /> |
Robert Ly | edc2aac | 2011-01-14 16:25:09 -0800 | [diff] [blame] | 148 | ADT 9.0.0</a> <em>(January 2011)</em> |
| 149 | <div class="toggleme"> |
| 150 | |
| 151 | <dl> |
| 152 | |
| 153 | <dt>Dependencies:</dt> |
| 154 | |
| 155 | <dd>ADT 9.0.0 is designed for use with SDK Tools r9. If you haven't |
| 156 | already installed SDK Tools r9 into your SDK, use the Android SDK and AVD Manager to do |
| 157 | so.</dd> |
| 158 | |
| 159 | <dt>General notes:</dt> |
| 160 | <dd> |
| 161 | <ul> |
| 162 | <li>"Go To Declaration" hyperlink support: You can jump directly from code references (such as |
| 163 | <code>R.id.main</code>) to the corresponding XML declaration, or from XML attributes (such as |
| 164 | <code>@string</code>) to the corresponding resource definition, or from manifest XML |
| 165 | registrations to activities and services.</li> |
| 166 | <li>Improvements were made to name refactoring.</li> |
| 167 | <li>AVDs now automatically save their state, so they can restart almost instantly. You can enable this feature when |
| 168 | creating an AVD or by editing an AVD with the AVD Manager.</li> |
| 169 | <li>Improvements to the Visual Layout Editor: |
| 170 | <ul> |
| 171 | <li>Support for rendering targets: You can now choose an arbitrary Android platform to |
| 172 | render the current page, regardless of the project's minimum platform. This makes it |
| 173 | easy to verify the layout and appearance of your activity on different versions of |
| 174 | the platform. |
| 175 | </li> |
| 176 | <li>Improved support for empty and nested layouts: Dragging items over nested and |
| 177 | invisible layouts automatically enlarges and highlights these layouts, so that they |
| 178 | can receive drops. |
| 179 | </li> |
| 180 | <li>XML formatting improvements: The editor generates cleaner XML and you can now enable |
| 181 | XML auto-formatting in the <strong>Preferences</strong> menu.</li> |
| 182 | <li>Improved Outline labels: The Outline tab now displays additional information about each |
| 183 | View. Textual Views display a snippet of the actual text. Views with a source |
| 184 | (such as ImageView) displays the resource name. Included Views display the name of the View. |
| 185 | </li> |
| 186 | <li>When you right click a View in the Layout Editor, |
| 187 | the context menu now contains <strong>Edit ID...</strong> and <strong>Edit Text...</strong> |
| 188 | items. The <strong>Properties...</strong> context menus now list all of the properties and |
| 189 | provide a way to edit them |
| 190 | (<a href="http://tools.android.com/recent/editidtextandotherpropertiesviamenu">Details</a>). |
| 191 | </li> |
| 192 | <li>The layout editor now properly handles |
| 193 | <a href="{@docRoot}guide/topics/resources/layout-resource.html#include-element"><code><include></code></a> |
| 194 | and <a href="{@docRoot}guide/topics/resources/layout-resource.html#merge-element"><code><merge></code></a> |
| 195 | tags (<a href="http://tools.android.com/recent/supportforincludeandmerge">Details</a>).</li> |
| 196 | <li>"Extract as Include" refactoring: The Layout Editor has a new refactoring that allows |
| 197 | you to select one or more views in a layout, and extract it into a separate layout |
| 198 | (<a href="http://tools.android.com/recent/extractasincluderefactoring">Details</a>).</li> |
| 199 | <li>Improved diagnostics for class loading and rendering errors: Class loading and rendering |
| 200 | error messages are more useful and provide better information about the root cause of the |
| 201 | error.</li> |
| 202 | <li>Improved error handling to prevent drag and reordering operations from adding children |
| 203 | into an {@link android.widget.AdapterView}.</li> |
| 204 | <li>Outline reordering: Reordering your views in the Outline tab is much easier |
| 205 | (<a href="http://tools.android.com/recent/outlineimprovements">Details</a>).</li> |
| 206 | <li>Fix for keybinding bug where keyboard shortcuts did not work (Issues |
| 207 | <a href="http://code.google.com/p/android/issues/detail?id=13231">13231</a> and |
| 208 | <a href="http://code.google.com/p/android/issues/detail?id=13134">13134</a>).</li> |
| 209 | <li>Fix for problems with Custom layout attribute menu (Issue |
| 210 | <a href="http://code.google.com/p/android/issues/detail?id=13134">13134</a>).</li> |
| 211 | <li>Automatic configuration for various view types: Certain views have properties configured |
| 212 | by default. For example, the width of an {@link android.widget.EditText} object is set to |
| 213 | <code>match_parent</code> when added to a vertical {@link android.widget.LinearLayout} |
| 214 | or a default image is added to an {@link android.widget.ImageButton}.</li> |
| 215 | <li>Previews during dragging: Dragging from the palette or dragging within the layout editor |
| 216 | now shows live previews of the dragged item.</li> |
| 217 | <li>Navigation improvements: In the Layout Editor, double-clicking Views jumps to the |
| 218 | corresponding XML element. In the Outline view, double-clicking opens the Properties view.</li> |
| 219 | <li>The editor has Honeycomb style animation preview support.</li> |
| 220 | <li>Improved rendering support for various Views (such as TabHosts and SlidingDrawers) in |
| 221 | Honeycomb (Issues <a href="http://code.google.com/p/android/issues/detail?id=3162">3162</a> |
| 222 | and <a href="http://code.google.com/p/android/issues/detail?id=13092">13092</a>).</li> |
| 223 | <li>Included layouts can be rendered and edited in the context of the layouts that include |
| 224 | them. From a layout using an <a href="{@docRoot}guide/topics/resources/layout-resource.html#include-element"> |
| 225 | <code><include></code></a> tag, double-clicking on the |
| 226 | <a href="{@docRoot}guide/topics/resources/layout-resource.html#include-element"> |
| 227 | <code><include></code></a> element edits the referenced layout in the context of the |
| 228 | current layout. Additionally, when editing a layout that is included by other layouts, |
| 229 | you can quickly change between context layouts, by right clicking in the editor and choosing |
| 230 | <strong>Show included in...</strong>. This feature is only available in Honeycomb.</li> |
| 231 | </ul> |
| 232 | </li> |
| 233 | <li>This release fixes many other bugs, but the most important ones are listed below: |
| 234 | <ul> |
| 235 | <li>Fixed issue that prevented launching debug builds on productions devices when |
| 236 | <code>debuggable=true</code> was not set in the Android manifest.</li> |
| 237 | <li>The LogCat view in DDMS properly handles UTF-8 characters.</li> |
| 238 | <li>The SDK Manager is more reliable on Windows |
| 239 | (<a href="http://tools.android.com/recent/sdkmanagerfixes">Details</a>).</li> |
| 240 | <li>A JUnit initialization bug that prevented you from working with JUnit tests was fixed |
| 241 | (Issue <a href="http://code.google.com/p/android/issues/detail?id=12411">12411</a>).</li> |
| 242 | </ul> |
| 243 | </li> |
| 244 | </ul> |
| 245 | </dd> |
| 246 | </dl> |
| 247 | </div> |
| 248 | </div> |
| 249 | |
| 250 | |
| 251 | |
| 252 | |
| 253 | <div class="toggleable closed"> |
| 254 | <a href="#" onclick="return toggleDiv(this)"> |
| 255 | <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" |
| 256 | width="9px" /> |
Scott Main | 92b0308 | 2010-12-14 17:55:27 -0800 | [diff] [blame] | 257 | ADT 8.0.1</a> <em>(December 2010)</em> |
| 258 | <div class="toggleme"> |
| 259 | |
| 260 | <dl> |
| 261 | |
| 262 | <dt>Dependencies:</dt> |
| 263 | |
| 264 | <p><p>ADT 8.0.1 is designed for use with SDK Tools r8. If you haven't |
| 265 | already installed SDK Tools r8 into your SDK, use the Android SDK and AVD Manager to do |
| 266 | so.</p></dd> |
| 267 | |
| 268 | <dt>General notes:</dt> |
| 269 | <dd> |
| 270 | <ul> |
| 271 | <li>This is a quick follow-up to ADT 8.0.0 to fix some bugs.</li> |
| 272 | <li>Fixes an issue in which projects failed to compile, citing a dex error.</li> |
| 273 | <li>Better ProGuard error reporting when exporting applications for release.</li> |
| 274 | </ul> |
| 275 | <p>Also see the recent release notes for 8.0.0, below.</p> |
| 276 | </dd> |
| 277 | </dl> |
Robert Ly | edc2aac | 2011-01-14 16:25:09 -0800 | [diff] [blame] | 278 | </div> |
Scott Main | 92b0308 | 2010-12-14 17:55:27 -0800 | [diff] [blame] | 279 | </div> |
| 280 | |
| 281 | |
| 282 | <div class="toggleable closed"> |
| 283 | <a href="#" onclick="return toggleDiv(this)"> |
| 284 | <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" |
| 285 | width="9px" /> |
Dirk Dougherty | 9f7580d | 2010-10-26 09:29:03 -0700 | [diff] [blame] | 286 | ADT 8.0.0</a> <em>(December 2010)</em> |
Dirk Dougherty | 9a97aaf | 2010-09-23 11:48:54 -0700 | [diff] [blame] | 287 | <div class="toggleme"> |
| 288 | |
Scott Main | c0c0c42 | 2010-11-05 15:23:36 -0700 | [diff] [blame] | 289 | <dl> |
Dirk Dougherty | 9a97aaf | 2010-09-23 11:48:54 -0700 | [diff] [blame] | 290 | |
Scott Main | c0c0c42 | 2010-11-05 15:23:36 -0700 | [diff] [blame] | 291 | <dt>Dependencies:</dt> |
| 292 | |
Dirk Dougherty | 9f7580d | 2010-10-26 09:29:03 -0700 | [diff] [blame] | 293 | <p><p>ADT 8.0.0 is designed for use with SDK Tools r8. If you haven't |
Scott Main | c0c0c42 | 2010-11-05 15:23:36 -0700 | [diff] [blame] | 294 | already installed SDK Tools r8 into your SDK, use the Android SDK and AVD Manager to do |
| 295 | so.</p></dd> |
| 296 | |
| 297 | <dt>General notes:</dt> |
| 298 | <dd> |
| 299 | <ul> |
| 300 | <li>New version number scheme that follows the SDK Tools revision number. The major version |
| 301 | number for your ADT plugin should now always match the revision number of your SDK Tools. For |
| 302 | example, ADT 8.x is for SDK Tools r8.</li> |
| 303 | <li>Support for true debug build. You no longer need to change the value of the |
| 304 | <code>debuggable</code> attribute in the Android Manifest. |
| 305 | <p>Incremental builds automatically insert <code>debuggable="true"</code>, but if you perform |
| 306 | "export signed/unsigned application package", ADT does <em>not</em> insert it. |
| 307 | If you manually set <code>debuggable="true"</code> in the manifest file, then release builds will |
| 308 | actually create a debug build (it does not remove it if you placed it there).</p></li> |
Scott Main | 60c4e03 | 2011-01-07 14:48:18 -0800 | [diff] [blame] | 309 | <li>Automatic <a href="{@docRoot}guide/developing/tools/proguard.html">ProGuard</a> support in |
| 310 | release builds. For it to work, you need to have a <code>proguard.config</code> |
| 311 | property in the <code>default.properties</code> file that points to a ProGuard config file.</li> |
Scott Main | c0c0c42 | 2010-11-05 15:23:36 -0700 | [diff] [blame] | 312 | <li>Completely rewritten Visual Layout Editor. (This is still a work in progress.) Now includes: |
| 313 | <ul> |
| 314 | <li>Full drag and drop from palette to layout for all Layout classes.</li> |
| 315 | <li>Move widgets inside a Layout view, from one Layout view to another and from one layout file to another.</li> |
| 316 | <li>Contextual menu with enum/flag type properties.</li> |
| 317 | <li>New zoom controls.</li> |
| 318 | </ul></li> |
| 319 | <li>New HierarchyViewer plug-in integrated in Eclipse.</li> |
| 320 | <li>Android launch configurations don't recompile the whole workspace on launch anymore.</li> |
| 321 | <li><code>android.jar</code> source and javadoc location can now be configured.</li> |
Dirk Dougherty | 9a97aaf | 2010-09-23 11:48:54 -0700 | [diff] [blame] | 322 | </ul> |
| 323 | </dd> |
Scott Main | c0c0c42 | 2010-11-05 15:23:36 -0700 | [diff] [blame] | 324 | </dl> |
| 325 | </div> |
| 326 | </div> |
| 327 | |
| 328 | |
| 329 | <div class="toggleable closed"> |
| 330 | <a href="#" onclick="return toggleDiv(this)"> |
| 331 | <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" /> |
| 332 | ADT 0.9.9</a> <em>(September 2010)</em> |
| 333 | <div class="toggleme"> |
Dirk Dougherty | 9a97aaf | 2010-09-23 11:48:54 -0700 | [diff] [blame] | 334 | |
| 335 | <dl> |
| 336 | |
| 337 | <dt>Dependencies:</dt> |
| 338 | |
| 339 | <dd><p>ADT 0.9.9 replaces ADT 0.9.8 and is designed for use with SDK Tools r7 |
| 340 | and later. ADT 0.9.9 includes the ADT 0.9.8 features as well as an important |
| 341 | bugfix, so we recommend that you upgrade as soon as possible. If you haven't |
| 342 | already installed SDK Tools r7 into your SDK, use the Android SDK Manager to do |
| 343 | so.</p></dd> |
| 344 | |
| 345 | <dt>General notes:</dt> |
| 346 | <dd> |
| 347 | <ul> |
| 348 | <li>Fixes a problem in project import, in which source files were deleted in some cases.</li> |
| 349 | <li>Includes all other ADT 0.9.8 features (see below).</li> |
| 350 | </ul> |
| 351 | </dd> |
| 352 | </dl> |
| 353 | </div> |
| 354 | </div> |
| 355 | |
| 356 | <div class="toggleable closed"> |
| 357 | <a href="#" onclick="return toggleDiv(this)"> |
| 358 | <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" /> |
Dirk Dougherty | 74a74d3 | 2010-09-09 18:40:13 -0700 | [diff] [blame] | 359 | ADT 0.9.8</a> <em>(September 2010)</em> |
Dirk Dougherty | 022171b | 2010-07-30 19:24:17 -0700 | [diff] [blame] | 360 | <div class="toggleme"> |
| 361 | |
| 362 | |
| 363 | </ul> |
| 364 | </dd> |
| 365 | |
| 366 | <dl> |
| 367 | |
| 368 | <dt>Dependencies:</dt> |
| 369 | |
Dirk Dougherty | 9a97aaf | 2010-09-23 11:48:54 -0700 | [diff] [blame] | 370 | <dd><p>ADT 0.9.8 is now deprecated. Please use ADT 0.9.9 instead.</p></dd> |
Dirk Dougherty | 022171b | 2010-07-30 19:24:17 -0700 | [diff] [blame] | 371 | |
| 372 | <dt>General notes:</dt> |
| 373 | <dd> |
| 374 | <ul> |
| 375 | <li>Adds a new Action, "Rename Application Package", to the Android Tools |
| 376 | contextual menu. The Action does a full application package refactoring. |
| 377 | <li>Adds support for library projects that don't have a source folder |
| 378 | called <code>src/</code>. There is now support for any number of source folders, |
| 379 | with no name restriction. They can even be in subfolder such as |
| 380 | <code>src/java</code>. If you are already working with library projects created |
Scott Main | 081127b | 2010-10-29 15:56:27 -0700 | [diff] [blame] | 381 | in ADT 0.9.7, see <a |
Robert Ly | c74a69a8 | 2011-01-04 22:48:02 -0800 | [diff] [blame] | 382 | href="{@docRoot}guide/developing/projects/index.html#libraryMigrating">Migrating |
Dirk Dougherty | 022171b | 2010-07-30 19:24:17 -0700 | [diff] [blame] | 383 | library projects to ADT 0.9.8</a> for important information about moving |
| 384 | to the new ADT environment.</li> |
| 385 | <li>Adds support for library projects that depend on other library |
| 386 | projects.</li> |
| 387 | <li>Adds support for additional resource qualifiers: |
| 388 | <code>car</code>/<code>desk</code>, <code>night</code>/<code>notnight</code> and |
| 389 | <code>navexposed</code>/<code>navhidden</code>.</li> |
| 390 | <li>Adds more device screen types in the layout editor. All screen |
Scott Main | 081127b | 2010-10-29 15:56:27 -0700 | [diff] [blame] | 391 | resolution/density combinations listed in the <a |
Dirk Dougherty | 022171b | 2010-07-30 19:24:17 -0700 | [diff] [blame] | 392 | href="{@docRoot}guide/practices/screens_support.html#range">Supporting |
| 393 | Multiple Screens</a> are now available.</li> |
| 394 | <li>Fixes problems with handling of library project names that |
| 395 | contain characters that are incompatible with the Eclipse path variable. |
| 396 | Now properly sets up the link between the main project and the library |
| 397 | project.</li> |
| 398 | </ul> |
| 399 | </dd> |
| 400 | </dl> |
| 401 | </div> |
| 402 | </div> |
| 403 | |
| 404 | |
| 405 | <div class="toggleable closed"> |
| 406 | <a href="#" onclick="return toggleDiv(this)"> |
Dirk Dougherty | 0d1b081 | 2010-04-07 17:05:16 -0700 | [diff] [blame] | 407 | <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" /> |
Dirk Dougherty | c7c7afd | 2010-05-24 09:07:14 -0700 | [diff] [blame] | 408 | ADT 0.9.7</a> <em>(May 2010)</em> |
Dirk Dougherty | 0d1b081 | 2010-04-07 17:05:16 -0700 | [diff] [blame] | 409 | <div class="toggleme"> |
| 410 | |
| 411 | <dl> |
| 412 | <dt>Library projects:</dt> |
| 413 | <dd> |
| 414 | <p>The ADT Plugin now supports the use of <em>library projects</em> during |
| 415 | development, a capability that lets you store shared Android application |
| 416 | code and resources in a separate development project. You can then reference the |
| 417 | library project from other Android projects and, at build time, the tools |
| 418 | compile the shared code and resources as part of the dependent applications. |
| 419 | More information about this feature is available in the <a |
Robert Ly | c74a69a8 | 2011-01-04 22:48:02 -0800 | [diff] [blame] | 420 | href="{@docRoot}guide/developing/projects/index.html#LibraryProjects">Creating and Managing Projects</a> document. </p> |
Scott Main | 081127b | 2010-10-29 15:56:27 -0700 | [diff] [blame] | 421 | <p>If you are not developing in Eclipse, <a |
| 422 | href="tools-notes.html">SDK Tools r6</a> provides the equivalent library |
Dirk Dougherty | 0d1b081 | 2010-04-07 17:05:16 -0700 | [diff] [blame] | 423 | project support through the Ant build system.</p> |
| 424 | </dd> |
| 425 | </dl> |
| 426 | </div> |
| 427 | </div> |
| 428 | |
Dirk Dougherty | 022171b | 2010-07-30 19:24:17 -0700 | [diff] [blame] | 429 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 430 | <div class="toggleable closed"> |
| 431 | <a href="#" onclick="return toggleDiv(this)"> |
| 432 | <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" /> |
| 433 | ADT 0.9.6</a> <em>(March 2010)</em> |
| 434 | <div class="toggleme"> |
| 435 | |
| 436 | <dl> |
| 437 | <dt>Dependencies:</dt> |
| 438 | |
Scott Main | 081127b | 2010-10-29 15:56:27 -0700 | [diff] [blame] | 439 | <dd><p>ADT 0.9.6 is designed for use with SDK Tools r5 and later. Before |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 440 | updating to ADT 0.9.6, we highly recommend that you use the Android SDK and |
| 441 | AVD Manager to install SDK Tools r5 into your SDK.</p></dd> |
| 442 | |
| 443 | <dt>General Notes:</dt> |
| 444 | <dd> |
| 445 | <ul> |
| 446 | <li>Editing <code>default.properties</code> outside of Eclipse will now |
| 447 | automatically update the project.</li> |
| 448 | <li>Loads the SDK content only when a project requires it. This will make |
| 449 | Eclipse use less resources when the SDK contains many versions of Android.</li> |
| 450 | <li>Resolves potential deadlock between modal dialogs, when launching ADT the |
| 451 | first time with the SDK Usage panel.</li> |
| 452 | <li>Fixes issues with the New Project Wizard when selecting samples.</li> |
| 453 | </ul> |
| 454 | </dd> |
| 455 | <dt>AVD/SDK Manager:</dt> |
| 456 | <dd> |
| 457 | <ul> |
| 458 | <li>Adds support for platform samples components.</li> |
| 459 | <li>Improves support for dependency between components.</li> |
| 460 | <li>AVDs now sorted by API level.</li> |
| 461 | <li>The AVD creation dialog now enforces a minimum SD card size of 9MB.</li> |
| 462 | <li>Prevents deletion of running AVDs.</li> |
| 463 | </ul> |
| 464 | </dd> |
| 465 | <dt>DDMS:</dt> |
| 466 | <dd> |
| 467 | <ul> |
| 468 | <li>DDMS plug-in now contains the Allocation Tracker view.</li> |
| 469 | <li>New action in the Logcat view: "Go to problem" lets you go directly from an |
| 470 | exception trace output to the code.</li> |
| 471 | </ul> |
| 472 | </dd> |
| 473 | <dt>Editors:</dt> |
| 474 | <dd> |
| 475 | <ul> |
| 476 | <li>Explode mode in the Visual Layout Editor adds a margin to all layout objects |
| 477 | so that it's easier to see embedded or empty layouts.</li> |
| 478 | <li>Outline mode in the Visual Layout Editor draws layout outline to make it |
| 479 | easier to see layout objects.</li> |
| 480 | <li>Several fixes in the configuration selector of the Visual Layout |
| 481 | Editor.</li> |
| 482 | </ul> |
| 483 | </dd> |
| 484 | <dt>Application launching:</dt> |
| 485 | <dd> |
| 486 | <ul> |
| 487 | <li>Applications launched from ADT now behave as if they were clicked from the |
| 488 | Home screen.</li> |
| 489 | <li>Fixes issue where add-on with no optional library would not show up as valid |
| 490 | targets for application launches.</li> |
| 491 | <li>Resolves possible crash when launching applications.</li> |
| 492 | </ul> |
| 493 | </dd> |
| 494 | </dl> |
| 495 | </div> |
| 496 | </div> |
| 497 | |
| 498 | <div class="toggleable closed"> |
| 499 | <a href="#" onclick="return toggleDiv(this)"> |
| 500 | <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" /> |
| 501 | ADT 0.9.5</a> <em>(December 2009)</em> |
| 502 | <div class="toggleme"> |
| 503 | <dl> |
| 504 | <dt>Dependencies:</dt> |
| 505 | |
| 506 | <dd><p>ADT 0.9.5 requires features provided in SDK Tools r4 or higher. If you install |
| 507 | ADT 0.9.5, which is highly recommended, you should use the Android SDK and AVD |
Scott Main | 92b0308 | 2010-12-14 17:55:27 -0800 | [diff] [blame] | 508 | Manager to download the latest SDK Tools into your SDK. For more information, |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 509 | see <a href="{@docRoot}sdk/adding-components.html">Adding SDK Components</a>.</p> |
| 510 | </dd> |
| 511 | |
| 512 | <dt>General Notes:</dt> |
| 513 | <dd> |
| 514 | <ul> |
| 515 | <li>AVD Launch dialog now shows scale value.</li> |
| 516 | <li>Fixes potential NPE in SDK Manager on AVD launch, for older AVD with no skin name specified.</li> |
| 517 | <li>Fixes XML validation issue in on older Java versions.</li> |
| 518 | <li>.apk packaging now properly ignores vi swap files as well as hidden files.</li> |
| 519 | </ul> |
| 520 | </dd> |
| 521 | </dl> |
| 522 | </div> |
| 523 | </div> |
| 524 | |
| 525 | <div class="toggleable closed"> |
| 526 | <a href="#" onclick="return toggleDiv(this)"> |
| 527 | <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" /> |
| 528 | ADT 0.9.4</a> <em>(October 2009)</em> |
| 529 | <div class="toggleme"> |
| 530 | <dl> |
| 531 | <dt>Dependencies:</dt> |
| 532 | |
| 533 | <dd><p>ADT 0.9.4 requires features provided in SDK Tools r3 or higher. If you install |
| 534 | ADT 0.9.4, which is highly recommended, you should use the Android SDK and AVD |
| 535 | Manager to download the latest SDK Tools into your SDK. For more information, |
| 536 | see <a href="{@docRoot}sdk/adding-components.html">Adding SDK Components</a>.</p> |
| 537 | </dd> |
| 538 | |
| 539 | <dt>Project Creation Wizard:</dt> |
| 540 | <dd> |
| 541 | <ul> |
| 542 | <li>New option to create a project from a sample by choosing it from a list.</li> |
| 543 | </ul> |
| 544 | </dd> |
| 545 | |
| 546 | <dt>Layout Editor:</dt> |
| 547 | <dd> |
| 548 | <ul> |
| 549 | <li>Improved Configuration selector that lets you see how your layout will |
| 550 | render on different devices. Default device descriptions include ADP1 |
| 551 | and Google Ion, while SDK add-ons can also provide new descriptions. |
| 552 | A new UI allows you to create custom descriptions.</li> |
| 553 | <li>Adds a new clipping toggle, to let you see your full layout even if it's |
| 554 | bigger than the screen.</li> |
| 555 | </ul> |
| 556 | </dd> |
| 557 | |
| 558 | <dt>DDMS Integration:</dt> |
| 559 | <dd> |
| 560 | <ul> |
| 561 | <li>Includes the improvements from the standlone DDMS, revision 3.</li> |
| 562 | <li>Adds an option to open HPROF files into eclipse instead of writing them on |
Scott Main | 081127b | 2010-10-29 15:56:27 -0700 | [diff] [blame] | 563 | disk. If a profiler such as MAT (<a href="http://eclipse.org/mat">Memory Analyzer |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 564 | Tool</a>) is installed, it'll open the file.</li> |
| 565 | </ul> |
| 566 | </dd> |
| 567 | |
| 568 | <dt>Android SDK and AVD Manager integration:</dt> |
| 569 | <dd> |
| 570 | <ul> |
Scott Main | 081127b | 2010-10-29 15:56:27 -0700 | [diff] [blame] | 571 | <li>Includes the improvements from the standalone Android SDK and AVD Manager, |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 572 | revision 3.</li> |
| 573 | </ul> |
| 574 | </dd> |
| 575 | </dl> |
| 576 | </div> |
| 577 | </div> |
| 578 | |
Scott Main | 77847a3 | 2010-11-09 16:41:32 -0800 | [diff] [blame] | 579 | |
| 580 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 581 | <h2 id="installing">Installing the ADT Plugin</h2> |
| 582 | |
| 583 | <p>The sections below provide instructions on how to download and install |
| 584 | ADT into your Eclipse environment. If you encounter problems, see the <a |
| 585 | href="#troubleshooting">Troubleshooting</a> section.</p> |
| 586 | |
Scott Main | 77847a3 | 2010-11-09 16:41:32 -0800 | [diff] [blame] | 587 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 588 | <h3 id="preparing">Preparing Your Development Computer</h3> |
| 589 | |
| 590 | <p>ADT is a plugin for the Eclipse IDE. Before you can install or use ADT, |
| 591 | you must have a compatible version of Eclipse installed on your development |
| 592 | computer. </p> |
| 593 | |
| 594 | <ul> |
| 595 | <li>If Eclipse is already installed on your computer, make sure that it is |
| 596 | a version that is compatible with ADT and the Android SDK. Check the <a |
| 597 | href="requirements.html">System Requirements</a> document for |
| 598 | a list of Eclipse versions that are compatible with the Android SDK.</li> |
| 599 | <li>If you need to install or update Eclipse, you can download it from this |
| 600 | location: |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 601 | |
Dirk Dougherty | 22558d0 | 2009-12-10 16:25:06 -0800 | [diff] [blame] | 602 | <p style="margin-left:2em;"><a href= |
| 603 | "http://www.eclipse.org/downloads/">http://www.eclipse.org/downloads/</a> |
| 604 | </p> |
| 605 | |
Scott Main | 77847a3 | 2010-11-09 16:41:32 -0800 | [diff] [blame] | 606 | <p>For Eclipse 3.5 or newer, the "Eclipse Classic" version is recommended. Otherwise, a Java or RCP |
| 607 | version of Eclipse is recommended.</p></li> |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 608 | </ul> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 609 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 610 | <p>Additionally, before you can configure or use ADT, you must install the |
| 611 | Android SDK starter package, as described in <a |
Robert Ly | ef13d02 | 2010-07-12 14:32:22 -0700 | [diff] [blame] | 612 | href="installing.html#Installing">Downloading the SDK Starter Package</a>. |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 613 | Specifically, you need to install a compatible version of the Android SDK Tools |
| 614 | and at least one development platform. To simplify ADT setup, we recommend |
| 615 | installing the Android SDK prior to installing ADT. </p> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 616 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 617 | <p>When your Eclipse and Android SDK environments are ready, continue with the |
| 618 | ADT installation as described in the steps below. </p> |
| 619 | |
| 620 | <h3 id="downloading">Downloading the ADT Plugin</h3> |
| 621 | |
| 622 | <p>Use Update Manager feature of your Eclipse installation to install the latest |
| 623 | revision of ADT on your development computer.<p> |
| 624 | |
| 625 | <p>Assuming that you have a compatible version of the Eclipse IDE installed, as |
| 626 | described in <a href="#preparing">Preparing for Installation</a>, above, follow |
| 627 | these steps to download the ADT plugin and install it in your Eclipse |
| 628 | environment. </p> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 629 | |
| 630 | <table style="font-size:100%"> |
Scott Main | 77847a3 | 2010-11-09 16:41:32 -0800 | [diff] [blame] | 631 | <tr><th>Eclipse 3.5 (Galileo) and 3.6 (Helios)</th><th>Eclipse 3.4 (Ganymede)</th></tr> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 632 | <tr> |
| 633 | <td width="45%"> |
Scott Main | 77847a3 | 2010-11-09 16:41:32 -0800 | [diff] [blame] | 634 | <!-- 3.5+ steps --> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 635 | <ol> |
Scott Main | 77847a3 | 2010-11-09 16:41:32 -0800 | [diff] [blame] | 636 | <li>Start Eclipse, then select <strong>Help</strong> > <strong>Install New |
| 637 | Software...</strong>.</li> |
| 638 | <li>Click <strong>Add</strong>, in the top-right corner.</li> |
| 639 | <li>In the Add Repository dialog that appears, enter "ADT Plugin" for the <em>Name</em> and the |
| 640 | following URL for the <em>Location</em>: |
| 641 | <pre>https://dl-ssl.google.com/android/eclipse/</pre> |
Scott Main | 13244e5 | 2010-01-19 11:12:07 -0800 | [diff] [blame] | 642 | <p>Note: If you have trouble acquiring the plugin, try using "http" in the Location URL, |
Scott Main | 081127b | 2010-10-29 15:56:27 -0700 | [diff] [blame] | 643 | instead of "https" (https is preferred for security reasons).</p> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 644 | <p>Click <strong>OK</strong>.</p></li> |
Scott Main | 77847a3 | 2010-11-09 16:41:32 -0800 | [diff] [blame] | 645 | <li>In the Available Software dialog, select |
| 646 | the checkbox next to Developer Tools and click <strong>Next</strong>.</li> |
| 647 | <li>In the next window, you'll see a list of the tools to be downloaded. Click |
| 648 | <strong>Next</strong>. </li> |
| 649 | <li>Read and accept the license agreements, then click <strong>Finish</strong>.</li> |
| 650 | <li>When the installation completes, restart Eclipse. </li> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 651 | </ol> |
| 652 | |
| 653 | </td> |
Scott Main | 77847a3 | 2010-11-09 16:41:32 -0800 | [diff] [blame] | 654 | <td width="50%"> |
| 655 | |
| 656 | <!-- 3.4 steps --> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 657 | <ol> |
Scott Main | 77847a3 | 2010-11-09 16:41:32 -0800 | [diff] [blame] | 658 | <li>Start Eclipse, then select <strong>Help</strong> > <strong>Software Updates...</strong>. |
| 659 | In the dialog that appears, click the <strong>Available Software</strong> tab.</li> |
| 660 | <li>Click <strong>Add Site</strong>.</li> |
| 661 | <li>In the Add Site dialog that appears, enter this URL in the "Location" field: |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 662 | <pre>https://dl-ssl.google.com/android/eclipse/</pre> |
Scott Main | 13244e5 | 2010-01-19 11:12:07 -0800 | [diff] [blame] | 663 | <p>Note: If you have trouble acquiring the plugin, you can try |
Scott Main | 081127b | 2010-10-29 15:56:27 -0700 | [diff] [blame] | 664 | using "http" in the URL, instead of "https" (https is preferred for |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 665 | security reasons).</p> |
| 666 | <p>Click <strong>OK</strong>.</p> |
| 667 | </li> |
Scott Main | 77847a3 | 2010-11-09 16:41:32 -0800 | [diff] [blame] | 668 | <li>Back in the Available Software view, you should see the plugin listed by the URL, |
| 669 | with "Developer Tools" nested within it. Select the checkbox next to Developer Tools, |
| 670 | which will automatically select the nested tools. Then click |
| 671 | <strong>Install</strong></li> |
| 672 | <li>On the subsequent Install window, all of the included tools |
| 673 | should be checked. Click <strong>Next</strong>. </li> |
| 674 | <li>Read and accept the license agreements, then click <strong>Finish</strong>.</li> |
| 675 | <li>When the installation completes, restart Eclipse. </li> |
Scott Main | 081127b | 2010-10-29 15:56:27 -0700 | [diff] [blame] | 676 | |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 677 | </ol> |
| 678 | </td> |
| 679 | </tr> |
| 680 | </table> |
| 681 | |
Scott Main | 369c1c1 | 2010-12-07 11:17:00 -0800 | [diff] [blame] | 682 | <h3 id="configuring">Configuring the ADT Plugin</h3> |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 683 | |
Dirk Dougherty | 4b4af99 | 2010-09-13 11:24:06 -0700 | [diff] [blame] | 684 | <p>Once you've successfully downloaded ADT as described above, the next step |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 685 | is to modify your ADT preferences in Eclipse to point to the Android SDK directory:</p> |
| 686 | |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 687 | <ol> |
| 688 | <li>Select <strong>Window</strong> > <strong>Preferences...</strong> to open the Preferences |
| 689 | panel (Mac OS X: <strong>Eclipse</strong> > <strong>Preferences</strong>).</li> |
| 690 | <li>Select <strong>Android</strong> from the left panel. </li> |
Scott Main | 081127b | 2010-10-29 15:56:27 -0700 | [diff] [blame] | 691 | <li>For the <em>SDK Location</em> in the main panel, click <strong>Browse...</strong> and |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 692 | locate your downloaded SDK directory. </li> |
| 693 | <li>Click <strong>Apply</strong>, then <strong>OK</strong>.</li> |
| 694 | </ol> |
| 695 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 696 | <p>Done! If you haven't encountered any problems, then the installation is |
Scott Main | 081127b | 2010-10-29 15:56:27 -0700 | [diff] [blame] | 697 | complete. If you're installing the Android SDK for the first time, return to <a |
| 698 | href="{@docRoot}sdk/installing.html#InstallingADT">Installing the SDK</a> to complete your setup. |
| 699 | </p> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 700 | |
| 701 | |
| 702 | <h3 id="troubleshooting">Troubleshooting ADT Installation</h3> |
| 703 | |
| 704 | <p> If you are having trouble downloading the ADT plugin after following the |
| 705 | steps above, here are some suggestions: </p> |
| 706 | |
| 707 | <ul> |
| 708 | <li>If Eclipse can not find the remote update site containing the ADT plugin, |
| 709 | try changing the remote site URL to use http, rather than https. That is, set |
| 710 | the Location for the remote site to: |
Scott Main | 081127b | 2010-10-29 15:56:27 -0700 | [diff] [blame] | 711 | <pre>http://dl-ssl.google.com/android/eclipse/</pre></li> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 712 | <li>If you are behind a firewall (such as a corporate firewall), make sure that |
Scott Main | 77847a3 | 2010-11-09 16:41:32 -0800 | [diff] [blame] | 713 | you have properly configured your proxy settings in Eclipse. In Eclipse, |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 714 | you can configure proxy information from the main Eclipse menu in |
| 715 | <strong>Window</strong> (on Mac OS X, <strong>Eclipse</strong>) > |
| 716 | <strong>Preferences</strong> > <strong>General</strong> > <strong>Network |
| 717 | Connections</strong>.</li> |
| 718 | </ul> |
| 719 | |
| 720 | <p> If you are still unable to use Eclipse to download the ADT plugin as a |
| 721 | remote update site, you can download the ADT zip file to your local machine and |
| 722 | manually install it:</p> |
| 723 | |
| 724 | <ol> |
| 725 | <li>Download the current ADT Plugin zip file from the table below (do not unpack it). |
| 726 | |
| 727 | <table class="download"> |
| 728 | <tr> |
| 729 | <th>Name</th> |
| 730 | <th>Package</th> |
| 731 | <th>Size</th> |
| 732 | <th>MD5 Checksum</th> |
| 733 | </tr> |
| 734 | <tr> |
| 735 | <td>ADT {@adtZipVersion}</td> |
| 736 | <td> |
| 737 | <a href="http://dl.google.com/android/{@adtZipDownload}">{@adtZipDownload}</a> |
| 738 | </td> |
| 739 | <td>{@adtZipBytes} bytes</td> |
| 740 | <td>{@adtZipChecksum}</td> |
| 741 | </tr> |
| 742 | </table> |
| 743 | </li> |
| 744 | |
| 745 | </li> |
Scott Main | 081127b | 2010-10-29 15:56:27 -0700 | [diff] [blame] | 746 | <li>Follow steps 1 and 2 in the <a href="#installing">default install |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 747 | instructions</a> (above).</li> |
| 748 | <li>In the Add Site dialog, click <strong>Archive</strong>.</li> |
| 749 | <li>Browse and select the downloaded zip file.</li> |
Scott Main | 77847a3 | 2010-11-09 16:41:32 -0800 | [diff] [blame] | 750 | <li>Enter a name for the local update site (e.g., |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 751 | "Android Plugin") in the "Name" field.</li> |
| 752 | <li>Click <strong>OK</strong>. |
Scott Main | 081127b | 2010-10-29 15:56:27 -0700 | [diff] [blame] | 753 | <li>Follow the remaining procedures as listed for |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 754 | <a href="#installing">default installation</a> above, |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 755 | starting from step 4.</li> |
| 756 | </ol> |
| 757 | |
| 758 | <p>To update your plugin once you've installed using the zip file, you will have |
| 759 | to follow these steps again instead of the default update instructions.</p> |
| 760 | |
| 761 | <h4>Other install errors</h4> |
| 762 | |
Scott Main | 081127b | 2010-10-29 15:56:27 -0700 | [diff] [blame] | 763 | <p>Note that there are features of ADT that require some optional |
| 764 | Eclipse components (for example, WST). If you encounter an error when |
| 765 | installing ADT, your Eclipse installion might not include these components. |
| 766 | For information about how to quickly add the necessary components to your |
| 767 | Eclipse installation, see the troubleshooting topic |
| 768 | <a href="{@docRoot}resources/faq/troubleshooting.html#installeclipsecomponents">ADT |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 769 | Installation Error: "requires plug-in org.eclipse.wst.sse.ui"</a>.</p> |
| 770 | |
| 771 | <h4>For Linux users</h4> |
Scott Main | 081127b | 2010-10-29 15:56:27 -0700 | [diff] [blame] | 772 | <p>If you encounter this error when installing the ADT Plugin for Eclipse: |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 773 | <pre> |
| 774 | An error occurred during provisioning. |
| 775 | Cannot connect to keystore. |
| 776 | JKS</pre> |
| 777 | <p> |
| 778 | ...then your development machine lacks a suitable Java VM. Installing Sun |
| 779 | Java 6 will resolve this issue and you can then reinstall the ADT |
| 780 | Plugin.</p> |
| 781 | |
| 782 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 783 | <h2 id="updating">Updating the ADT Plugin</h2> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 784 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 785 | <p>From time to time, a new revision of the ADT Plugin becomes available, with |
| 786 | new features and bug fixes. Generally, when a new revision of ADT is available, |
| 787 | you should update to it as soon as convenient. </p> |
| 788 | |
| 789 | <p>In some cases, a new revision of ADT will have a dependency on a specific |
| 790 | revision of the Android SDK Tools. If such dependencies exist, you will need to |
| 791 | update the SDK Tools component of the SDK after installing the new revision of |
| 792 | ADT. To update the SDK Tools component, use the Android SDK and AVD Manager, as |
| 793 | described in <a href="adding-components.html">Adding SDK Components</a>.</p> |
| 794 | |
| 795 | <p>To learn about new features of each ADT revision and also any dependencies on |
| 796 | the SDK Tools, see the listings in the <a href="#notes">Revisions</a> |
Scott Main | 081127b | 2010-10-29 15:56:27 -0700 | [diff] [blame] | 797 | section. To determine the version currently installed, open the |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 798 | Eclipse Installed Software window using <strong>Help</strong> |
Scott Main | 081127b | 2010-10-29 15:56:27 -0700 | [diff] [blame] | 799 | > <strong>Software Updates</strong> and refer to the version listed for |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 800 | "Android Development Tools".</p> |
| 801 | |
Scott Main | 081127b | 2010-10-29 15:56:27 -0700 | [diff] [blame] | 802 | <p>Follow the steps below to check whether an update is available and, if so, |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 803 | to install it. </p> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 804 | |
| 805 | <table style="font-size:100%"> |
Scott Main | 77847a3 | 2010-11-09 16:41:32 -0800 | [diff] [blame] | 806 | <tr><th>Eclipse 3.5 (Galileo) and 3.6 (Helios)</th><th>Eclipse 3.4 (Ganymede)</th></tr> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 807 | <tr> |
Scott Main | 77847a3 | 2010-11-09 16:41:32 -0800 | [diff] [blame] | 808 | <td> |
| 809 | <!-- 3.5+ steps --> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 810 | <ol> |
Scott Main | 77847a3 | 2010-11-09 16:41:32 -0800 | [diff] [blame] | 811 | <li>Select <strong>Help</strong> > <strong>Check for Updates</strong>. |
| 812 | <p>If there are no updates available, a dialog will say so and you're done.</p></li> |
| 813 | <li>If there are updates available, select Android DDMS, Android Development Tools, |
| 814 | and Android Hierarchy Viewer, then click <strong>Next</strong>.</li> |
| 815 | <li>In the Update Details dialog, click <strong>Next</strong>.</li> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 816 | <li>Read and accept the license agreement and then click <strong>Finish</strong>. |
Scott Main | 081127b | 2010-10-29 15:56:27 -0700 | [diff] [blame] | 817 | This will download and install the latest version of Android DDMS and |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 818 | Android Development Tools.</li> |
| 819 | <li>Restart Eclipse.</li> |
| 820 | </ol> |
| 821 | </td> |
Scott Main | 77847a3 | 2010-11-09 16:41:32 -0800 | [diff] [blame] | 822 | |
| 823 | <td width="50%"> |
| 824 | <!-- 3.4 steps --> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 825 | <ol> |
Scott Main | 77847a3 | 2010-11-09 16:41:32 -0800 | [diff] [blame] | 826 | <li>Select <strong>Help</strong> > <strong>Software Updates</strong>.</li> |
| 827 | <li>Select the <strong>Available Software</strong> tab.</li> |
| 828 | <li>If there are updates available, select Android DDMS, Android Development Tools, |
| 829 | and Android Hierarchy Viewer, then click <strong>Update</strong>.</li> |
| 830 | <li>In the resulting Available Updates dialog, ensure that each of the listed tools |
| 831 | are selected, then click <strong>Next</strong>.</li> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 832 | <li>Read and accept the license agreement and then click <strong>Finish</strong>. |
Scott Main | 081127b | 2010-10-29 15:56:27 -0700 | [diff] [blame] | 833 | This will download and install the latest version of Android DDMS and |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 834 | Android Development Tools.</li> |
| 835 | <li>Restart Eclipse.</li> |
| 836 | </ol> |
| 837 | </td> |
| 838 | </tr> |
| 839 | </table> |
| 840 | |
| 841 | |
Scott Main | 090a3dc | 2010-12-07 10:38:55 -0800 | [diff] [blame] | 842 | <p>If you encounter problems during the update, remove the existing ADT plugin from Eclipse, then |
| 843 | perform a fresh installation, using the instructions for <a href="#installing">Installing the ADT |
| 844 | Plugin</a>.</p> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 845 | |