// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { ext.kotlin_version = '1.6.10' repositories { maven { url "https://maven.aliyun.com/repository/public" } //依赖库 maven { url 'https://jitpack.io' } google() //华为推送 maven { url 'https://developer.huawei.com/repo/' } //荣耀推送 maven { url 'https://developer.hihonor.com/repo/' } mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:4.2.2' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath 'org.greenrobot:greendao-gradle-plugin:3.3.0' //华为推送 classpath 'com.huawei.agconnect:agcp:1.6.0.300' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { maven { url "https://maven.aliyun.com/repository/public" } //依赖库 maven { url 'https://jitpack.io' } google() maven { url "https://mvn.getui.com/nexus/content/repositories/releases/" } //华为推送 maven { url 'https://developer.huawei.com/repo/' } //荣耀推送 maven { url 'https://developer.hihonor.com/repo/' } mavenCentral() } } tasks.register('clean', Delete) { delete rootProject.buildDir }