Error:SSL peer shut down incorrectly

报错信息:

Error:A problem occurred configuring project ':app'.
> Failed to notify project evaluation listener.
   > Could not resolve all dependencies for configuration ':app:_signnedDebugApk'.
      > A problem occurred configuring project ':circle'.
         > Could not resolve all dependencies for configuration ':circle:_debugPublish'.
            > A problem occurred configuring project ':common'.
               > Could not resolve all dependencies for configuration ':common:_debugPublish'.
                  > A problem occurred configuring project ':ptr'.
                     > Could not resolve all dependencies for configuration ':ptr:_debugPublish'.
                        > Could not determine artifacts for com.android.support:support-core-utils:25.4.0
                           > Could not get resource 'https://maven.google.com/com/android/support/support-core-utils/25.4.0/support-core-utils-25.4.0.aar'.
                              > Could not HEAD 'https://maven.google.com/com/android/support/support-core-utils/25.4.0/support-core-utils-25.4.0.aar'.
                                 > Remote host closed connection during handshake
   > Must apply 'com.android.application' first!

解决方法:将 maven {url “https://maven.google.com“} 换成 google();

allprojects {
    repositories {
      //maven {
     //      url "https://maven.google.com"
     //}
      google()
    }
}
    原文作者:cocoaroger
    原文地址: https://www.jianshu.com/p/4b2ae148264f
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞