学考乐离线App
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

build.gradle 734B

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