Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 1 | page.title=ADT Plugin for Eclipse |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 2 | sdk.preview=0 |
| 3 | |
| 4 | @jd:body |
| 5 | |
| 6 | <div id="qv-wrapper"> |
| 7 | <div id="qv"> |
| 8 | |
| 9 | <h2>In this document</h2> |
| 10 | <ol> |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 11 | <li><a href="#notes">Revisions</a></li> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 12 | <li><a href="#installing">Installing the ADT Plugin</a> |
| 13 | <ol> |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 14 | <li><a href="#preparing">Preparing for Installation</a></li> |
| 15 | <li><a href="#downloading">Downloading the ADT Plugin</a> |
| 16 | <li><a href="#configuring">Configuring the ADT Plugin</a></li> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 17 | <li><a href="#troubleshooting">Troubleshooting</a></li> |
| 18 | </ol> |
| 19 | </li> |
| 20 | <li><a href="#updating">Updating the ADT Plugin</a></li> |
| 21 | <li><a href="#uninstalling">Uninstalling the ADT Plugin</a></li> |
| 22 | </ol> |
| 23 | |
| 24 | </div> |
| 25 | </div> |
| 26 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 27 | <p>Android Development Tools (ADT) is a plugin for the Eclipse IDE |
| 28 | that is designed to give you a powerful, integrated environment in which |
| 29 | to build Android applications. </p> |
Dirk Dougherty | bf15ce6 | 2009-10-23 19:17:12 -0700 | [diff] [blame] | 30 | |
Scott Main | 13244e5 | 2010-01-19 11:12:07 -0800 | [diff] [blame] | 31 | <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] | 32 | projects, create an application UI, add components based on the Android |
Dirk Dougherty | bf15ce6 | 2009-10-23 19:17:12 -0700 | [diff] [blame] | 33 | Framework API, debug your applications using the Android SDK tools, and even |
| 34 | export signed (or unsigned) APKs in order to distribute your application.</p> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 35 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 36 | <p>Developing in Eclipse with ADT is highly recommended and is the fastest way |
| 37 | to get started. With the guided project setup it provides, as well as tools |
| 38 | integration, custom XML editors, and debug ouput pane, ADT gives you an |
| 39 | incredible boost in developing Android applications. </p> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 40 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 41 | <p>This document provides step-by-step instructions on how to download the ADT |
| 42 | plugin and install it into your Eclipse development environment. Note that |
| 43 | before you can install or use ADT, you must have compatible versions of both the |
| 44 | Eclipse IDE and the Android SDK installed. For details, make sure to read <a |
| 45 | href="#installing">Installing the ADT Plugin</a>, below. </p> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 46 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 47 | <p>If you are already using ADT, this document also provides instructions on |
| 48 | how to update ADT to the latest version or how to uninstall it, if necessary. |
| 49 | </p> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 50 | |
Scott Main | 1c9bada | 2010-07-07 16:47:16 -0700 | [diff] [blame] | 51 | <p class="caution"><strong>Caution:</strong> There are known issues with the ADT plugin running with |
| 52 | Eclipse 3.6. Please stay on 3.5 until further notice.</p> |
| 53 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 54 | <h2 id="notes">Revisions</h2> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 55 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 56 | <p>The sections below provide notes about successive releases of |
| 57 | the ADT Plugin, as denoted by revision number. </p> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 58 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 59 | <script type="text/javascript"> |
| 60 | function toggleDiv(link) { |
| 61 | var toggleable = $(link).parent(); |
| 62 | if (toggleable.hasClass("closed")) { |
| 63 | //$(".toggleme", toggleable).slideDown("fast"); |
| 64 | toggleable.removeClass("closed"); |
| 65 | toggleable.addClass("open"); |
| 66 | $(".toggle-img", toggleable).attr("title", "hide").attr("src", (toRoot + "assets/images/triangle-opened.png")); |
| 67 | } else { |
| 68 | //$(".toggleme", toggleable).slideUp("fast"); |
| 69 | toggleable.removeClass("open"); |
| 70 | toggleable.addClass("closed"); |
| 71 | $(".toggle-img", toggleable).attr("title", "show").attr("src", (toRoot + "assets/images/triangle-closed.png")); |
| 72 | } |
| 73 | return false; |
| 74 | } |
| 75 | </script> |
| 76 | <style> |
| 77 | .toggleable { |
| 78 | padding: .25em 1em; |
| 79 | } |
| 80 | .toggleme { |
| 81 | padding: 1em 1em 0 2em; |
| 82 | line-height:1em; |
| 83 | } |
| 84 | .toggleable a { |
| 85 | text-decoration:none; |
| 86 | } |
Dirk Dougherty | 0d1b081 | 2010-04-07 17:05:16 -0700 | [diff] [blame] | 87 | .toggleme a { |
| 88 | text-decoration:underline; |
| 89 | } |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 90 | .toggleable.closed .toggleme { |
| 91 | display:none; |
| 92 | } |
| 93 | #jd-content .toggle-img { |
| 94 | margin:0; |
| 95 | } |
| 96 | </style> |
| 97 | |
Dirk Dougherty | 022171b | 2010-07-30 19:24:17 -0700 | [diff] [blame] | 98 | |
| 99 | |
| 100 | |
Dirk Dougherty | 0d1b081 | 2010-04-07 17:05:16 -0700 | [diff] [blame] | 101 | <div class="toggleable opened"> |
| 102 | <a href="#" onclick="return toggleDiv(this)"> |
Dirk Dougherty | 022171b | 2010-07-30 19:24:17 -0700 | [diff] [blame] | 103 | <img src="{@docRoot}assets/images/triangle-opened.png" class="toggle-img" height="9px" width="9px" /> |
Dirk Dougherty | 74a74d3 | 2010-09-09 18:40:13 -0700 | [diff] [blame] | 104 | ADT 0.9.8</a> <em>(September 2010)</em> |
Dirk Dougherty | 022171b | 2010-07-30 19:24:17 -0700 | [diff] [blame] | 105 | <div class="toggleme"> |
| 106 | |
| 107 | |
| 108 | </ul> |
| 109 | </dd> |
| 110 | |
| 111 | <dl> |
| 112 | |
| 113 | <dt>Dependencies:</dt> |
| 114 | |
| 115 | <dd><p>ADT 0.9.8 is designed for use with SDK Tools r7 and later. Before |
| 116 | updating to ADT 0.9.8, we highly recommend that you use the Android SDK and |
| 117 | AVD Manager to install SDK Tools r7 into your SDK.</p></dd> |
| 118 | |
| 119 | <dt>General notes:</dt> |
| 120 | <dd> |
| 121 | <ul> |
| 122 | <li>Adds a new Action, "Rename Application Package", to the Android Tools |
| 123 | contextual menu. The Action does a full application package refactoring. |
| 124 | <li>Adds support for library projects that don't have a source folder |
| 125 | called <code>src/</code>. There is now support for any number of source folders, |
| 126 | with no name restriction. They can even be in subfolder such as |
| 127 | <code>src/java</code>. If you are already working with library projects created |
| 128 | in ADT 0.9.7, see <a |
| 129 | href="{@docRoot}guide/developing/eclipse-adt.html#libraryMigrating">Migrating |
| 130 | library projects to ADT 0.9.8</a> for important information about moving |
| 131 | to the new ADT environment.</li> |
| 132 | <li>Adds support for library projects that depend on other library |
| 133 | projects.</li> |
| 134 | <li>Adds support for additional resource qualifiers: |
| 135 | <code>car</code>/<code>desk</code>, <code>night</code>/<code>notnight</code> and |
| 136 | <code>navexposed</code>/<code>navhidden</code>.</li> |
| 137 | <li>Adds more device screen types in the layout editor. All screen |
| 138 | resolution/density combinations listed in the <a |
| 139 | href="{@docRoot}guide/practices/screens_support.html#range">Supporting |
| 140 | Multiple Screens</a> are now available.</li> |
| 141 | <li>Fixes problems with handling of library project names that |
| 142 | contain characters that are incompatible with the Eclipse path variable. |
| 143 | Now properly sets up the link between the main project and the library |
| 144 | project.</li> |
| 145 | </ul> |
| 146 | </dd> |
| 147 | </dl> |
| 148 | </div> |
| 149 | </div> |
| 150 | |
| 151 | |
| 152 | <div class="toggleable closed"> |
| 153 | <a href="#" onclick="return toggleDiv(this)"> |
Dirk Dougherty | 0d1b081 | 2010-04-07 17:05:16 -0700 | [diff] [blame] | 154 | <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] | 155 | ADT 0.9.7</a> <em>(May 2010)</em> |
Dirk Dougherty | 0d1b081 | 2010-04-07 17:05:16 -0700 | [diff] [blame] | 156 | <div class="toggleme"> |
| 157 | |
| 158 | <dl> |
| 159 | <dt>Library projects:</dt> |
| 160 | <dd> |
| 161 | <p>The ADT Plugin now supports the use of <em>library projects</em> during |
| 162 | development, a capability that lets you store shared Android application |
| 163 | code and resources in a separate development project. You can then reference the |
| 164 | library project from other Android projects and, at build time, the tools |
| 165 | compile the shared code and resources as part of the dependent applications. |
| 166 | More information about this feature is available in the <a |
| 167 | href="{@docRoot}guide/developing/eclipse-adt.html#libraryProject">Developing |
| 168 | in Eclipse with ADT</a> document. </p> |
| 169 | <p>If you are not developing in Eclipse, <a |
| 170 | href="tools-notes.html">SDK Tools r6</a> provides the equivalent library |
| 171 | project support through the Ant build system.</p> |
| 172 | </dd> |
| 173 | </dl> |
| 174 | </div> |
| 175 | </div> |
| 176 | |
Dirk Dougherty | 022171b | 2010-07-30 19:24:17 -0700 | [diff] [blame] | 177 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 178 | <div class="toggleable closed"> |
| 179 | <a href="#" onclick="return toggleDiv(this)"> |
| 180 | <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" /> |
| 181 | ADT 0.9.6</a> <em>(March 2010)</em> |
| 182 | <div class="toggleme"> |
| 183 | |
| 184 | <dl> |
| 185 | <dt>Dependencies:</dt> |
| 186 | |
| 187 | <dd><p>ADT 0.9.6 is designed for use with SDK Tools r5 and later. Before |
| 188 | updating to ADT 0.9.6, we highly recommend that you use the Android SDK and |
| 189 | AVD Manager to install SDK Tools r5 into your SDK.</p></dd> |
| 190 | |
| 191 | <dt>General Notes:</dt> |
| 192 | <dd> |
| 193 | <ul> |
| 194 | <li>Editing <code>default.properties</code> outside of Eclipse will now |
| 195 | automatically update the project.</li> |
| 196 | <li>Loads the SDK content only when a project requires it. This will make |
| 197 | Eclipse use less resources when the SDK contains many versions of Android.</li> |
| 198 | <li>Resolves potential deadlock between modal dialogs, when launching ADT the |
| 199 | first time with the SDK Usage panel.</li> |
| 200 | <li>Fixes issues with the New Project Wizard when selecting samples.</li> |
| 201 | </ul> |
| 202 | </dd> |
| 203 | <dt>AVD/SDK Manager:</dt> |
| 204 | <dd> |
| 205 | <ul> |
| 206 | <li>Adds support for platform samples components.</li> |
| 207 | <li>Improves support for dependency between components.</li> |
| 208 | <li>AVDs now sorted by API level.</li> |
| 209 | <li>The AVD creation dialog now enforces a minimum SD card size of 9MB.</li> |
| 210 | <li>Prevents deletion of running AVDs.</li> |
| 211 | </ul> |
| 212 | </dd> |
| 213 | <dt>DDMS:</dt> |
| 214 | <dd> |
| 215 | <ul> |
| 216 | <li>DDMS plug-in now contains the Allocation Tracker view.</li> |
| 217 | <li>New action in the Logcat view: "Go to problem" lets you go directly from an |
| 218 | exception trace output to the code.</li> |
| 219 | </ul> |
| 220 | </dd> |
| 221 | <dt>Editors:</dt> |
| 222 | <dd> |
| 223 | <ul> |
| 224 | <li>Explode mode in the Visual Layout Editor adds a margin to all layout objects |
| 225 | so that it's easier to see embedded or empty layouts.</li> |
| 226 | <li>Outline mode in the Visual Layout Editor draws layout outline to make it |
| 227 | easier to see layout objects.</li> |
| 228 | <li>Several fixes in the configuration selector of the Visual Layout |
| 229 | Editor.</li> |
| 230 | </ul> |
| 231 | </dd> |
| 232 | <dt>Application launching:</dt> |
| 233 | <dd> |
| 234 | <ul> |
| 235 | <li>Applications launched from ADT now behave as if they were clicked from the |
| 236 | Home screen.</li> |
| 237 | <li>Fixes issue where add-on with no optional library would not show up as valid |
| 238 | targets for application launches.</li> |
| 239 | <li>Resolves possible crash when launching applications.</li> |
| 240 | </ul> |
| 241 | </dd> |
| 242 | </dl> |
| 243 | </div> |
| 244 | </div> |
| 245 | |
| 246 | <div class="toggleable closed"> |
| 247 | <a href="#" onclick="return toggleDiv(this)"> |
| 248 | <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" /> |
| 249 | ADT 0.9.5</a> <em>(December 2009)</em> |
| 250 | <div class="toggleme"> |
| 251 | <dl> |
| 252 | <dt>Dependencies:</dt> |
| 253 | |
| 254 | <dd><p>ADT 0.9.5 requires features provided in SDK Tools r4 or higher. If you install |
| 255 | ADT 0.9.5, which is highly recommended, you should use the Android SDK and AVD |
| 256 | Manager to download thye latest SDK Tools into your SDK. For more information, |
| 257 | see <a href="{@docRoot}sdk/adding-components.html">Adding SDK Components</a>.</p> |
| 258 | </dd> |
| 259 | |
| 260 | <dt>General Notes:</dt> |
| 261 | <dd> |
| 262 | <ul> |
| 263 | <li>AVD Launch dialog now shows scale value.</li> |
| 264 | <li>Fixes potential NPE in SDK Manager on AVD launch, for older AVD with no skin name specified.</li> |
| 265 | <li>Fixes XML validation issue in on older Java versions.</li> |
| 266 | <li>.apk packaging now properly ignores vi swap files as well as hidden files.</li> |
| 267 | </ul> |
| 268 | </dd> |
| 269 | </dl> |
| 270 | </div> |
| 271 | </div> |
| 272 | |
| 273 | <div class="toggleable closed"> |
| 274 | <a href="#" onclick="return toggleDiv(this)"> |
| 275 | <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" /> |
| 276 | ADT 0.9.4</a> <em>(October 2009)</em> |
| 277 | <div class="toggleme"> |
| 278 | <dl> |
| 279 | <dt>Dependencies:</dt> |
| 280 | |
| 281 | <dd><p>ADT 0.9.4 requires features provided in SDK Tools r3 or higher. If you install |
| 282 | ADT 0.9.4, which is highly recommended, you should use the Android SDK and AVD |
| 283 | Manager to download the latest SDK Tools into your SDK. For more information, |
| 284 | see <a href="{@docRoot}sdk/adding-components.html">Adding SDK Components</a>.</p> |
| 285 | </dd> |
| 286 | |
| 287 | <dt>Project Creation Wizard:</dt> |
| 288 | <dd> |
| 289 | <ul> |
| 290 | <li>New option to create a project from a sample by choosing it from a list.</li> |
| 291 | </ul> |
| 292 | </dd> |
| 293 | |
| 294 | <dt>Layout Editor:</dt> |
| 295 | <dd> |
| 296 | <ul> |
| 297 | <li>Improved Configuration selector that lets you see how your layout will |
| 298 | render on different devices. Default device descriptions include ADP1 |
| 299 | and Google Ion, while SDK add-ons can also provide new descriptions. |
| 300 | A new UI allows you to create custom descriptions.</li> |
| 301 | <li>Adds a new clipping toggle, to let you see your full layout even if it's |
| 302 | bigger than the screen.</li> |
| 303 | </ul> |
| 304 | </dd> |
| 305 | |
| 306 | <dt>DDMS Integration:</dt> |
| 307 | <dd> |
| 308 | <ul> |
| 309 | <li>Includes the improvements from the standlone DDMS, revision 3.</li> |
| 310 | <li>Adds an option to open HPROF files into eclipse instead of writing them on |
| 311 | disk. If a profiler such as MAT (<a href="http://eclipse.org/mat">Memory Analyzer |
| 312 | Tool</a>) is installed, it'll open the file.</li> |
| 313 | </ul> |
| 314 | </dd> |
| 315 | |
| 316 | <dt>Android SDK and AVD Manager integration:</dt> |
| 317 | <dd> |
| 318 | <ul> |
| 319 | <li>Includes the improvements from the standalone Android SDK and AVD Manager, |
| 320 | revision 3.</li> |
| 321 | </ul> |
| 322 | </dd> |
| 323 | </dl> |
| 324 | </div> |
| 325 | </div> |
| 326 | |
| 327 | <h2 id="installing">Installing the ADT Plugin</h2> |
| 328 | |
| 329 | <p>The sections below provide instructions on how to download and install |
| 330 | ADT into your Eclipse environment. If you encounter problems, see the <a |
| 331 | href="#troubleshooting">Troubleshooting</a> section.</p> |
| 332 | |
| 333 | <h3 id="preparing">Preparing Your Development Computer</h3> |
| 334 | |
| 335 | <p>ADT is a plugin for the Eclipse IDE. Before you can install or use ADT, |
| 336 | you must have a compatible version of Eclipse installed on your development |
| 337 | computer. </p> |
| 338 | |
| 339 | <ul> |
| 340 | <li>If Eclipse is already installed on your computer, make sure that it is |
| 341 | a version that is compatible with ADT and the Android SDK. Check the <a |
| 342 | href="requirements.html">System Requirements</a> document for |
| 343 | a list of Eclipse versions that are compatible with the Android SDK.</li> |
| 344 | <li>If you need to install or update Eclipse, you can download it from this |
| 345 | location: |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 346 | |
Dirk Dougherty | 22558d0 | 2009-12-10 16:25:06 -0800 | [diff] [blame] | 347 | <p style="margin-left:2em;"><a href= |
| 348 | "http://www.eclipse.org/downloads/">http://www.eclipse.org/downloads/</a> |
| 349 | </p> |
| 350 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 351 | <p>A Java or RCP version of Eclipse is recommended.</p></li> |
| 352 | </ul> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 353 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 354 | <p>Additionally, before you can configure or use ADT, you must install the |
| 355 | Android SDK starter package, as described in <a |
Robert Ly | ef13d02 | 2010-07-12 14:32:22 -0700 | [diff] [blame] | 356 | href="installing.html#Installing">Downloading the SDK Starter Package</a>. |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 357 | Specifically, you need to install a compatible version of the Android SDK Tools |
| 358 | and at least one development platform. To simplify ADT setup, we recommend |
| 359 | installing the Android SDK prior to installing ADT. </p> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 360 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 361 | <p>When your Eclipse and Android SDK environments are ready, continue with the |
| 362 | ADT installation as described in the steps below. </p> |
| 363 | |
| 364 | <h3 id="downloading">Downloading the ADT Plugin</h3> |
| 365 | |
| 366 | <p>Use Update Manager feature of your Eclipse installation to install the latest |
| 367 | revision of ADT on your development computer.<p> |
| 368 | |
| 369 | <p>Assuming that you have a compatible version of the Eclipse IDE installed, as |
| 370 | described in <a href="#preparing">Preparing for Installation</a>, above, follow |
| 371 | these steps to download the ADT plugin and install it in your Eclipse |
| 372 | environment. </p> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 373 | |
| 374 | <table style="font-size:100%"> |
| 375 | <tr><th>Eclipse 3.4 (Ganymede)</th><th>Eclipse 3.5 (Galileo)</th></tr> |
| 376 | <tr> |
| 377 | <td width="45%"> |
| 378 | <!-- 3.4 steps --> |
| 379 | <ol> |
| 380 | <li>Start Eclipse, then select <strong>Help</strong> > <strong>Software Updates...</strong>. |
| 381 | In the dialog that appears, click the <strong>Available Software</strong> tab. </li> |
| 382 | <li>Click <strong>Add Site...</strong> </li> |
| 383 | <li>In the Add Site dialog that appears, enter this URL in the "Location" field: |
| 384 | <pre style="margin-left:0">https://dl-ssl.google.com/android/eclipse/</pre> |
Scott Main | 13244e5 | 2010-01-19 11:12:07 -0800 | [diff] [blame] | 385 | <p>Note: If you have trouble acquiring the plugin, try using "http" in the Location URL, |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 386 | instead of "https" (https is preferred for security reasons).</p> |
| 387 | <p>Click <strong>OK</strong>.</p></li> |
| 388 | <li>Back in the Available Software view, you should see the plugin listed by the URL, |
| 389 | with "Developer Tools" nested within it. Select the checkbox next to |
| 390 | Developer Tools and click <strong>Install...</strong></li> |
| 391 | <li>On the subsequent Install window, "Android DDMS" and "Android Development Tools" |
| 392 | should both be checked. Click <strong>Next</strong>. </li> |
| 393 | <li>Read and accept the license agreement, then click <strong>Finish</strong>.</li> |
| 394 | <li>Restart Eclipse. </li> |
| 395 | </ol> |
| 396 | |
| 397 | </td> |
| 398 | <td> |
| 399 | <!-- 3.5 steps --> |
| 400 | <ol> |
| 401 | <li>Start Eclipse, then select <strong>Help</strong> > <strong>Install |
Scott Main | 13244e5 | 2010-01-19 11:12:07 -0800 | [diff] [blame] | 402 | New Software</strong>. </li> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 403 | <li>In the Available Software dialog, click <strong>Add...</strong>.</li> |
| 404 | <li>In the Add Site dialog that appears, enter a name for the remote site |
| 405 | (for example, "Android Plugin") in the "Name" field. |
| 406 | <p>In the "Location" field, enter this URL:</p> |
| 407 | <pre>https://dl-ssl.google.com/android/eclipse/</pre> |
Scott Main | 13244e5 | 2010-01-19 11:12:07 -0800 | [diff] [blame] | 408 | <p>Note: If you have trouble acquiring the plugin, you can try |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 409 | using "http" in the URL, instead of "https" (https is preferred for |
| 410 | security reasons).</p> |
| 411 | <p>Click <strong>OK</strong>.</p> |
| 412 | </li> |
| 413 | <li>Back in the Available Software view, you should now see "Developer |
| 414 | Tools" added to the list. Select the checkbox next to Developer Tools, |
| 415 | which will automatically select the nested tools Android DDMS and Android |
| 416 | Development Tools. |
| 417 | Click <strong>Next</strong>. </li> |
| 418 | <li>In the resulting Install Details dialog, the Android DDMS and Android |
| 419 | Development Tools features are listed. Click <strong>Next</strong> to |
| 420 | read and accept the license agreement and install any dependencies, |
| 421 | then click <strong>Finish</strong>. </li> |
| 422 | <li>Restart Eclipse. </li> |
| 423 | |
| 424 | </ol> |
| 425 | </td> |
| 426 | </tr> |
| 427 | </table> |
| 428 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 429 | <h3 id="preparing">Configuring the ADT Plugin</h3> |
| 430 | |
Dirk Dougherty | 4b4af99 | 2010-09-13 11:24:06 -0700 | [diff] [blame^] | 431 | <p>Once you've successfully downloaded ADT as described above, the next step |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 432 | is to modify your ADT preferences in Eclipse to point to the Android SDK directory:</p> |
| 433 | |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 434 | <ol> |
| 435 | <li>Select <strong>Window</strong> > <strong>Preferences...</strong> to open the Preferences |
| 436 | panel (Mac OS X: <strong>Eclipse</strong> > <strong>Preferences</strong>).</li> |
| 437 | <li>Select <strong>Android</strong> from the left panel. </li> |
| 438 | <li>For the <em>SDK Location</em> in the main panel, click <strong>Browse...</strong> and |
| 439 | locate your downloaded SDK directory. </li> |
| 440 | <li>Click <strong>Apply</strong>, then <strong>OK</strong>.</li> |
| 441 | </ol> |
| 442 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 443 | <p>Done! If you haven't encountered any problems, then the installation is |
| 444 | complete. Now read <a href="installing.html#components">Adding Platforms and |
| 445 | Other Components</a> for instructions on how to complete the setup of your |
| 446 | SDK environment. </p> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 447 | |
| 448 | |
| 449 | <h3 id="troubleshooting">Troubleshooting ADT Installation</h3> |
| 450 | |
| 451 | <p> If you are having trouble downloading the ADT plugin after following the |
| 452 | steps above, here are some suggestions: </p> |
| 453 | |
| 454 | <ul> |
| 455 | <li>If Eclipse can not find the remote update site containing the ADT plugin, |
| 456 | try changing the remote site URL to use http, rather than https. That is, set |
| 457 | the Location for the remote site to: |
| 458 | <pre>http://dl-ssl.google.com/android/eclipse/</pre></li> |
| 459 | <li>If you are behind a firewall (such as a corporate firewall), make sure that |
| 460 | you have properly configured your proxy settings in Eclipse. In Eclipse 3.3/3.4, |
| 461 | you can configure proxy information from the main Eclipse menu in |
| 462 | <strong>Window</strong> (on Mac OS X, <strong>Eclipse</strong>) > |
| 463 | <strong>Preferences</strong> > <strong>General</strong> > <strong>Network |
| 464 | Connections</strong>.</li> |
| 465 | </ul> |
| 466 | |
| 467 | <p> If you are still unable to use Eclipse to download the ADT plugin as a |
| 468 | remote update site, you can download the ADT zip file to your local machine and |
| 469 | manually install it:</p> |
| 470 | |
| 471 | <ol> |
| 472 | <li>Download the current ADT Plugin zip file from the table below (do not unpack it). |
| 473 | |
| 474 | <table class="download"> |
| 475 | <tr> |
| 476 | <th>Name</th> |
| 477 | <th>Package</th> |
| 478 | <th>Size</th> |
| 479 | <th>MD5 Checksum</th> |
| 480 | </tr> |
| 481 | <tr> |
| 482 | <td>ADT {@adtZipVersion}</td> |
| 483 | <td> |
| 484 | <a href="http://dl.google.com/android/{@adtZipDownload}">{@adtZipDownload}</a> |
| 485 | </td> |
| 486 | <td>{@adtZipBytes} bytes</td> |
| 487 | <td>{@adtZipChecksum}</td> |
| 488 | </tr> |
| 489 | </table> |
| 490 | </li> |
| 491 | |
| 492 | </li> |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 493 | <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] | 494 | instructions</a> (above).</li> |
| 495 | <li>In the Add Site dialog, click <strong>Archive</strong>.</li> |
| 496 | <li>Browse and select the downloaded zip file.</li> |
| 497 | <li>In Eclipse 3.5 only, enter a name for the local update site (e.g., |
| 498 | "Android Plugin") in the "Name" field.</li> |
| 499 | <li>Click <strong>OK</strong>. |
| 500 | <li>Follow the remaining procedures as listed for |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 501 | <a href="#installing">default installation</a> above, |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 502 | starting from step 4.</li> |
| 503 | </ol> |
| 504 | |
| 505 | <p>To update your plugin once you've installed using the zip file, you will have |
| 506 | to follow these steps again instead of the default update instructions.</p> |
| 507 | |
| 508 | <h4>Other install errors</h4> |
| 509 | |
| 510 | <p>Note that there are features of ADT that require some optional |
| 511 | Eclipse components (for example, WST). If you encounter an error when |
| 512 | installing ADT, your Eclipse installion might not include these components. |
| 513 | For information about how to quickly add the necessary components to your |
| 514 | Eclipse installation, see the troubleshooting topic |
Dirk Dougherty | 22558d0 | 2009-12-10 16:25:06 -0800 | [diff] [blame] | 515 | <a href="{@docRoot}resources/faq/troubleshooting.html#installeclipsecomponents">ADT |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 516 | Installation Error: "requires plug-in org.eclipse.wst.sse.ui"</a>.</p> |
| 517 | |
| 518 | <h4>For Linux users</h4> |
| 519 | <p>If you encounter this error when installing the ADT Plugin for Eclipse: |
| 520 | <pre> |
| 521 | An error occurred during provisioning. |
| 522 | Cannot connect to keystore. |
| 523 | JKS</pre> |
| 524 | <p> |
| 525 | ...then your development machine lacks a suitable Java VM. Installing Sun |
| 526 | Java 6 will resolve this issue and you can then reinstall the ADT |
| 527 | Plugin.</p> |
| 528 | |
| 529 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 530 | <h2 id="updating">Updating the ADT Plugin</h2> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 531 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame] | 532 | <p>From time to time, a new revision of the ADT Plugin becomes available, with |
| 533 | new features and bug fixes. Generally, when a new revision of ADT is available, |
| 534 | you should update to it as soon as convenient. </p> |
| 535 | |
| 536 | <p>In some cases, a new revision of ADT will have a dependency on a specific |
| 537 | revision of the Android SDK Tools. If such dependencies exist, you will need to |
| 538 | update the SDK Tools component of the SDK after installing the new revision of |
| 539 | ADT. To update the SDK Tools component, use the Android SDK and AVD Manager, as |
| 540 | described in <a href="adding-components.html">Adding SDK Components</a>.</p> |
| 541 | |
| 542 | <p>To learn about new features of each ADT revision and also any dependencies on |
| 543 | the SDK Tools, see the listings in the <a href="#notes">Revisions</a> |
| 544 | section. To determine the version currently installed, open the |
| 545 | Eclipse Installed Software window using <strong>Help</strong> |
| 546 | > <strong>Software Updates</strong> and refer to the version listed for |
| 547 | "Android Development Tools".</p> |
| 548 | |
| 549 | <p>Follow the steps below to check whether an update is available and, if so, |
| 550 | to install it. </p> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 551 | |
| 552 | <table style="font-size:100%"> |
| 553 | <tr><th>Eclipse 3.4 (Ganymede)</th><th>Eclipse 3.5 (Galileo)</th></tr> |
| 554 | <tr> |
| 555 | <td width="50%"> |
| 556 | <!-- 3.4 steps --> |
| 557 | <ol> |
| 558 | <li>Select <strong>Help</strong> > <strong>Software Updates</strong>.</li> |
| 559 | <li>Select the <strong>Available Software</strong> tab.</li> |
| 560 | <li>Select the checkboxes next to Android DDMS and Android Developer Tools, |
| 561 | then click <strong>Update</strong>.</li> |
| 562 | <li>In the resulting Available Updates dialog, ensure that both Android DDMS |
| 563 | and Android Development Tools are selected, then click |
| 564 | <strong>Next</strong>.</li> |
| 565 | <li>Read and accept the license agreement and then click <strong>Finish</strong>. |
| 566 | This will download and install the latest version of Android DDMS and |
| 567 | Android Development Tools.</li> |
| 568 | <li>Restart Eclipse.</li> |
| 569 | </ol> |
| 570 | </td> |
| 571 | <td> |
| 572 | <!-- 3.5 steps --> |
| 573 | <ol> |
| 574 | <li>Select <strong>Help</strong> > <strong>Check for Updates</strong>. </li> |
| 575 | <li>In the resulting Available Updates dialog, locate the Android DDMS and |
| 576 | Android Development Tools features in the list and ensure that the checkboxes |
| 577 | next to them are selected. Click <strong>Next</strong>. |
| 578 | <p>If the Available Updates dialog does not list Android DDMS and Android |
| 579 | Development tools, make sure that you have set up a remote update site |
| 580 | for them, as described in |
| 581 | <a href="#installing">Installing the ADT Plugin</a>. |
| 582 | </p></li> |
| 583 | <li>In the Update Details dialog, click <strong>Next</strong>.</li> |
| 584 | <li>Read and accept the license agreement and then click <strong>Finish</strong>. |
| 585 | This will download and install the latest version of Android DDMS and |
| 586 | Android Development Tools.</li> |
| 587 | <li>Restart Eclipse.</li> |
| 588 | </ol> |
| 589 | </td> |
| 590 | </tr> |
| 591 | </table> |
| 592 | |
| 593 | |
| 594 | <p>If you encounter problems during the update of ADT, you |
| 595 | can try removing the existing ADT plugin and then performing a fresh |
Dirk Dougherty | 22558d0 | 2009-12-10 16:25:06 -0800 | [diff] [blame] | 596 | installation. To remove the plugin, follow the instructions in <a |
| 597 | href="#uninstalling">Uninstalling the ADT Plugin</a>, below. To reinstall |
| 598 | the plugin, follow the instructions in <a |
| 599 | href="#installing">Installing the ADT Plugin</a>, above.</p> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 600 | |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 601 | |
| 602 | <h2 id="uninstalling">Uninstalling the ADT plugin</h2> |
| 603 | |
| 604 | <p><p>If you encounter problems when installing or updating ADT, you |
| 605 | can try removing the existing ADT plugin and then performing a fresh |
| 606 | installation. To remove ADT, follow these steps: </p> |
| 607 | |
| 608 | <table style="font-size:100%"> |
| 609 | <tr><th>Eclipse 3.4 (Ganymede)</th><th>Eclipse 3.5 (Galileo)</th></tr> |
| 610 | <tr> |
| 611 | <td width="50%"> |
| 612 | <!-- 3.4 steps --> |
| 613 | <ol> |
| 614 | <li>Select <strong>Help</strong> > <strong>Software Updates</strong> > |
| 615 | <strong>Manage Configuration</strong>. </li> |
| 616 | <li>Expand the list in the left panel to reveal the installed tools.</li> |
| 617 | <li>Right-click "Android Editors" and click <strong>Uninstall</strong>. Click <strong>OK</strong> |
| 618 | to confirm.</li> |
| 619 | <li>Restart Eclipse. |
| 620 | <p>(Do not uninstall "Android Development Tools".)</p></li> |
| 621 | </ol> |
| 622 | </td> |
| 623 | <td> |
| 624 | <!-- 3.5 steps --> |
| 625 | <ol> |
| 626 | <li>Select <strong>Help</strong> > <strong>Install New Software</strong>.</li> |
| 627 | <li>In the "Details" panel, click the "What is already installed?" link.</li> |
| 628 | <li>In the <strong>Eclipse Installation Details</strong> dialog, select "Android DDMS" and "Android Development Tools" and then click <strong>Uninstall</strong>.</li> |
| 629 | <li>In the next window, confirm that the ADT features are selected for uninstall and then click <strong>Finish</strong> to uninstall.</li> |
| 630 | <li>Restart Eclipse.</li> |
| 631 | </ol> |
| 632 | </td> |
| 633 | </tr> |
| 634 | </table> |
| 635 | |