Android Studio Error:Connection timed out: connect.
2017-06-13 09:14
567 查看
最近在配置使用android studio时遇到了个错误Android Studio Error:Connection
timed out: connect.,纠结了很久,后来在网上看到了一篇文章,试了下很有帮助,在这里给大家也看一下,希望能帮到同样错误的小伙伴
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
timed out: connect.,纠结了很久,后来在网上看到了一篇文章,试了下很有帮助,在这里给大家也看一下,希望能帮到同样错误的小伙伴
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 failed to open zip file .Android Studio Error:Connection timed out: connect.
- Android Studio Error:Connection timed out: connect.异常
- Android Studio Error:Connection timed out: connect.解决方案
- AndroidStudio项目报错Error:Connection timed out: connect. If you are behind an HTTP proxy, please config
- android studio failed to open zip file .Android Studio Error:Connection timed out: connect.
- Androidgradle报错之:Error:Connection timed out: connect
- Android 开发 Error:Connection timed out: connect. If you are behind an HTTP proxy, please configure th
- loadrunner:Action.c(4): Error -27796: Failed to connect to server "192.168.66.3:8080": [10060] Connection timed out
- Studio 更新的时候提示Connection failed (connect timed out). Please check network connection and try again.
- Error:Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy set
- Error:Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy...
- Eclipse 远程调试 “Failed to connect to remote VM. Connection timed out ” error,
- Launch error: Failed to connect to remote VM. Connection timed out
- 解决:Error:Connection timed out: connect. If you are behind an HTTP proxy, please
- ERROR:java.net.ConnectException: Connection timed out: connect
- Error:Connection timed out:connect.
- DownloadError: android.googlesource.com: <urlopen error [Errno 110] Connection timed out>
- Error:Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy set
- Action.c(28): Error -27796: Failed to connect to server "xxxx": [10060] Connection timed out 问题分析 分类
- Error:Connection timed out: connect