// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { //google() jcenter() maven { url 'https://jitpack.io' } maven { url 'https://maven.aliyun.com/repository/google' } maven { url 'https://maven.aliyun.com/repository/public' } } dependencies { classpath "com.android.tools.build:gradle:4.0.1" // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { ext { compileSdkVersion = 31 minSdkVersion = 21 targetSdkVersion = 31 coreKtxVersion = '1.6.0' appcompatVersion = '1.4.1' materialVersion = '1.6.0' constraintlayoutVersion = '2.0.3' legacySupportV4 ='1.0.0' lifecycleVersion = '2.4.0' junitVersion = '4.13.2' testExtJunitVersion='1.1.3' espressoCoreVersion='3.4.0' //jacksonVersion='2.13.2' jacksonVersion='2.9.8' retrofitVersion='2.9.0' room_version = '2.4.2' pahoMqtt='1.2.5' } repositories { //google() jcenter() maven { url 'https://jitpack.io' } maven { url 'https://maven.aliyun.com/repository/google' } maven { url 'https://maven.aliyun.com/repository/public' } flatDir { dirs 'libs' // aar目录 } } } task clean(type: Delete) { delete rootProject.buildDir }