If you will be using the Eclipse IDE as your environment for developing Android applications, you can install a custom plugin called Android Development Tools (ADT), which adds integrated support for Android projects and tools. The ADT plugin includes a variety of powerful extensions that make creating, running, and debugging Android applications faster and easier.
[译]如果我们要使用Eclipse IDE 作为我们开发Android应用的开发环境,你要安装一个称为ADT(Adnroid 开发工具)的插件。该插件能够完整的支持Android的项目和工具。这个ADT插件的功能强大,它能使得创建、运行、调试Android应用程序更加的快捷和方便。
If you will not be using the Eclipse IDE, you do not need to download or install the ADT plugin.
[使用说明]
以下就不翻译了,也就是使用Eclipse中的Help > Software Updates > Find and Install.... 菜单命令进行安装插件的一般方法。
在安装完毕并重启Eclipse之后,还要进行最后一步的设置 :
使用菜单:Window > Preferences... ,在弹出的“属性”Preferences框中,单击左侧栏目的“Android”项,它会提示你说SDK的目录不对,那你就将前面解压过的SDK的目录输入或者能过“浏览”按钮选择即可。
注意: 只要SDK的目录,不要选择SDK目录中的tools文件夹。
To download and install the ADT plugin, set up an Eclipse remote update site as described in the steps below.
- Start Eclipse, then select Help > Software Updates > Find and Install....
- In the dialog that appears, select Search for new features to install and press Next.
- Press New Remote Site.
- In the resulting dialog box, enter a name for the remote site (e.g. Android Plugin) and enter this as its URL:
https://dl-ssl.google.com/android/eclipse/
Press OK. - You should now see the new site added to the search list (and checked). Press Finish.
- In the subsequent Search Results dialog box, select the checkbox for Android Plugin > Eclipse Integration > Android Development Tools and press Next.
- Read the license agreement and then select Accept terms of the license agreement, if appropriate. Press Next.
- Press Finish.
- The ADT plugin is not signed; you can accept the installation anyway by pressing Install All.
- Restart Eclipse.
- After restart, update your Eclipse preferences to point to the SDK directory:
- Select Window > Preferences... to open the Preferences panel. (Mac OS X: Eclipse > Preferences)
- Select Android from the left panel.
- For the SDK Location in the main panel, press Browse... and locate the SDK directory.
- Press Apply, then OK.