1234567891011121314151617181920212223 |
- // 定义适用于所有模块的依赖项 Top-level build file where you can add configuration options common to all sub-projects/modules.
- buildscript {
- repositories {
- google()
- mavenCentral()
- }
- dependencies {
- classpath "com.android.tools.build:gradle:7.0.1"
- classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.20"
-
- // NOTE: Do not place your application dependencies here; they belong
- // in the individual module build.gradle files
- }
- }
-
- task clean(type: Delete) {
- delete rootProject.buildDir
- }
-
- //在项目级别定义某些属性并在所有模块之间共享这些属性
- ext {
- compile_sdk_version = 30 //使用rootProject.ext.compile_sdk_version
- }
|