Gradle'项目名称'项目刷新失败,错误:连接超时:conect

时间:2017-06-20 11:28:53

标签: android android-gradle

  

我已在设置中进行了更改 - > HTTP代理 - >自动检测代理    设置但不工作。   在我将android studio更新为2.3.3之后,我遇到了这个问题。

     

我已经检查过旧版本的android studio,但现在确实如此    不行。

当Gradle任务清理时: -

Error:A problem occurred configuring root project 'AllCartSearch'.
> Could not resolve all dependencies for configuration ':classpath'.
   > Could not resolve com.google.gms:google-services:3.0.0.
     Required by:
         project :
      > Could not resolve com.google.gms:google-services:3.0.0.
         > Could not get resource 'https://jcenter.bintray.com/com/google/gms/google-services/3.0.0/google-services-3.0.0.pom'.
            > Could not GET 'https://jcenter.bintray.com/com/google/gms/google-services/3.0.0/google-services-3.0.0.pom'.
               > Connect to jcenter.bintray.com:443 [jcenter.bintray.com/108.168.243.150] failed: Connection timed out: connect

这是gradle同步错误后的日志: - 引起:org.gradle.internal.resource.transport.http.HttpRequestException:无法获得' https://jcenter.bintray.com/com/google/gms/google-services/3.0.0/google-services-3.0.0.pom'。     在org.gradle.internal.resource.transport.http.HttpClientHelper.performRequest(HttpClientHelper.java:82) 引起:java.net.ConnectException:连接超时:连接     at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:337)     at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:134)     ......还有144个 2017-06-20 15:57:53,574 [1049961] WARN - nal.AbstractExternalSystemTask - 连接超时:连接 com.intellij.openapi.externalSystem.model.ExternalSystemException:连接超时:连接     在com.android.tools.idea.gradle.project.sync.idea.ProjectImportErrorHandler.getUserFriendlyError(ProjectImportErrorHandler.java:86)

1 个答案:

答案 0 :(得分:0)

我认为这个问题来自防病毒专门的Avast Antivirus,禁用它并再试一次。