Gradle sync failed: Connection timed out: connect
Posted 千彧
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Gradle sync failed: Connection timed out: connect相关的知识,希望对你有一定的参考价值。
打开AS的project试图,找到gradle目录下的wrapper下面的gradle wrapper.properities找到:
distributionUrl=https\\://services.gradle.org/distributions/gradle-4.0-milestone-1-all.zip
找一个高版本的地址进行替换。
也可以手动下载http://services.gradle.org/distributions/
下载的文件直接复制到C:\\Users\\Administrator\\.gradle\\wrapper\\dists\\gradle-x.x-all\\中时间最近的目录下,单击android Studio工具栏“Sync Project Gradle Files”或者重启Android Studio。
以上是关于Gradle sync failed: Connection timed out: connect的主要内容,如果未能解决你的问题,请参考以下文章
Gradle sync failed: Gradle sync failed: Timeout waiting to lock cp_init remapped class cache for a2h
Gradle Sync Failed:Setup Project Failed:Null
android studio 更新 Gradle错误解决方法(Gradle sync failed)
Gradle工程错误:Gradle sync failed: Java home is different
Gradle sync failed: Connection timed out: connect
Gradle sync failed: Gradle version 2.2 is required. Current version is 2.10.