Problem installing ADT in Eclipse

烂漫一生 提交于 2019-12-19 11:32:21

问题


I've already installed the SDK and now I need the Eclipse plugin. However, it won't work. It gets to about 25-29% and hangs for a few minutes, then fails and I get this error message:

An error occurred while collecting items to be installed session context was:(profile=SDKProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=). Unable to read repository at http://dl-ssl.google.com/android/eclipse/plugins/com.android.ide.eclipse.adt_12.0.0.v201106281929-138431.jar. Read timed out

I'm using Windows Vista and running Eclipse under administrative privileges.


回答1:


I meet this problem too. What I have done was downloaded the offline package, here: http://developer.android.com/sdk/eclipse-adt.html#troubleshooting . Hope I helped :)




回答2:


I've solved this applying the fix that frogman suggests here: https://stackoverflow.com/a/10103295/106342

I reproduce it here:

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




回答3:


Download the ADT Plugin zip file

ADT Plugin Zip File

  • Start Eclipse, then select Help > Install New Software.
  • Click Add, in the top-right corner.
  • In the Add Repository dialog, click Archive.
  • Select the downloaded ADT-20.0.3.zip file and click OK.
  • Enter "ADT Plugin" for the name and click OK.
  • In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
  • In the next window, you'll see a list of the tools to be downloaded. Click Next.
  • Read and accept the license agreements, then click Finish.

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.

Page link fore study




回答4:


I was having a similar problem. Tried the answer above, and still getting this:

An error occurred while installing the items session context was:(profile=SDKProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Install, operand=null --> [R]com.android.ide.eclipse.adt 20.0.3.v201208082019-427395, action=). Failed to prepare partial IU: [R]com.android.ide.eclipse.adt 20.0.3.v201208082019-427395.

I'm running Win 7 Premium on a Dell Laptop 64bit



来源:https://stackoverflow.com/questions/7129246/problem-installing-adt-in-eclipse

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