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

南笙酒味 提交于 2020-01-22 10:57:29

问题


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

‘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.


回答1:


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




回答2:


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"




回答3:


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=38267 I hope this helps you.

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.




回答4:


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.




回答5:


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.

On starting Eclipse there was no error message.

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

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.




回答6:


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



来源:https://stackoverflow.com/questions/14913499/trying-to-install-new-features-in-eclipse-using-adt-as-the-base-package

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