E97ee81eff6002009b20ffffffffffe0

Summary
Number:KB0000033Workflow:published
Knowledge Base:ITPublished:2015-06-11
Category:IT / Android  
Author:System Administrator  
Valid to:2100-01-01  
Short description:Eclipse configuration for Android development\n\t\t

Installing the Eclipse Plugin

Android offers a custom plugin for the Eclipse IDE, called Android Development Tools (ADT). This plugin provides a powerful, integrated environment in which to develop Android apps. It extends the capabilities of Eclipse to let you quickly set up new Android projects, build an app UI, debug your app, and export signed (or unsigned) app packages (APKs) for distribution.

Note: If you have been using Eclipse with ADT, be aware that Android Studio is now the official IDE for Android, so you should migrate to Android Studio to receive all the latest IDE updates. For help moving projects, see Migrating to Android Studio.

You should install the ADT plugin only if you already have an Eclipse installation that you want to continue using. Your existing Eclipse installation must meet these requirements:

  • Eclipse 3.7.2 (Indigo) or greater

    Note: Eclipse 3.6 (Helios) is no longer supported with the latest version of ADT.

  • Eclipse JDT plugin (included in most Eclipse IDE packages)
  • JDK 6 (JRE alone is not sufficient)
  • Not compatible with GNU Compiler for Java (gcj)

Download the ADT Plugin


To add the ADT plugin to Eclipse:

  1. Start Eclipse, then select Help > Install New Software.
  2. Click Add, in the top-right corner.
  3. In the Add Repository dialog that appears, enter "ADT Plugin" for the Name and the following URL for the Location:
    https://dl-ssl.google.com/android/eclipse/

    Note: The Android Developer Tools update site requires a secure connection. Make sure the update site URL you enter starts with HTTPS.

  4. Click OK.
  5. In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
  6. In the next window, you'll see a list of the tools to be downloaded. Click Next.
  7. Read and accept the license agreements, then click Finish.

    If you get a security warning saying that the authenticity or validity of the software can't be established, click OK.

  8. When the installation completes, restart Eclipse.

Configure the ADT Plugin


Once Eclipse restarts, you must specify the location of your Android SDK directory:

  1. In the "Welcome to Android Development" window that appears, select Use existing SDKs.
  2. Browse and select the location of the Android SDK directory you recently downloaded and unpacked.
  3. Click Next.

Your Eclipse IDE is now set up to develop Android apps, but you need to add the latest SDK platform tools and an Android platform to your environment. To get these packages for your SDK, continue to Adding Platforms and Packages.

Troubleshooting ADT Installation


If you are having trouble downloading the ADT plugin after following the steps above and you are behind a firewall (such as a corporate firewall), make sure that you have properly configured your proxy settings in Eclipse. In Eclipse, you can configure proxy information from the main Eclipse menu in Window (on Mac OS X, Eclipse) > Preferences > General >Network Connections.

If you are still unable to use Eclipse to download the ADT plugin as a remote update site, you can download the ADT zip file to your local machine and manually install it:

  1. Download the ADT Plugin zip file (do not unpack it):
    PackageSizeMD5 Checksum
    ADT-23.0.6.zip103344298 bytesf64b7e50c84799f41c642218c35f1bbe
  2. Start Eclipse, then select Help > Install New Software.
  3. Click Add, in the top-right corner.
  4. In the Add Repository dialog, click Archive.
  5. Select the downloaded ADT-23.0.6.zip file and click OK.
  6. Enter "ADT Plugin" for the name and click OK.
  7. In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
  8. In the next window, you'll see a list of the tools to be downloaded. Click Next.
  9. Read and accept the license agreements, then click Finish.

    If you get a security warning saying that the authenticity or validity of the software can't be established, click OK.

  10. When the installation completes, restart Eclipse.

To update your plugin once you've installed using the zip file, you will have to follow these steps again instead of the default update instructions.

Other install errors

Note that there are features of ADT that require some optional Eclipse packages (for example, WST). If you encounter an error when installing ADT, your Eclipse installation might not include these packages. For information about how to quickly add the necessary packages to your Eclipse installation, see the troubleshooting topic ADT Installation Error: "requires plug-in org.eclipse.wst.sse.ui".

For Linux users

If you encounter this error when installing the ADT Plugin for Eclipse:

An error occurred during provisioning.
Cannot connect to keystore.
JKS

...then your development machine lacks a suitable Java VM. Installing Sun Java 6 will resolve this issue and you can then reinstall the ADT Plugin.

Click for Variables

short_description
Eclipse configuration for Android development\n\t\t
roles
wiki
direct
false
rating
description
source
sys_updated_on
2015-06-11 17:10:57
disable_suggesting
false
sys_class_name
kb_knowledge
number
KB0000033
sys_id
e97ee81eff6002009b20ffffffffffe0
use_count
0
sys_updated_by
admin
flagged
false
disable_commenting
false
sys_created_on
2015-06-11 17:10:27
valid_to
2100-01-01
retired
workflow_state
published
text
<h2>Installing the Eclipse Plugin</h2> <p>Android offers a custom plugin for the Eclipse IDE, called Android Development Tools (ADT). This plugin provides a powerful, integrated environment in which to develop Android apps. It extends the capabilities of Eclipse to let you quickly set up new Android projects, build an app UI, debug your app, and export signed (or unsigned) app packages (APKs) for distribution.</p> <p class="note"><strong>Note:</strong> If you have been using Eclipse with ADT, be aware that <a target="_blank" href="http://developer.android.com/tools/studio/index.html" rel="noopener noreferrer nofollow">Android Studio</a> is now the official IDE for Android, so you should migrate to Android Studio to receive all the latest IDE updates. For help moving projects, see <a target="_blank" href="http://developer.android.com/sdk/installing/migrate.html" rel="noopener noreferrer nofollow">Migrating to Android Studio</a>.</p> <p> </p> <p>You should install the ADT plugin only if you already have an Eclipse installation that you want to continue using. Your existing Eclipse installation must meet these requirements:</p> <ul><li><a target="_blank" href="http://eclipse.org/mobile/" rel="noopener noreferrer nofollow">Eclipse</a> 3.7.2 (Indigo) or greater <p class="note"><strong>Note:</strong> Eclipse 3.6 (Helios) is no longer supported with the latest version of ADT.</p> </li><li>Eclipse <a target="_blank" href="http://www.eclipse.org/jdt" rel="noopener noreferrer nofollow">JDT</a> plugin (included in most Eclipse IDE packages)</li><li><a target="_blank" href="http://www.oracle.com/technetwork/java/javase/downloads/index.html" rel="noopener noreferrer nofollow">JDK 6</a> (JRE alone is not sufficient)</li><li><strong>Not</strong> compatible with GNU Compiler for Java (gcj)</li></ul> <h2 id="Download">Download the ADT Plugin</h2> <hr /> <p>To add the ADT plugin to Eclipse:</p> <ol><li>Start Eclipse, then select <strong>Help</strong> > <strong>Install New Software</strong>.</li><li>Click <strong>Add</strong>, in the top-right corner.</li><li>In the Add Repository dialog that appears, enter "ADT Plugin" for the <em>Name</em> and the following URL for the <em>Location</em>: <pre class="prettyprint"><span class="pln">https</span><span class="pun">:</span><span class="com">//dl-ssl.google.com/android/eclipse/</span></pre> <p class="note"><strong>Note:</strong> The Android Developer Tools update site requires a secure connection. Make sure the update site URL you enter starts with HTTPS.</p> </li><li>Click <strong>OK</strong>.</li><li>In the Available Software dialog, select the checkbox next to Developer Tools and click <strong>Next</strong>.</li><li>In the next window, you'll see a list of the tools to be downloaded. Click <strong>Next</strong>.</li><li>Read and accept the license agreements, then click <strong>Finish</strong>. <p>If you get a security warning saying that the authenticity or validity of the software can't be established, click <strong>OK</strong>.</p> </li><li>When the installation completes, restart Eclipse.</li></ol> <h2 id="Configure">Configure the ADT Plugin</h2> <hr /> <p>Once Eclipse restarts, you must specify the location of your Android SDK directory:</p> <ol><li>In the "Welcome to Android Development" window that appears, select <strong>Use existing SDKs</strong>.</li><li>Browse and select the location of the Android SDK directory you recently downloaded and unpacked.</li><li>Click <strong>Next</strong>.</li></ol> <p>Your Eclipse IDE is now set up to develop Android apps, but you need to add the latest SDK platform tools and an Android platform to your environment. To get these packages for your SDK, continue to <a target="_blank" href="http://developer.android.com/sdk/installing/adding-packages.html" rel="noopener noreferrer nofollow">Adding Platforms and Packages</a>.</p> <h2 id="Troubleshooting">Troubleshooting ADT Installation</h2> <hr /> <p>If you are having trouble downloading the ADT plugin after following the steps above and you are behind a firewall (such as a corporate firewall), make sure that you have properly configured your proxy settings in Eclipse. In Eclipse, you can configure proxy information from the main Eclipse menu in <strong>Window</strong> (on Mac OS X, <strong>Eclipse</strong>) > <strong>Preferences</strong> > <strong>General</strong> ><strong>Network Connections</strong>.</p> <p>If you are still unable to use Eclipse to download the ADT plugin as a remote update site, you can download the ADT zip file to your local machine and manually install it:</p> <ol><li>Download the ADT Plugin zip file (do not unpack it): <table class="download"><tbody><tr><th>Package</th><th>Size</th><th>MD5 Checksum</th></tr><tr><td><a target="_blank" href="https://dl.google.com/android/ADT-23.0.6.zip" rel="noopener noreferrer nofollow">ADT-23.0.6.zip</a></td><td>103344298 bytes</td><td>f64b7e50c84799f41c642218c35f1bbe</td></tr></tbody></table> </li><li>Start Eclipse, then select <strong>Help</strong> > <strong>Install New Software</strong>.</li><li>Click <strong>Add</strong>, in the top-right corner.</li><li>In the Add Repository dialog, click <strong>Archive</strong>.</li><li>Select the downloaded ADT-23.0.6.zip file and click <strong>OK</strong>.</li><li>Enter "ADT Plugin" for the name and click <strong>OK</strong>.</li><li>In the Available Software dialog, select the checkbox next to Developer Tools and click <strong>Next</strong>.</li><li>In the next window, you'll see a list of the tools to be downloaded. Click <strong>Next</strong>.</li><li>Read and accept the license agreements, then click <strong>Finish</strong>. <p>If you get a security warning saying that the authenticity or validity of the software can't be established, click <strong>OK</strong>.</p> </li><li>When the installation completes, restart Eclipse.</li></ol> <p>To update your plugin once you've installed using the zip file, you will have to follow these steps again instead of the default update instructions.</p> <h4>Other install errors</h4> <p>Note that there are features of ADT that require some optional Eclipse packages (for example, WST). If you encounter an error when installing ADT, your Eclipse installation might not include these packages. For information about how to quickly add the necessary packages to your Eclipse installation, see the troubleshooting topic <a target="_blank" href="http://developer.android.com/resources/faq/troubleshooting.html#installeclipsecomponents" rel="noopener noreferrer nofollow">ADT Installation Error: "requires plug-in org.eclipse.wst.sse.ui"</a>.</p> <h4>For Linux users</h4> <p>If you encounter this error when installing the ADT Plugin for Eclipse:</p> <pre class="prettyprint"><span class="typ">An</span><span class="pln"> error occurred during provisioning</span><span class="pun">.</span><span class="pln"><br /></span><span class="typ">Cannot</span><span class="pln"> connect to keystore</span><span class="pun">.</span><span class="pln"><br />JKS</span></pre> <p>...then your development machine lacks a suitable Java VM. Installing Sun Java 6 will resolve this issue and you can then reinstall the ADT Plugin.</p>
sys_created_by
admin
display_attachments
false
image
sys_view_count
0
article_type
text
cmdb_ci
author
System Administrator
my_author
System Administrator
my_author_link
SysUser.6816f79cc0a8016401c5a33be04be441
can_read_user_criteria
sys_mod_count
5
active
true
cannot_read_user_criteria
published
2015-06-11
sys_domain_path
/
sys_tags
meta_description
kb_knowledge_base
IT
my_kb_knowledge_base
IT
my_kb_knowledge_base_link
KbKnowledgeBase.A7e8a78bff0221009b20ffffffffff17
meta
topic
General
category
kb_category
IT / Android
my_kb_category
IT / Android
my_kb_category_link
KbCategory.C78a2d2047b002007f47563dbb9a71bf
my_sys_class_name_link
KbKnowledge.E97ee81eff6002009b20ffffffffffe0