buildscript { ext.kotlin_version = '1.3.50' repositories { google() jcenter() // maven { url 'https://maven.aliyun.com/repository/public' } // maven { url 'https://maven.aliyun.com/repository/google' } // maven { url 'https://maven.aliyun.com/repository/central' } maven {url 'http://developer.huawei.com/repo/'} } dependencies { // classpath 'com.android.tools.build:gradle:4.0.2' classpath 'com.android.tools.build:gradle:3.6.2' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath 'com.huawei.agconnect:agcp:1.2.1.301' } } allprojects { repositories { google() jcenter() // maven { url 'https://maven.aliyun.com/repository/public' } // maven { url 'https://maven.aliyun.com/repository/google' } // maven { url 'https://maven.aliyun.com/repository/central' } maven { url 'http://developer.huawei.com/repo/' } } } rootProject.buildDir = '../build' subprojects { project.buildDir = "${rootProject.buildDir}/${project.name}" } subprojects { project.evaluationDependsOn(':app') } task clean(type: Delete) { delete rootProject.buildDir }