美文网首页
SSL peer shut down incorrectly 问

SSL peer shut down incorrectly 问

作者: 风度_dbfe | 来源:发表于2021-12-07 14:59 被阅读0次

在AS编译时有时会出现SSL peer shut down incorrectly的问题或者因为外网的原因一些依赖和jar包导入失败,这时候我们可以想前端的cnpm是一样配置国内镜像。

这里我们选择阿里的镜像:http://maven.aliyun.com/nexus/content/groups/public/

buildscript {

    repositories {
        maven { url 'https://jitpack.io' }
        maven { url 'https://maven.aliyun.com/repository/public' }
        maven { url 'https://maven.aliyun.com/repository/central' }
        maven { url 'https://maven.aliyun.com/repository/google' }
        maven { url 'https://maven.aliyun.com/repository/public' }
        maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
        google()
        jcenter()
    }
    dependencies {
       .....
    }
}

allprojects {
    repositories {
        maven { url 'https://jitpack.io' }
        maven { url 'https://maven.aliyun.com/repository/public' }
        maven { url 'https://maven.aliyun.com/repository/central' }
        maven { url 'https://maven.aliyun.com/repository/google' }
        maven { url 'https://maven.aliyun.com/repository/public' }
        maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
        google()
        jcenter() // jecnter最好放在最后一个  ===速度慢===
    }
}

相关文章

网友评论

      本文标题:SSL peer shut down incorrectly 问

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