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/)
我正在为Eclipse安装ADT插件。然而,当我进入“安装新软件……”并输入插件位置https://dlssl.google.com/android/eclipse/后,“Pending…”就会显示出来。无论我等多久,它都不会变成“开发工具”。(我也尝试过“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."
为了解决这个问题,我尝试下载当前的ADT插件zip文件,但这也不起作用。“开发工具”出现了,但是当我点击Next时,它不会移动过去的“计算需求和依赖”。
Please provide a solution to the problem of either approach. Thanks.
请为任何一种方法的问题提供一个解决方案。谢谢。
12 个解决方案
#1
47
I had the same problem. It started working when I unchecked the box labeled "Contact all update sites during install to find required software".
我也有同样的问题。它开始工作时,我检查了“在安装期间联系所有更新站点以查找所需的软件”。
#2
12
- 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)
- Goto首选项——>网络连接并设置正确的选项(根据您的网络上的代理设置,本机/direct)重新启动eclipse并再次尝试。我在家里直接工作,但在办公室里我得把它配置为native。(代理设置需要在某些机器上重新启动eclipse IDE才能生效)
- Ensure that your eclipse has all android toolkit dependencies (wst/emf...) installed (http://developer.android.com/resources/faq/troubleshooting.html#installeclipsecomponents)
- 确保您的eclipse安装了所有android工具包依赖项(wst/emf…)(http://developer.android.com/resources/faq/troubleshoot.html #installeclipsecomponents)
#3
4
What versions of eclipse are you using?
您正在使用什么版本的eclipse ?
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.
在Helios,我可以通过帮助-> Eclipse MarketPlace -> Yoxos MarketPlace(底部的第二个图标)来安装插件,并搜索ADT和安装。
#4
4
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).
您提供的日志错误导致从updatesite安装挂在Java 7下,而Eclipse Bug 362741 -从更新站点hang - (3.7.1 Indigo SR1 windows)下载,具体请参见注释6(您已经应用了注释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):
请注意,虽然乍一看这似乎是一个JDK 7问题,但是当在经过身份验证的FTP连接上发送“PASV”时,链接的Java Bug 7077696 - Java .net. socket关闭,将问题归类为回归。最后一次在6u26版本中工作,而您已经在使用6u30。因此,通过切换到其他地方的Java 6(意味着更早的版本),这个问题被报告是可以解决的,参见例如,不能使用jdk1.7.0_01(使用6u22)安装任何软件:
However, everything works right if I then change the eclipse.ini to change the vm to JDK 1.6:
但是,如果我更改eclipse,一切都会正常工作。ini将vm更改为JDK 1.6:
-vm C:\Java\jdk1.6.0_22\bin\javaw.exe
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.:
Oracle的评估得出的结论是,这似乎不是JDK bug,而是Windows防火墙识别和阻塞ftp协议。
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. [...]
JDK7和旧版本之间的唯一区别是,JDK在启用IPv6时使用了IPv6套接字,因此使用了ipv4映射的IPv6地址。可能是Windows或防火墙没有配置为允许IPv6套接字。[…]
Accordingly, they list a Workaround as well:
因此,他们也列出了一个变通方案:
Run with -Djava.net.preferIPv4Stack=true
运行-Djava.net.preferIPv4Stack = true
add a firewall exception for the Java binary.
为Java二进制添加防火墙异常。
run with -Djava.net.preferIPv4Stack=true (which disables IPv6 and uses AF_INET sockets exclusively)
使用-Djava.net.preferIPv4Stack=true(它禁用IPv6并只使用AF_INET套接字)运行
or disable stateful FTP inspection in the firewall (registry setting or netsh command)
或在防火墙中禁用有状态FTP检查(注册表设置或netsh命令)
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).
在Java 7中,防火墙的调整似乎是一个确定的解决方案,在套接字异常的注释#4中(尽管简单地将其关闭,当然应该小心处理)。
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:
假设你已经知道了Robamaton对Eclipse的答案,Android插件,安装新软件只是说“待定”(有很多ADT相关的问题,奇怪的是它没有在各自的搜索中立即出现)?它主要归结于Codejammer对首选项的提示——>网络连接(+1),尽管它解释了为什么它仍然会在你的网络上失败,但是请看评论:
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.
好的,在之前的评论中,它可能试图通过。袜子5 -但我们的网络只有袜子4。Admin将运行5个版本,看看它是否正常工作。
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).
无论袜子4与袜子5代理设置是真正的问题,一个潜在的解决方法可能是在不同的系统上安装Eclipse和ADT(最理想的是在一个不同的网络),并将生成的文件夹复制到你之后(毕竟,一个Eclipse安装仅仅是一个收集的文件)。
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).
当这样做时,请确保在源和目标系统之间的JDK和Eclipse都匹配32和64位,因为不匹配将导致其他问题(参见我的答案,在启动Eclipse时未能加载JNI共享库)。
#5
2
If you were unable to get network update working, please try downloading the ADT zip package and installing locally as the download page says.
如果您无法使网络更新工作,请尝试下载ADT zip包并按照下载页面的说明在本地安装。
http://developer.android.com/sdk/eclipse-adt.html
http://developer.android.com/sdk/eclipse-adt.html
#6
2
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.
有时我可以从Alice那里访问dl-ssl主机,但是在以后的一些操作中,它会挂起然后超时。过了一天左右,我可能会重新建立联系。有些人说他们很幸运地通过代理,或者将“http”改为“https”。我也看到了这一点。
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.
首先,Eclipse是非常糟糕的bug,并且非常糟糕地处理突发情况(例如,捕获所有异常,但未能提供异常的消息!),特别是在没有响应的链接时。这让我想起了精神失常的精神病医生的股票故事。
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.
不幸的是,一次Eclipse更新可能需要快速连续地连接多个连接;第一次不确定如何配置Eclipse的人可能会遇到谷歌陷阱。
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!
干杯!
#7
0
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.
我也有同样的问题,这让我抓狂。我不停地尝试了几个小时——得到了同样的错误信息——然后马上就成功了!如果我是你,我就把它放一段时间,几个小时后再回来,再试一次。我发现,网上还有其他一些建议的解决方案,但这两种方法似乎都不重要。
#8
0
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).
我用以下方法解决了这个问题。找到SDKManager。exe并运行它。在这个程序中找到代理配置并在那里填充它。然后,从这个程序尝试更新您的SDK(可能这将要求您重新启动这个程序)。
I do not know why but Eclipse proxy configuration is not working in case of Android ADT.
我不知道为什么Eclipse代理配置在Android ADT的情况下不能正常工作。
P.S. You have to use JDK 6 (or 5), not JDK 7!!!
附注:你必须使用JDK 6(或5),而不是JDK 7!
#9
0
Use Following link to update ADT Pligins.
使用以下链接更新ADT Pligins。
https://dl-ssl.google.com/android/eclipse/site.xml
https://dl-ssl.google.com/android/eclipse/site.xml
#10
0
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.
当我遇到这个问题时,我找到的唯一答案是下载最新的“Eclipse Indigo for Java”,更新ADT和android SDK。几小时后,一切都很正常。
#11
0
Turning off IPv6 worked for me.
关闭IPv6对我起了作用。
#12
#1
47
I had the same problem. It started working when I unchecked the box labeled "Contact all update sites during install to find required software".
我也有同样的问题。它开始工作时,我检查了“在安装期间联系所有更新站点以查找所需的软件”。
#2
12
- 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)
- Goto首选项——>网络连接并设置正确的选项(根据您的网络上的代理设置,本机/direct)重新启动eclipse并再次尝试。我在家里直接工作,但在办公室里我得把它配置为native。(代理设置需要在某些机器上重新启动eclipse IDE才能生效)
- Ensure that your eclipse has all android toolkit dependencies (wst/emf...) installed (http://developer.android.com/resources/faq/troubleshooting.html#installeclipsecomponents)
- 确保您的eclipse安装了所有android工具包依赖项(wst/emf…)(http://developer.android.com/resources/faq/troubleshoot.html #installeclipsecomponents)
#3
4
What versions of eclipse are you using?
您正在使用什么版本的eclipse ?
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.
在Helios,我可以通过帮助-> Eclipse MarketPlace -> Yoxos MarketPlace(底部的第二个图标)来安装插件,并搜索ADT和安装。
#4
4
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).
您提供的日志错误导致从updatesite安装挂在Java 7下,而Eclipse Bug 362741 -从更新站点hang - (3.7.1 Indigo SR1 windows)下载,具体请参见注释6(您已经应用了注释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):
请注意,虽然乍一看这似乎是一个JDK 7问题,但是当在经过身份验证的FTP连接上发送“PASV”时,链接的Java Bug 7077696 - Java .net. socket关闭,将问题归类为回归。最后一次在6u26版本中工作,而您已经在使用6u30。因此,通过切换到其他地方的Java 6(意味着更早的版本),这个问题被报告是可以解决的,参见例如,不能使用jdk1.7.0_01(使用6u22)安装任何软件:
However, everything works right if I then change the eclipse.ini to change the vm to JDK 1.6:
但是,如果我更改eclipse,一切都会正常工作。ini将vm更改为JDK 1.6:
-vm C:\Java\jdk1.6.0_22\bin\javaw.exe
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.:
Oracle的评估得出的结论是,这似乎不是JDK bug,而是Windows防火墙识别和阻塞ftp协议。
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. [...]
JDK7和旧版本之间的唯一区别是,JDK在启用IPv6时使用了IPv6套接字,因此使用了ipv4映射的IPv6地址。可能是Windows或防火墙没有配置为允许IPv6套接字。[…]
Accordingly, they list a Workaround as well:
因此,他们也列出了一个变通方案:
Run with -Djava.net.preferIPv4Stack=true
运行-Djava.net.preferIPv4Stack = true
add a firewall exception for the Java binary.
为Java二进制添加防火墙异常。
run with -Djava.net.preferIPv4Stack=true (which disables IPv6 and uses AF_INET sockets exclusively)
使用-Djava.net.preferIPv4Stack=true(它禁用IPv6并只使用AF_INET套接字)运行
or disable stateful FTP inspection in the firewall (registry setting or netsh command)
或在防火墙中禁用有状态FTP检查(注册表设置或netsh命令)
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).
在Java 7中,防火墙的调整似乎是一个确定的解决方案,在套接字异常的注释#4中(尽管简单地将其关闭,当然应该小心处理)。
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:
假设你已经知道了Robamaton对Eclipse的答案,Android插件,安装新软件只是说“待定”(有很多ADT相关的问题,奇怪的是它没有在各自的搜索中立即出现)?它主要归结于Codejammer对首选项的提示——>网络连接(+1),尽管它解释了为什么它仍然会在你的网络上失败,但是请看评论:
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.
好的,在之前的评论中,它可能试图通过。袜子5 -但我们的网络只有袜子4。Admin将运行5个版本,看看它是否正常工作。
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).
无论袜子4与袜子5代理设置是真正的问题,一个潜在的解决方法可能是在不同的系统上安装Eclipse和ADT(最理想的是在一个不同的网络),并将生成的文件夹复制到你之后(毕竟,一个Eclipse安装仅仅是一个收集的文件)。
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).
当这样做时,请确保在源和目标系统之间的JDK和Eclipse都匹配32和64位,因为不匹配将导致其他问题(参见我的答案,在启动Eclipse时未能加载JNI共享库)。
#5
2
If you were unable to get network update working, please try downloading the ADT zip package and installing locally as the download page says.
如果您无法使网络更新工作,请尝试下载ADT zip包并按照下载页面的说明在本地安装。
http://developer.android.com/sdk/eclipse-adt.html
http://developer.android.com/sdk/eclipse-adt.html
#6
2
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.
有时我可以从Alice那里访问dl-ssl主机,但是在以后的一些操作中,它会挂起然后超时。过了一天左右,我可能会重新建立联系。有些人说他们很幸运地通过代理,或者将“http”改为“https”。我也看到了这一点。
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.
首先,Eclipse是非常糟糕的bug,并且非常糟糕地处理突发情况(例如,捕获所有异常,但未能提供异常的消息!),特别是在没有响应的链接时。这让我想起了精神失常的精神病医生的股票故事。
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.
不幸的是,一次Eclipse更新可能需要快速连续地连接多个连接;第一次不确定如何配置Eclipse的人可能会遇到谷歌陷阱。
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!
干杯!
#7
0
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.
我也有同样的问题,这让我抓狂。我不停地尝试了几个小时——得到了同样的错误信息——然后马上就成功了!如果我是你,我就把它放一段时间,几个小时后再回来,再试一次。我发现,网上还有其他一些建议的解决方案,但这两种方法似乎都不重要。
#8
0
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).
我用以下方法解决了这个问题。找到SDKManager。exe并运行它。在这个程序中找到代理配置并在那里填充它。然后,从这个程序尝试更新您的SDK(可能这将要求您重新启动这个程序)。
I do not know why but Eclipse proxy configuration is not working in case of Android ADT.
我不知道为什么Eclipse代理配置在Android ADT的情况下不能正常工作。
P.S. You have to use JDK 6 (or 5), not JDK 7!!!
附注:你必须使用JDK 6(或5),而不是JDK 7!
#9
0
Use Following link to update ADT Pligins.
使用以下链接更新ADT Pligins。
https://dl-ssl.google.com/android/eclipse/site.xml
https://dl-ssl.google.com/android/eclipse/site.xml
#10
0
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.
当我遇到这个问题时,我找到的唯一答案是下载最新的“Eclipse Indigo for Java”,更新ADT和android SDK。几小时后,一切都很正常。
#11
0
Turning off IPv6 worked for me.
关闭IPv6对我起了作用。