尝试在 Eclipse 中安装新功能(使用 ADT 作为基础包)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/14913499/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 20:00:32  来源:igfitidea点击:

Trying to install new features in Eclipse (using ADT as the base package)

eclipseosgibundleruntime-erroradt

提问by SomeoneElse

When I try to install new features in Eclipse (using ADT as the base package) I get

当我尝试在 Eclipse 中安装新功能(使用 ADT 作为基本包)时,我得到

‘Installing Software' has encountered a problem.
An error occurred while collecting items to be installed
An error occurred while collecting items to be installed
session context was:(profile=profile, hase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).  No repository found containing: osgi.bundle,com.android.ide.eclipse.base,21.1.0.v201302060044-569685
No repository found containing: osgi.bundle,com.android.ide.eclipse.ddms,21.1.0.v201302060044-569685
No repository found containing: org.eclipse.update.feature,com.android.ide.eclipse.ddms,21.1.0.v201302060044-569685

I have installed a number of addons and I'm not sure which one might be giving the error. If anyone else has faced this error and found a solution, that would be great. Thanks.

我已经安装了许多插件,但我不确定哪个插件可能会出现错误。如果其他人遇到此错误并找到了解决方案,那就太好了。谢谢。

回答by Luis Lezcano Airaldi

Try changing the address of the repo from http to https or vice versa

尝试将 repo 的地址从 http 更改为 https,反之亦然

回答by Caner

This worked for me:

这对我有用:

In Eclipse, try:

Help > Install New Software

Choose "Work with: https://dl-ssl.google.com/android/eclipse/"

Select the updates to install and uncheck "Contact all update sites during install to find required software"

在 Eclipse 中,尝试:

帮助 > 安装新软件

选择“使用:https: //dl-ssl.google.com/android/eclipse/

选择要安装的更新并取消选中“在安装过程中联系所有更新站点以查找所需软件”

回答by grepit

I found similar information and how to go about fixing it on "Android - An Open Handset Alliance Project" here is the link http://code.google.com/p/android/issues/detail?id=38267I hope this helps you.

我在“Android - 一个开放手机联盟项目”上找到了类似的信息以及如何修复它,这里是链接http://code.google.com/p/android/issues/detail?id=38267我希望这有帮助你。

Another thing you can try is export your work space and re-install your eclipse. Sometimes the compatibility issue may cause this. I know this may require some work because then you have to add all of your plugins back but this might be the last option you may want to consider if you can't find a workaround or fix.

您可以尝试的另一件事是导出您的工作空间并重新安装您的 Eclipse。有时兼容性问题可能会导致这种情况。我知道这可能需要一些工作,因为那时您必须重新添加所有插件,但如果找不到解决方法或修复程序,这可能是您可能要考虑的最后一个选项。

回答by SpaceKudet

The folder location it was installing the updates too, it didn't have full write permissions so I changed that and also changing the http to https. This worked for me.

它也安装更新的文件夹位置,它没有完全写入权限,所以我更改了它并将 http 更改为 https。这对我有用。

回答by Neil Walker

Brilliant, I was on version 21.0.1 and my Tools were on 21.1 for some reason and changing from http to https, i.e. https://dl-ssl.google.com/android/eclipse/seemed to work and ADT downloaded and updated.

太棒了,我使用的是 21.0.1 版本,我的工具由于某种原因使用 21.1 并且从 http 更改为 https,即https://dl-ssl.google.com/android/eclipse/似乎可以工作,并且 ADT 已下载并更新.

On starting Eclipse there was no error message.

启动 Eclipse 时没有错误消息。

Sadly, on getting to the workspace what has happened is:

可悲的是,在到达工作区时发生的事情是:

  1. All my toolbar and menu shortcuts (except help/about) for ADT have been wiped
  2. All my sites in the 'available' sites have been wiped
  3. In general my Eclipse is now shagged
  1. 我所有的 ADT 工具栏和菜单快捷方式(帮助/关于除外)都已被擦除
  2. 我在“可用”站点中的所有站点都已擦除
  3. 一般来说,我的 Eclipse 现在是 shagged

Well done Eclipse the plug-in nightmare system you've created has ruined yet another installation of mine. That's, like every instance I've ever had fails when I dare to install or use a plugin.

干得好 Eclipse 你创建的插件噩梦系统破坏了我的另一个安装。那就是,就像我曾经遇到过的每个实例一样,当我敢于安装或使用插件时都会失败。

回答by super

I was able to solve it just by using 'http' instead of 'https' ( http://dl-ssl.google.com/android/eclipse/)

我能够通过使用“http”而不是“https”来解决它(http://dl-ssl.google.com/android/eclipse/