// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { ext.kotlin_version = '1.4.0' println "\n\n\n" println '当前选择版本 Version Name:'+ version_name println '当前选择版本 Version Code:'+ Integer.valueOf(version_code) println "\n\n\n" repositories { maven { url 'https://maven.aliyun.com/repository/public' } maven { url 'https://jitpack.io' } google() mavenCentral() maven {url 'http://developer.huawei.com/repo/'} maven { url "http://mvn.mob.com/android" } maven { url 'https://repo1.maven.org/maven2/' } } dependencies { classpath 'com.android.tools.build:gradle:3.6.2' //realm 数据库插件 classpath "io.realm:realm-gradle-plugin:5.3.0" // android 资源混淆插件 classpath 'com.tencent.mm:AndResGuard-gradle-plugin:1.2.16' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath 'com.huawei.agconnect:agcp:1.3.1.300' } } allprojects { repositories { google() mavenCentral() maven { url 'https://maven.aliyun.com/repository/public' } maven { url 'https://jitpack.io' } maven { url "http://mvn.mob.com/android" } maven { url 'https://repo1.maven.org/maven2/' } maven { url 'http://developer.huawei.com/repo/' } maven(){ url 'http://sdk-repository.wujiehh.com:8081/repository/WJHD/' credentials { username = 'wjhd' password = 'WV9#i%C3e@p$jtPyU*ds^VUp317koE1Y' } } } //网络慢的话就去 https://maven.aliyun.com/mvn/view 里面找个代理的仓库。 } task clean(type: Delete) { delete rootProject.buildDir }