安装 Eclipse 的 ADT 插件

发布于 2024-12-04 13:58:19 字数 445 浏览 1 评论 0原文

我正在尝试为 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(12

心房的律动 2024-12-11 13:58:20

关闭 IPv6 对我有用。

Turning off IPv6 worked for me.

扮仙女 2024-12-11 13:58:20

就我而言,我使用代理设置,并遵循 此帖子。但只需进行一个小修改:按照 此处的建议,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

猫烠⑼条掵仅有一顆心 2024-12-11 13:58:19

我也有同样的问题。当我取消选中标记的框时它开始工作
“在安装过程中联系所有更新站点以查找所需的软件”。

I had the same problem. It started working when I unchecked the box labeled
"Contact all update sites during install to find required software".

满身野味 2024-12-11 13:58:19
  1. 转到“首选项”->“网络连接”并设置正确的选项(根据网络上的代理设置本机/直接)重新启动 Eclipse 并重试。 [在家里切换到直接对我来说很有效,但是在办公室我必须将其配置为本机..](代理设置需要在某些计算机上重新启动 eclipse IDE 才能生效
  2. 确保您的 eclipse 已安装了所有 Android 工具包依赖项(wst/emf...)(http://developer.android.com/resources/faq/troubleshooting.html#installeclipsecomponents)
  1. Goto Preferences->Network Connections and set the correct option (native/direct as per your proxy settings on your network) restart eclipse and try again. [Switching to direct worked for me at home, however in office i had to configure it to native..] (Proxy settings require restart of eclipse IDE on some machines to take effect)
  2. Ensure that your eclipse has all android toolkit dependencies (wst/emf...) installed (http://developer.android.com/resources/faq/troubleshooting.html#installeclipsecomponents)
年华零落成诗 2024-12-11 13:58:19

更新

您提供的记录错误导致安装自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)安装任何软件:

但是,如果我将 eclipse.ini 更改为
将虚拟机更改为 JDK 1.6:

-vm C:\Java\jdk1.6.0_22\bin\javaw.exe

Oracle 的评估得出结论,这似乎不是 JDK 错误,而是这只是 Windows 防火墙识别并阻止了 ftp 协议。

唯一的
JDK7 和旧版本之间的区别在于 JDK 使用
启用 IPv6 时的 IPv6 套接字以及 IPv4 映射的 IPv6 地址
被使用。可能是 Windows 或防火墙未配置
允许 IPv6 套接字。 [...]

因此,他们还列出了一个解决方法

使用 -Djava.net.preferIPv4Stack=true 运行

  • 为 Java 二进制文件添加防火墙例外。

  • 使用 -Djava.net.preferIPv4Stack=true 运行(禁用 IPv6 并仅使用 AF_INET 套接字)

  • 或在防火墙中禁用状态 FTP 检查(注册表设置或 netsh 命令)

防火墙调整似乎是根据 仅在 Java 中出现套接字异常7(尽管只是将其关闭,当然应该小心处理)。

祝你好运!


想必您已经知道 Robamaton 对 Eclipse、Android 插件、安装新软件只是说“待处理” 的回答(有有很多 ADT 相关问题,奇怪的是它没有立即出现在相应的搜索中)?它基本上可以归结为Codejammer对首选项->网络连接的提示 (+1),尽管有解释为什么它仍然可能在您的网络上失败,请参阅评论:

哦,我读到它不响应浏览器的一般请求。
无论如何,网络管理员确认它正在建立袜子连接,
但随后什么也没做。

好的,根据之前的评论,它可能正在尝试通过以下方式连接。
袜子 5 - 但我们的网络只有袜子 4。管理员将运行
5 版本看看它是否有效。

解决方法

无论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):

However, everything works right if I then change the eclipse.ini to
change the vm to JDK 1.6:

-vm C:\Java\jdk1.6.0_22\bin\javaw.exe

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

The only
difference between JDK7 and older releases is that the JDK is using
IPv6 sockets when IPv6 is enabled and so IPv4-mapped IPv6 addresses
are used. it may be that Windows or the firewall is not configured to
allow IPv6 sockets. [...]

Accordingly, they list a Workaround as well:

Run with -Djava.net.preferIPv4Stack=true

  • add a firewall exception for the Java binary.

  • run with -Djava.net.preferIPv4Stack=true (which disables IPv6 and uses AF_INET sockets exclusively)

  • or disable stateful FTP inspection in the firewall (registry setting or netsh command)

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:

Oh, I read that it doesn't respond to general requests from browsers.
In any case, network admin confirms it's making a socks connection,
but then doing nothing further.

and

Ok, further to previous comment, it's probably trying to connect via.
socks 5 - but our network only has socks 4. Admin is going to run the
5 version to see if it then works.

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

ゃ人海孤独症 2024-12-11 13:58:19

你使用什么版本的 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 for ADT and install.

眸中客 2024-12-11 13:58:19

如果您无法进行网络更新,请尝试下载 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

忆依然 2024-12-11 13:58:19

我发现这些谷歌网站很难从某些网络连接到,但从其他网络连接则不然。
在德国,我在通过爱丽丝时遇到了可怕的麻烦,但在通过德国电信时却没有遇到麻烦。

有时我可以从 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!

四叶草在未来唯美盛开 2024-12-11 13:58:19

我也遇到了同样的问题,这让我发疯。我不断地尝试了几个小时——得到了同样的错误信息——并且立刻就成功了!因此,如果我是你,我就会暂时离开,几个小时后回来再试一次。我在网上找到了其他几个建议的解决方案,但这些似乎都没有什么作用。

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.

最舍不得你 2024-12-11 13:58:19

我以前也遇到过同样的问题。就我而言,这是我在代理下工作时遇到的问题。我认为你也在代理后面工作。

我通过以下方式解决了这个问题。找到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!!!

水染的天色ゝ 2024-12-11 13:58:19

使用以下链接更新 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

抹茶夏天i‖ 2024-12-11 13:58:19

当我遇到这个问题时,我找到的唯一答案是下载最新的“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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文