美文网首页
Kotlin依赖镜像下载地址

Kotlin依赖镜像下载地址

作者: nickieeee | 来源:发表于2020-02-14 21:50 被阅读0次

项目的根 build.gradle文件

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    ext.kotlin_version = '1.3.50'
    repositories {
        maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}
        google()
        jcenter()
        
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.5.2'
        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 {
        maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}
        google()
        jcenter()
        
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

如果新建kotlin项目的依赖一直在下载,可以使用阿里云的镜像地址试试

maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}

相关文章

网友评论

      本文标题:Kotlin依赖镜像下载地址

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