安装 Eclipse 的 ADT 插件
我正在尝试为 Eclipse 安装 ADT 插件。但是,在我转到“安装新软件...”并输入插件位置 https: //dl-ssl.google.com/android/eclipse/,显示“待处理...”。无论我等多久,它都不会更改为“开发人员工具”。 (我也尝试过“http://dl-ssl.google.com/android/eclipse/ )
为了解决这个问题,我尝试下载当前的 ADT 插件 zip 文件,但这也不起作用。“开发人员工具”出现,但当我单击“下一步”时,它不会越过“计算需求和依赖项”。 “
请提供问题的解决方案谢谢。
I am trying to install the ADT plugin for Eclipse. However, after I have went to "Install New Software..." and entered the plugin location https://dl-ssl.google.com/android/eclipse/, "Pending..." is displayed. It does not change to "Developer Tools" no matter how long I wait. (I have also tried "http://dl-ssl.google.com/android/eclipse/)
To get around this I tried downloading the current ADT Plugin zip file, but this does not work either. "Developer Tools" appears, but when I click "Next" it does not move past "Calculating requirements and dependencies."
Please provide a solution to the problem of either approach. Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(12)
关闭 IPv6 对我有用。
Turning off IPv6 worked for me.
就我而言,我使用代理设置,并遵循 此帖子。但只需进行一个小修改:按照 此处的建议,SOCKETS 设置应该清晰且为空
In my case I use proxy setting, and I follow the instruction of this post. But just one small modification: the SOCKETS setting should be clear and empty as suggested by here
我也有同样的问题。当我取消选中标记的框时它开始工作
“在安装过程中联系所有更新站点以查找所需的软件”。
I had the same problem. It started working when I unchecked the box labeled
"Contact all update sites during install to find required software".
更新
您提供的记录错误导致安装自updatesite 在 Java 7 下挂起,而 Eclipse 错误 362741 - 从更新站点下载挂起 -(3.7.1 Indigo SR1 窗口),请参阅 具体评论 6 (您已经应用了 评论 7)。
请注意,虽然乍一看这似乎是 JDK 7 问题,但链接的 Java Bug 7077696 - 当在经过身份验证的 FTP 连接上发送“PASV”时,java.net.Socket 关闭 将问题归类为 REGRESSION。上次使用版本 6u26,而您已经在使用 6u30。因此,据报道,该问题可以通过在其他地方切换到 Java 6(意味着早期版本)来修复,请参见 无法使用 jdk1.7.0_01(使用 6u22)安装任何软件:
Oracle 的评估得出结论,这似乎不是 JDK 错误,而是这只是 Windows 防火墙识别并阻止了 ftp 协议。:
因此,他们还列出了一个解决方法:
防火墙调整似乎是根据 仅在 Java 中出现套接字异常7(尽管只是将其关闭,当然应该小心处理)。
祝你好运!
想必您已经知道 Robamaton 对 Eclipse、Android 插件、安装新软件只是说“待处理” 的回答(有有很多 ADT 相关问题,奇怪的是它没有立即出现在相应的搜索中)?它基本上可以归结为Codejammer对首选项->网络连接的提示 (+1),尽管有解释为什么它仍然可能在您的网络上失败,请参阅评论:
和
解决方法
无论socks 4 与socks 5 代理设置是否确实是问题所在,潜在的解决方法可能是在不同的系统上(最好是在不同的网络上)安装Eclipse 和ADT,然后将生成的文件夹复制到您的系统上(之后总之,Eclipse 安装只是文件的集合)。
执行此操作时,请确保源系统和目标系统之间的 JDK 和 Eclipse 匹配 32 位与 64 位,因为不匹配会产生其他问题(请参阅我对 启动 Eclipse 时无法加载 JNI 共享库)。
Update
The logged error you provided leads to Install from updatesite hangs under Java 7 and in turn Eclipse Bug 362741 - downloads from update sites hang - (3.7.1 Indigo SR1 windows), see comment 6 specifically (you already applied comment 7).
Please note that while this seems to be a JDK 7 problem at first sight, the linked Java Bug 7077696 - java.net.Socket closes when "PASV" is sent on an authenticated FTP connection classifies the issue as a REGRESSION. Last worked in version 6u26, while you are using 6u30 already. Accordingly, the issue is reported to be fixable by switching to Java 6 elsewhere (implying an earlier version), see e.g. Cannot do any software installs using jdk1.7.0_01 (which uses 6u22):
Oracle's Evaluation concludes, that This does not appear to be a JDK bug, rather it's just the Windows firewall recognizing and blocking the ftp protocol.:
Accordingly, they list a Workaround as well:
The firewall adjustment seems to be a confirmed workaround as per comment #4 in Socket Exception only in Java 7 (though simply turning it off like there should be handled with care of course).
Good luck!
Presumably you are already aware of Robamaton's answer to Eclipse, Android Plug-in, Install New Software just says “pending” (there are many ADT related questions and strangely it didn't show up immediately in a respective search)? It basically comes down to Codejammer's hint towards Preferences->Network Connections (+1), though with an explanation why it might still fail on your network regardless, see the comments:
and
Workaround
Regardless of whether the socks 4 vs. socks 5 proxy settings are actually the problem, a potential workaround might be to install Eclipse and ADT on a different system (ideally on a different network), and copy the resulting folder to yours thereafter (after all, an Eclipse installation is simply a collection of files).
When doing so, please ensure to match 32- vs. 64-bit regarding both the JDK and Eclipse between the source and the target system, because a mismatch would yield other problems (see e.g. my answer to Failed to load the JNI shared library on starting Eclipse).
你使用什么版本的 eclipse?
在 Helios 中,我可以通过转到
Help ->; 来安装该插件。 Eclipse 市场 -> Yoxos MarketPlace
(底部第二个图标)并搜索ADT
并安装。What versions of eclipse are you using?
In Helios I was able to install the plugin by going to
Help -> Eclipse MarketPlace -> Yoxos MarketPlace
(Second Icon at the bottom) and search forADT
and install.如果您无法进行网络更新,请尝试下载 ADT zip 包并按照下载页面所述进行本地安装。
http://developer.android.com/sdk/eclipse-adt.html
If you were unable to get network update working, please try downloading the ADT zip package and installing locally as the download page says.
http://developer.android.com/sdk/eclipse-adt.html
我发现这些谷歌网站很难从某些网络连接到,但从其他网络连接则不然。
在德国,我在通过爱丽丝时遇到了可怕的麻烦,但在通过德国电信时却没有遇到麻烦。
有时我可以从 Alice 那里到达 dl-ssl 主机,但在以后的一些操作中它会挂起然后超时。
大约一天后,我也许能够再次建立联系。有些人说他们很幸运通过代理,或者将“http”更改为“https”。我也看到了这个。
这就是我认为正在发生的事情。
首先,Eclipse 的 bug 非常严重,并且对意外情况的处理非常糟糕(例如,捕获所有异常,但未能提供异常的消息!!),特别是在涉及无响应的链接时。这让我想起了那个精神错乱的精神病医生的故事。
看起来谷歌服务器的配置很糟糕,可能是一种幼稚的保护机制,旨在抵御拒绝服务攻击:它只在特定时间范围内处理来自主机某些网络的一些连接请求,如果它得到太多连接请求请求,它会长时间锁定与主机的连接。
不幸的是,一次 Eclipse 更新可能需要快速连续的多个连接;第一次不确定如何配置 Eclipse 的人可能会落入 Google 的陷阱。
就我而言,我可以通过仔细选择可用软件的子集来下载我需要的内容,非常有耐心,如果我被锁定,只需等待一天,直到它再次让我进入。
干杯!
I find these google sites very difficult to connect with from certain networks, but not from others.
Here in Germany, I had terrible trouble going through Alice, but none going through Deutsche Telekom.
Sometimes I could reach the dl-ssl host from Alice, but in some later operation it would hang then time out.
A day or so later, I might be able to make a connection again. Some people say they had luck going through a proxy, or by changing "http" to "https". I also saw this.
Here's what I think is going on.
First, Eclipse is miserably buggy, and handles unexpected situations very badly (for example, catching all exceptions, but failing to provide the exception's message!!), particularly when it comes to unresponsive links. It reminds me of the stock story of the mentally disturbed psychiatrist.
It looks as though the google server is badly configured, possibly as a naive protection mechanism meant to repel denial-of-service attacks: it only handles a few connection requests within a certain time frame from hosts certain networks, and if it gets too many requests, it locks out connections with the host for a long time.
Unfortunately, a single Eclipse update might require many connections in rapid succession; somebody unsure of how to configure Eclipse the first time will likely trip the Google booby-trap.
In my case, I was able to download what I needed by carefully choosing a subset of the available software, being very patient, and if I got locked out, just waiting a day until it let me in again.
Cheers!
我也遇到了同样的问题,这让我发疯。我不断地尝试了几个小时——得到了同样的错误信息——并且立刻就成功了!因此,如果我是你,我就会暂时离开,几个小时后回来再试一次。我在网上找到了其他几个建议的解决方案,但这些似乎都没有什么作用。
I had the same problem and it was driving me nuts. I kept trying for a couple of hours--getting the same error message--and at once it worked! So if I were you I'd just leave it for a bit and come back in a couple of hours and try again. There are several other suggested solutions online that I found, but neither of those seemed to make a difference.
我以前也遇到过同样的问题。就我而言,这是我在代理下工作时遇到的问题。我认为你也在代理后面工作。
我通过以下方式解决了这个问题。找到SDKManager.exe并运行它。在此程序中找到代理配置并在那里填写。然后从该程序尝试更新您的 SDK(也许这需要您重新启动该程序)。
我不知道为什么,但 Eclipse 代理配置在 Android ADT 中不起作用。
PS 你必须使用 JDK 6(或 5),而不是 JDK 7!
I've faced with the same problem before. In my case this was a problem that I was working under the proxy. I think you also work behind a proxy.
I've solved this problem in the following way. Find the SDKManager.exe and run it. In this program find proxy configuration and fill it there. Then from this program try to update your SDK (maybe this will require you to restart this program).
I do not know why but Eclipse proxy configuration is not working in case of Android ADT.
P.S. You have to use JDK 6 (or 5), not JDK 7!!!
使用以下链接更新 ADT Pligins。
https://dl-ssl.google.com/android/eclipse/site.xml
Use Following link to update ADT Pligins.
https://dl-ssl.google.com/android/eclipse/site.xml
当我遇到这个问题时,我找到的唯一答案是下载最新的“Eclipse Indigo for Java”,更新 ADT 和 android SDK。
几个小时后,一切正常。
The only answer I found out when I got this problem was to download the latest 'Eclipse Indigo for Java', updating the ADT and android SDK.
After few hours, everything was normal.