buildscript { ext { application_id = "com.lanyun.wanglaotou" compile_sdk_version = 31 min_sdk_version = 21 target_sdk_version = 30 //版本号 version_code = 1 version_name = "1.0.1" java_version = JavaVersion.VERSION_11 gradle_version = '7.0.4' kotlin_version = '1.6.10' compose_version = '1.1.1' startup_version = "1.0.0" core_ktx_version = '1.6.0' appcompat_version = '1.3.1' material_version = '1.4.0' lifecycle_version = '2.3.1' activity_compose_version = '1.3.1' navigation_version = '2.4.0-alpha05' coil_version = '1.4.0' accompanist_pager = "0.16.1" lifecycle_compose_version = "1.0.0-alpha07" leakcanary_version = "2.6" lottie_version = "4.0.0" mmkv_version = "1.2.8" room_version = "2.4.0-alpha04" //net retrofit_version = "2.9.0" okhttp_version = "4.9.1" paging_version = "3.0.1" paging_compose_version = "1.0.0-alpha12" datastore_version = "1.0.0-alpha05" compose_ui_version = '1.1.1' androidapppdate_version="8.0.0" drawablepainter_version="0.16.0" roomVersion = '2.0.0' workVersion = '1.0.0-beta01' junitVersion = '4.12' buildToolsVersion = '28.0.2' lifecycleVersion = '2.0.0' androidTestVersion = '1.1.1' androidEspressoVersion = '3.1.1' } repositories { google() mavenCentral() maven { url 'https://jitpack.io' } } dependencies { classpath "com.android.tools.build:gradle:$gradle_version" classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } }// Top-level build file where you can add configuration options common to all sub-projects/modules. allprojects { repositories { maven { url "https://www.jitpack.io" } maven { //信任这个库 allowInsecureProtocol = true url "http://maven.aliyun.com/nexus/content/groups/public" } google() mavenCentral() // flatDir { // dirs 'libs','../core/src/main/libs' //我的aar在youkuPlayer Module下 // } } //配置这个 tasks.withType(Javadoc) { options.addStringOption('Xdoclint:none', '-quiet') options.addStringOption('encoding', 'UTF-8') } } task clean(type: Delete) { delete rootProject.buildDir }