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