Android Studio Error:Connection timed out: connect.解决方案
2017-03-16 20:22
267 查看
<
4000
p style="margin-top:0px;margin-bottom:0px;padding-top:0px;padding-bottom:0px;color:rgb(85,85,85);font-family:'microsoft yahei';font-size:15px;line-height:35px;">
小编把Android Studio升级到了2.0版本,但是遇到了这样的错误:
Error:Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy settings either in IDE or Gradle
错误发生在构建Gradle的过程中正在下载gradle.zip文件的时候,估计应该是访问地址被墙了,而下载不了该文件。于是小编在网上搜索了各种办法,最后总结出以下有效的解决方案。
1、手动下载gradle.zip文件
打开项目里gradle\wrapper\gradle-wrapper.properties这个文件,找到类似于下面的这一行:
用下载工具把后面网址对应的文件下载下来,如果一直无法下载,那么也可以通过以下网址:
http://services.gradle.org/distributions
找到对应的版本进行下载,或直接用网址http://downloads.gradle.org/distributions/gradle-x.x-all.zip下载也可以。
2、把下载的文件直接复制到C:\Users\Administrator\.gradle\wrapper\dists\gradle-x.x-all\中时间最近的目录下,单击Android Studio工具栏“Sync Project Gradle Files”或者重启Android Studio,问题就可以解决了。
本文转载自:http://blog.csdn.net/u013541140
4000
p style="margin-top:0px;margin-bottom:0px;padding-top:0px;padding-bottom:0px;color:rgb(85,85,85);font-family:'microsoft yahei';font-size:15px;line-height:35px;">
小编把Android Studio升级到了2.0版本,但是遇到了这样的错误:
Error:Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy settings either in IDE or Gradle
错误发生在构建Gradle的过程中正在下载gradle.zip文件的时候,估计应该是访问地址被墙了,而下载不了该文件。于是小编在网上搜索了各种办法,最后总结出以下有效的解决方案。
1、手动下载gradle.zip文件
打开项目里gradle\wrapper\gradle-wrapper.properties这个文件,找到类似于下面的这一行:
distributionUrl=https\://services.gradle.org/distributions/gradle-x.x-all.zip
用下载工具把后面网址对应的文件下载下来,如果一直无法下载,那么也可以通过以下网址:
http://services.gradle.org/distributions
找到对应的版本进行下载,或直接用网址http://downloads.gradle.org/distributions/gradle-x.x-all.zip下载也可以。
2、把下载的文件直接复制到C:\Users\Administrator\.gradle\wrapper\dists\gradle-x.x-all\中时间最近的目录下,单击Android Studio工具栏“Sync Project Gradle Files”或者重启Android Studio,问题就可以解决了。
本文转载自:http://blog.csdn.net/u013541140
相关文章推荐
- Android Studio Error:Connection timed out: connect.解决方案
- Android Studio Error:Connection timed out: connect.解决方案
- Android Studio Error:Connection timed out: connect.解决方案
- Android Studio Error:Connection timed out: connect.解决方案
- 已解决:Android Studio Error:Connection timed out: connect
- Android Studio Error:Connection timed out: connect处理
- Android Studio Error:Connection timed out: connect
- Android Studio Error:Connection timed out: connect.解决方案
- Android Studio Error:Connection timed out: connect.异常
- java.net.ConnectException: Connection timed out: connect--解决方案
- android studio failed to open zip file .Android Studio Error:Connection timed out: connect.
- Android 开发 Error:Connection timed out: connect. If you are behind an HTTP proxy, please configure th
- Androidgradle报错之:Error:Connection timed out: connect
- android studio failed to open zip file .Android Studio Error:Connection timed out: connect.
- AndroidStudio项目报错Error:Connection timed out: connect. If you are behind an HTTP proxy, please config
- Android Studio 出现Error:Connection timed out: connect.解决方案
- Android Studio Error:Connection timed out: connect.
- hibernate3.0 org.dom4j.DocumentException: Connection timed out: connect Nested exception:
- Could not connect to host localhost on port 21212. java.net.ConnectException: Connection timed out: connect
- Connection timed out: connect