// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { ext.kotlin_version = '1.4.21' repositories { google() jcenter() maven {url 'http://developer.huawei.com/repo/'} } dependencies { classpath "com.android.tools.build:gradle:4.0.2" classpath 'com.huawei.agconnect:agcp:1.4.2.300' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } allprojects { repositories { google() jcenter() mavenCentral() maven { url "https://jitpack.io" } maven { url 'https://dl.bintray.com/umsdk/release' } maven { url 'http://maven.aliyun.com/nexus/content/repositories/releases/' } maven { url "https://dl.bintray.com/rongcloud/maven" } maven {url 'http://developer.huawei.com/repo/'} flatDir { dirs 'libs' } } } task clean(type: Delete) { delete rootProject.buildDir }