build.gradle 850 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. buildscript {
  3. // 这个版本必须和IDE的插件版本一致
  4. ext.kotlin_version = '1.4.20'
  5. repositories {
  6. google()
  7. jcenter()
  8. }
  9. dependencies {
  10. classpath 'com.android.tools.build:gradle:3.6.1'
  11. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  12. // classpath 'com.hujiang.aspectjx:gradle-android-plugin-aspectjx:2.0.10'
  13. }
  14. }
  15. allprojects {
  16. repositories {
  17. google()
  18. jcenter()
  19. }
  20. }
  21. task clean(type: Delete) {
  22. delete rootProject.buildDir
  23. }
  24. // 统一编译版本
  25. ext.versions = [
  26. // Project
  27. minSdk : 24,
  28. compileSdk : 29,
  29. targetSdk : 29,
  30. buildTools : '29.0.2',
  31. ]