首页 新闻 会员 周边 捐助

Android studio Connection timed out: connect

0
悬赏园豆:5 [已关闭问题] 关闭于 2018-07-10 11:32

Github找的项目,通过地址克隆,或者下载到本地都出现这个问题,

在这之前没有这个问题

学校断了一次网后,或者我尝试配置AS的国内镜像(未成功)后,

就出现了这个问题,

Connection timed out: connect

具体:

org.gradle.api.ProjectConfigurationException: A problem occurred configuring root project 'WanNengAdapter'

Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':classpath'

Caused by: org.gradle.internal.resolve.ModuleVersionResolveException: Could not resolve com.android.tools.build:gradle:4.4

Caused by: org.gradle.api.resources.ResourceException: Could not get resource 'https://jcenter.bintray.com/com/android/tools/build/gradle/4.4/gradle-4.4.pom'

Caused by: org.gradle.internal.resource.transport.http.HttpRequestException: Could not GET 'https://jcenter.bintray.com/com/android/tools/build/gradle/4.4/gradle-4.4.pom'

Caused by: org.apache.http.conn.HttpHostConnectException: Connect to mirrors.dormforce.net:80 [mirrors.dormforce.net/202.115.22.208] failed: Connection timed out: connect

问题补充:

我选择了no proxy 还是会这样

大佬们帮帮忙啊!!

№DynTang的主页 №DynTang | 菜鸟二级 | 园豆:204
提问于:2018-07-10 10:46

我选择了no proxy 还是会这样

№DynTang 6年前
< >
分享
所有回答(1)
0

在gradle.properties改回来就行了

№DynTang | 园豆:204 (菜鸟二级) | 2018-07-10 11:31
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册