美文网首页
ERROR: SSL peer shut down incorr

ERROR: SSL peer shut down incorr

作者: duoduo7628 | 来源:发表于2019-09-25 14:37 被阅读0次

项目改变gradle版本后就报这个错
网上说将

distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip

改为

distributionUrl=http://services.gradle.org/distributions/gradle-5.1.1-all.zip

试了会报错

Gradle project sync failed Error:Connection reset

追后build.gradle加入 ,编译成功!花了好长时间,特此记录一下。

maven { url"http://jcenter.bintray.com"}

buildscript {
    
    repositories {
        google()
        jcenter()
        maven { url"http://jcenter.bintray.com"}
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.2.1'
        

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        google()
        jcenter()
        maven { url"http://jcenter.bintray.com"}
    }
}

相关文章

网友评论

      本文标题:ERROR: SSL peer shut down incorr

      本文链接:https://www.haomeiwen.com/subject/acziuctx.html