Android Studio Error:Connection timed out: connect.异常
2017-05-22 22:47
471 查看
问题: 把Android
Studio升级到了2.2版本,遇到了这样的错误:
Error:Connection timed out: connect.
错误发生在构建Gradle的过程中正在下载gradle.zip文件的时候,估计应该是访问地址被墙了,而下载不了该文件。
解决办法:
首先打开android studio项目 找到项目目录gradle\wrapper\gradle-wrapper.properties这个文件
内容如下
#Wed Apr 10 15:27:10 PDT 2013
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=http\://services.gradle.org/distributions/gradle-1.9-all.zip
最重要的就是这行
1前往http://services.gradle.org/distributions该地址下载上述distributionUrl对应的版本gradle
2将下载完的jar不解压,放到C:\Users\Administrator\.gradle\wrapper\dists\gradle-1.9-all\3jdgemv0iv8uqohg3kcp2o88r1 目录下
3 重新关闭android studio 重新打开 或 直接单击android studio工具栏 Sync Project Gradle Files
android studio就是自动更新插件了,不用下载了
Studio升级到了2.2版本,遇到了这样的错误:
Error:Connection timed out: connect.
错误发生在构建Gradle的过程中正在下载gradle.zip文件的时候,估计应该是访问地址被墙了,而下载不了该文件。
解决办法:
首先打开android studio项目 找到项目目录gradle\wrapper\gradle-wrapper.properties这个文件
内容如下
#Wed Apr 10 15:27:10 PDT 2013
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=http\://services.gradle.org/distributions/gradle-1.9-all.zip
最重要的就是这行
1前往http://services.gradle.org/distributions该地址下载上述distributionUrl对应的版本gradle
2将下载完的jar不解压,放到C:\Users\Administrator\.gradle\wrapper\dists\gradle-1.9-all\3jdgemv0iv8uqohg3kcp2o88r1 目录下
3 重新关闭android studio 重新打开 或 直接单击android studio工具栏 Sync Project Gradle Files
android studio就是自动更新插件了,不用下载了
相关文章推荐
- Android Studio Error:Connection timed out: connect.解决方案
- Android Studio Error:Connection timed out: connect.
- android studio failed to open zip file .Android Studio 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
- 异常Error:Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy
- Android 开发 Error:Connection timed out: connect. If you are behind an HTTP proxy, please configure th
- Androidgradle报错之:Error:Connection timed out: connect
- AIR打包错误Error creating AIR file: Could not generate timestamp: Connection timed out: connect
- 解决:Error:Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy
- Error:Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy set
- DownloadError: android.googlesource.com: <urlopen error [Errno 110] Connection timed out>
- Android Studio Error:Connection timed out: connect.解决方案
- Gradle升级,Error:Connection timed out: connect. If you are behind an HTTP proxy, please configure
- 【已解决】Exception java.net.ConnectException: Error opening socket to server Connection timed out.
- GCM google云推送异常 java.net.ConnectException: Connection timed out: connect
- Gradle 'ExoPlayer-release-v2' project refresh failed Error:Connection timed out: connect
- Eclipse 远程调试 “Failed to connect to remote VM. Connection timed out ” error,
- 已解决:Android Studio Error:Connection timed out: connect