Android studio Connection timed out: connect

匿名 (未验证) 提交于 2019-12-02 21:53:52

在这之前,想着配置国内镜像,结果镜像不可用,就出现了这个问题,改回no proxy,也没用

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

解决:

gradle.properties中改回来就行

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!