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