// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { ext.kotlin_version = '1.3.72' repositories { maven { url 'http://maven.aliyun.com/nexus/content/repositories/releases/' } maven { url 'https://developer.huawei.com/repo/' } maven { url 'https://jitpack.io' } maven { url 'https://repo1.maven.org/maven2/' } jcenter() mavenCentral() google() } dependencies { classpath 'com.android.tools.build:gradle:3.4.1' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // add plugin // 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/repositories/releases/' } maven { url 'https://developer.huawei.com/repo/' } maven { url 'https://jitpack.io' } maven { url 'https://repo1.maven.org/maven2/' } jcenter() mavenCentral() google() } } ext { compileSdkVersion = 29 buildToolsVersion = '29.0.3' minSdkVersion = 21 targetSdkVersion = 29 appTargetSdkVersion = 29 versionCode = 1123 versionName = '11.2.3' sdkSourceCompatibility = 1.8 sdkTargetCompatibility = 1.8 appSourceCompatibility = 1.8 appTargetCompatibility = 1.8 support = '28.0.0' constraint = '1.1.3' eventbus = '3.2.0' chadAdapter = '2.9.50' smartRefresh = '2.0.3' glide = '4.2.0' } task clean(type: Delete) { delete rootProject.buildDir }