gradle配置


  gradle-plugin版本对应关系如下 - 官网链接

https://developer.android.google.cn/studio/releases/gradle-plugin

buildscript {
repositories {
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter' }
google()
jcenter()

}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.2'

// 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/' }
maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter' }
google()
jcenter()

}
}

task clean(type: Delete) {
delete rootProject.buildDir
}
posted @ 2019-11-14 18:55  AZ_mxl  阅读(299)  评论(0编辑  收藏  举报