An error occurred while collecting items to be installed

℡╲_俬逩灬. 提交于 2019-12-03 06:04:33

问题


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

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

回答1:


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.

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.

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




回答2:


For me, this was solved this applying the fix that frogman suggests 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's answer here.




回答3:


Agree with the above.

In fact you can get this from the official websites: 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/




回答4:


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.




回答5:


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

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




回答6:


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:

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.

When the installation completes, restart Eclipse.



来源:https://stackoverflow.com/questions/18483815/an-error-occurred-while-collecting-items-to-be-installed

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!