美文网首页
AndroidStudio SSL peer shut down

AndroidStudio SSL peer shut down

作者: 我是来捕鱼的 | 来源:发表于2019-10-04 20:14 被阅读0次

    是因为通过jcenter更新gradle很慢,所以报错,需要在build.gradle中使用国内的仓库源
    添加maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }

    buildscript {
        ext.kotlin_version = '1.3.21'
        repositories {
            google()
            maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
            jcenter()
            
        }
        dependencies {
            classpath 'com.android.tools.build:gradle:3.4.0'
            classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
            // NOTE: Do not place your application dependencies here; they belong
            // in the individual module build.gradle files
        }
    }
    
    allprojects {
        repositories {
            google()
            maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
            jcenter()
            
        }
    }
    
    task clean(type: Delete) {
        delete rootProject.buildDir
    }
    

    相关文章

      网友评论

          本文标题:AndroidStudio SSL peer shut down

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