eclipse 收集要安装的项目时发生错误

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/18483815/
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 21:07:55  来源:igfitidea点击:

An error occurred while collecting items to be installed

androideclipseandroid-sdk-2.3

提问by Yuma Yanagisawa

When I tried to update my Android SDK, I got the following errors. What should I do?

当我尝试更新我的 Android SDK 时,出现以下错误。我该怎么办?

An error occurred while collecting items to be installed
session context was:(profile=profile, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No repository found containing: osgi.bundle,com.android.ide.eclipse.adt,22.0.5.v201307292155--757759
No repository found containing: osgi.bundle,com.android.ide.eclipse.adt.package,22.0.5.v201307292155--757759
No repository found containing: osgi.bundle,com.android.ide.eclipse.base,22.0.5.v201307292155--757759
No repository found containing: osgi.bundle,com.android.ide.eclipse.ddms,22.0.5.v201307292155--757759
No repository found containing: osgi.bundle,com.android.ide.eclipse.gldebugger,22.0.5.v201307292155--757759
No repository found containing: osgi.bundle,com.android.ide.eclipse.hierarchyviewer,22.0.5.v201307292155--757759
No repository found containing: osgi.bundle,com.android.ide.eclipse.traceview,22.0.5.v201307292155--757759
No repository found containing: osgi.bundle,overlay.com.android.ide.eclipse.adt.overlay,22.0.5.v201307292155--757759
No repository found containing: org.eclipse.update.feature,com.android.ide.eclipse.adt,22.0.5.v201307292155--757759
No repository found containing: org.eclipse.update.feature,com.android.ide.eclipse.ddms,22.0.5.v201307292155--757759
No repository found containing: org.eclipse.update.feature,com.android.ide.eclipse.gldebugger,22.0.5.v201307292155--757759
No repository found containing: org.eclipse.update.feature,com.android.ide.eclipse.hierarchyviewer,22.0.5.v201307292155--757759
No repository found containing: org.eclipse.update.feature,com.android.ide.eclipse.traceview,22.0.5.v201307292155--757759

回答by lepert

I just had this issue... and I went back into Window->Preferences->Install/Update and for the setting of the update site for android/eclipse I changed it back from http to https.

我刚刚遇到了这个问题……然后我又回到了 Window->Preferences->Install/Update 并且为了设置 android/eclipse 的更新站点,我将它从 http 改回了 https。

Previously I had errors updating the IDE and believed I had changed this to http because other postings had suggested that... and that previously fixed my update issue.

以前,我在更新 IDE 时遇到错误,并认为我已将其更改为 http,因为其他帖子已建议...并且之前修复了我的更新问题。

Now with the latest Android / Eclipse IDE code... it appears the https is working and needed.

现在有了最新的 Android / Eclipse IDE 代码......看来 https 正在工作并且需要。

回答by ThomasW

For me, this was solved this applying the fix that frogmansuggests here.

对我来说,这解决了这个应用青蛙人在这里建议的修复。

The answer:

答案:

Uncheck “Contact all update sites during install to find required software”

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

The checkbox mentioned there is in the dialog that shows up when you hit "Install new software".

当您点击“安装新软件”时出现的对话框中提到的复选框。

Found this answer through espinchi'sanswer here.

通过espinchi 的回答在这里找到了这个答案。

回答by Weili Zhao

Agree with the above.

同意楼上的。

In fact you can get this from the official websites: http://developer.android.com/sdk/installing/installing-adt.html

事实上你可以从官方网站得到这个:http: //developer.android.com/sdk/installing/installing-adt.html

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/

在出现的 Add Repository 对话框中,为 Name 输入“ADT Plugin”,为 Location 输入以下 URL:https: //dl-ssl.google.com/android/eclipse/

回答by iamgeef

In my case, I had already been using http for a few years (after https wouldn't work) so changing back to https solved it for me.

就我而言,我已经使用 http 几年了(在 https 不起作用之后)所以改回 https 为我解决了这个问题。

回答by cryptonkid

Try 1)changing "https:" to "http:" or vise versa 2)Uncheck “Contact all update sites during install to find required software”

尝试 1) 将“https:”更改为“http:”,反之亦然 2) 取消选中“在安装过程中联系所有更新站点以查找所需软件”

If both the solutions don't work then manually update the ADT :: 1) Uninstall ADT using the link2) Reinstall the ADT by Help -> Install New Software

如果两种解决方案都不起作用,则手动更新 ADT :: 1) 使用链接卸载 ADT 2) 通过帮助重新安装 ADT -> 安装新软件

回答by Prashant Srivastav

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:

如果您仍然无法使用 Eclipse 下载 ADT 插件作为远程更新站点,您可以将 ADT zip 文件下载到您的本地机器并手动安装它:

http://dl.google.com/android/ADT-22.6.0.zip
1 .Download the ADT Plugin zip file (do not unpack it):
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-22.6.0.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.
10. If you get a security warning saying that the authenticity or validity of the software can't be established, click OK.

http://dl.google.com/android/ADT-22.6.0.zip
1. 下载 ADT 插件 zip 文件(不要解压):
2. 启动 Eclipse,然后选择帮助 > 安装新软件。
3. 单击右上角的添加。
4. 在添加存储库对话框中,单击存档。
5. 选择下载的 ADT-22.6.0.zip 文件,然后单击“确定”。
6. 输入“ADT Plugin”作为名称,然后单击“确定”。
7. 在可用软件对话框中,选中开发工具旁边的复选框,然后单击下一步。
8. 在下一个窗口中,您将看到要下载的工具列表。点击下一步。
9. 阅读并接受许可协议,然后单击完成。
10. 如果您收到安全警告,提示无法确定软件的真实性或有效性,请单击“确定”。

When the installation completes, restart Eclipse.

安装完成后,重新启动 Eclipse。