如何为 Eclipse 设置 Android(ADT 插件)?
我正在为 Android 设置 Eclipse,并且在尝试安装 ADT 插件时遇到以下错误:
编辑: 请注意此处更完整的错误消息。
无法完成安装,因为找不到一个或多个必需的项目。 正在安装的软件:Android开发工具0.9.9.v201009221407-60953(com.android.ide.eclipse.adt.feature.group 0.9.9.v201009221407-60953) 缺少要求:Android开发工具0.9.9.v201009221407-60953(com.android.ide.eclipse.adt.feature.group 0.9.9.v201009221407-60953)需要“org.eclipse.wst.sse.core 0.0.0”但找不到
我在 Win7 x64 上并使用 Eclipse 3.5。
可能出什么问题了?
编辑:
我的路径设置不正确吗?这就是相关部分的样子。
路径...;C:\Users\Moshe\Development\android-sdk-windows\tools
修改路径后需要重启吗?
编辑:
我正在寻找安装此软件包:
org.eclipse.wst.sse.core 0.0.0
I'm setting up Eclipse for Android and when attempting to install the ADT plugin, I encounter the following error:
Edit: Notice the more complete error message here.
Cannot complete the install because one or more required items could not be found.
Software being installed: Android Development Tools 0.9.9.v201009221407-60953 (com.android.ide.eclipse.adt.feature.group 0.9.9.v201009221407-60953)
Missing requirement: Android Development Tools 0.9.9.v201009221407-60953 (com.android.ide.eclipse.adt.feature.group 0.9.9.v201009221407-60953) requires 'org.eclipse.wst.sse.core 0.0.0' but it could not be found
I'm on Win7 x64 and using Eclipse 3.5.
What could be wrong?
EDIT:
Did I not set my Path correctly? This is what the relevant part looks like.
Path...;C:\Users\Moshe\Development\android-sdk-windows\tools
Do I need to reboot after modifying the path?
EDIT:
I am looking to install this package:
org.eclipse.wst.sse.core 0.0.0
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(10)
您是否经历过这个 安装 ADT 插件?
启动Eclipse,然后选择Help >
安装新软件。
在“可用软件”对话框中,
单击“添加....1”。
在出现的“添加站点”对话框中,
输入远程站点的名称
(例如,“Android 插件”)
“名称”字段。2.
在“位置”字段中,输入此信息
网址:
https://dl-ssl.google.com/android/eclipse/< /p>
该插件,您可以尝试使用“http”
在 URL 中,而不是“https”(https
出于安全原因,首选)。4.
单击“确定”。
返回“可用软件”视图,
您现在应该看到“开发人员工具”
添加到列表中。6.
选中旁边的复选框
开发者工具,它将
自动选择嵌套的
工具 Android DDMS 和 Android
开发工具.7.
单击“下一步”。8。
在生成的安装详细信息中
对话框、Android DDMS 和
Android开发工具功能
9.
单击“下一步”阅读并接受
许可协议并安装任何
依赖项,然后单击“完成”。
重新启动 Eclipse.10。
这个问题是因为你缺少一些android工具所需的插件而引起的。您可以通过安装与许多 Eclipse 插件捆绑在一起的 Eclipse 版本或自行跟踪插件来解决此问题。
为此,请运行 eclipse,然后转到“帮助”->“安装新软件”。尝试安装Android SDK,您将被告知缺少什么,例如:
*缺少要求:Android Development Tools 0.9.6.v201002051504-24846 (com.android.ide.eclipse.adt.feature.group 0.9.6.v201002051504-24846) 需要 *'org.eclipse.gef 0.0.0' 但找不到
所以我们需要安装 org.eclipse.gef 。快速 Google 一下 org.eclipse.gef,为我们提供 www.eclipse.org/gef
点击链接,在左侧您将看到“Update Manger”的链接,点击该链接...
然后您将看到一个与 Android 插件类似的 URI 列表。复制以“releases”结尾的版本( http://download.eclipse.org/ tools/gef/updates/releases/(如果您不介意的话),然后返回 eclipse。将此 URI 粘贴到“使用”框中,就像使用 Android 插件一样,然后安装出现的组件。
继续执行此操作,直到满足所有 Android 依赖项,并且 Android 插件将安装。您将需要找到每个所需依赖项的正确位置。
Did you go through this Installing the ADT Plugin?
Start Eclipse, then select Help >
Install New Software.
In the Available Software dialog,
click Add....1.
In the Add Site dialog that appears,
enter a name for the remote site
(for example, "Android Plugin") in
the "Name" field.2.
In the "Location" field, enter this
URL:
https://dl-ssl.google.com/android/eclipse/
Note: If you have trouble acquiring
the plugin, you can try using "http"
in the URL, instead of "https" (https
is preferred for security reasons).4.
Click OK.
Back in the Available Software view,
you should now see "Developer Tools"
added to the list.6.
Select the checkbox next to
Developer Tools, which will
automatically select the nested
tools Android DDMS and Android
Development Tools.7.
Click Next.8.
In the resulting Install Details
dialog, the Android DDMS and
Android Development Tools features
are listed.9.
Click Next to read and accept the
license agreement and install any
dependencies, then click Finish.
Restart Eclipse.10.
This problem is caused because you have some plugins missing that are required by android tools. You can fix this by either installing a version of Eclipse which comes bundled with a lot of the eclipse plugins, or by tracking down the plugins yourself.
To do this, run eclipse, and go to Help->Install New software. Attempt to install the Android SDk, and you will be informed of what is missing, e.g:
*Missing requirement: Android Development Tools 0.9.6.v201002051504-24846 (com.android.ide.eclipse.adt.feature.group 0.9.6.v201002051504-24846) requires *'org.eclipse.gef 0.0.0' but it could not be found
So we need to install org.eclipse.gef . A quick Google for org.eclipse.gef, gives us www.eclipse.org/gef
Follow the link, and on the left hand side you will see a link for "Update Manger", follow that link...
You then have a list of URI's similar to the one for the Android plugin. Copy the one ending in "releases"( http://download.eclipse.org/tools/gef/updates/releases/ if you can't be bothered ), and go back to eclipse. Paste this URI into the "Work with" box, as you did with the Android plugin, and install the components that come up.
Continue to do this until all of the Android dependencies are met, and the Android plugin will install. You will need to locate the correct locations for each of the required dependencies.
下载并使用“面向 Java EE 开发人员的 Eclipse IDE”
它具有 ADT 插件所需的所有必需依赖项。
以下设置对我有用
操作系统:win 7 64位
面向 Java EE 开发人员的 Eclipse IDE:版本 3.7(32 位)
ADT 插件:版本 12.0.0
Download and use "Eclipse IDE for Java EE Developers"
it has all necessory dependents required by ADT Plugin.
Following setupworked for me
OS : win 7 64 bit
Eclipse IDE for Java EE Developers : version 3.7 (32 bit)
ADT Plugin : Version 12.0.0
如果您使用 Eclipse Galileo,则将 http://download.eclipse.org/releases/galileo 添加到更新站点列表。 Eclipse 将在 ADT Plugin 安装期间下载大部分依赖项。
If you use Eclipse Galileo then add http://download.eclipse.org/releases/galileo to the list of update sites. Eclipse will download most of the dependencies during ADT Plugin installation.
从 http://eclipse.org/downloads/ 下载适用于 Java 开发人员的 Eclipse IDE,您应该没有根本没有问题。
Download the Eclipse IDE for Java Developers from http://eclipse.org/downloads/, and you should have no problems at all.
此外,我们应该
在 Eclipse 可用软件存储库中 以便安装 Android 工具链。
In addition, we should add
at the Eclipse Available Software repositories, in order to install the Android toolchain.
还有最后一个复选框,“联系所有更新站点”,请确保在单击“下一步”之前也选中该复选框。
there is a last checkbox, 'contact all update site' make sure to check that one as well before you click on next.
我在安装新的 Eclipse 时也遇到了这个问题。确保在安装开发工具时选中“在安装过程中联系所有更新站点以查找所需软件”!
I also had this problem with a bare new Eclipse installation. Make sure that "Contact all update sites during install to find required software" is checked when installing Developer Tools!
看一下:
查找带有位置的行
,然后检查具有最新 *version_name* 的行。
另外,正如其他人回答的那样,请检查“安装新软件...”对话框中的“在安装过程中联系所有更新站点以查找所需的软件”。
当您尝试安装 ADT 时,将自动安装依赖项。
我把这个贴在这里是因为我今天也遇到了类似的情况。由于某种原因,kubuntu 的升级将 eclipse 升级到了 indigo,并在可用软件站点中取消选中了 helios 的相应行。
indigo 更新站点存在 ATTOW 依赖性问题,因此再次检查 helios 即可完成这项工作。
Take a look at:
Look for lines with location
then check the one with the latest *version_name*.
Also, as other answered, check the "Contact all update sites during install to find required software" in the "install new software..." dialog.
Dependencies will be installed automatically when you try to install ADT.
I post this here because I had a similar situation today. For some reason, an upgrade of kubuntu upgraded eclipse to indigo unchecking the respective line for helios in the available software sites.
indigo update site has dependencies issues ATTOW, so checking helios one again did the job.
通过执行以下步骤安装依赖项 org.eclipse.wst.xml.core 0.0.0 非常简单:
希望它也适合您
Its easy and simple to install the dependency org.eclipse.wst.xml.core 0.0.0 by taking the following steps:
Hope it works for you too
关闭病毒扫描程序和 Windows 防火墙,然后重试。这对我有用。
Turn off virus scanners and Windows Firewall and try again. It worked for me.