在 Eclipse 中安装 ADT 的问题
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7129246/
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
Problem installing ADT in Eclipse
提问by JT White
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:
我已经安装了 SDK,现在我需要 Eclipse 插件。但是,它不会起作用。它达到大约 25-29% 并挂起几分钟,然后失败,我收到以下错误消息:
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
收集要安装的项目时发生错误会话上下文是:(profile=SDKProfile,phase=org.eclipse.equinox.internal.p2.engine.phases.Collect,operand=,action=)。无法在http://dl-ssl.google.com/android/eclipse/plugins/com.android.ide.eclipse.adt_12.0.0.v201106281929-138431.jar读取存储库 。读取超时
I'm using Windows Vista and running Eclipse under administrative privileges.
我正在使用 Windows Vista 并在管理权限下运行 Eclipse。
回答by espinchi
I've solved this applying the fix that frogmansuggests here: https://stackoverflow.com/a/10103295/106342
我已经解决了这个应用蛙人在这里建议的修复: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".
当您点击“安装新软件”时出现的对话框中提到的复选框。
回答by Luke Vo
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 :)
我也遇到这个问题。我所做的是下载离线包,在这里:http: //developer.android.com/sdk/eclipse-adt.html#troubleshooting。希望我有所帮助:)
回答by mahdi
Download the ADT Plugin zip file
下载 ADT 插件 zip 文件
- Start Eclipse, then select Help> Install New Software.
- Click Add, in the top-right corner.
- In the Add Repositorydialog, 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 Softwaredialog, select the checkbox next to Developer Toolsand 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.
- 启动 Eclipse,然后选择Help> Install New Software。
- 单击右上角的添加。
- 在“添加存储库”对话框中,单击“存档”。
- 选择下载的 ADT-20.0.3.zip 文件,然后单击“确定”。
- 输入“ADT 插件”作为名称,然后单击“确定”。
- 在“可用软件”对话框中,选中“开发人员工具”旁边的复选框,然后单击“下一步”。
- 在下一个窗口中,您将看到要下载的工具列表。单击下一步。
- 阅读并接受许可协议,然后单击完成。
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.
如果您收到安全警告,提示无法确定软件的真实性或有效性,请单击“确定”。安装完成后,重新启动 Eclipse。
回答by silverfox1948
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.
安装项目会话上下文时发生错误:(profile=SDKProfile,phase=org.eclipse.equinox.internal.p2.engine.phases.Install,operand=null --> [R]com.android.ide.eclipse .adt 20.0.3.v201208082019-427395,动作=)。未能准备部分 IU:[R]com.android.ide.eclipse.adt 20.0.3.v201208082019-427395。
I'm running Win 7 Premium on a Dell Laptop 64bit
我在戴尔笔记本电脑 64 位上运行 Win 7 Premium