build.gradle 897 B

12345678910111213141516171819202122232425262728293031323334
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. apply from: "config.gradle"
  3. buildscript {
  4. repositories {
  5. maven {
  6. url 'https://maven.aliyun.com/repository/public/'
  7. }
  8. // 如果你还需要其他官方仓库,可以继续添加
  9. mavenCentral() // 或者 jcenter(),取决于你的需求
  10. google()
  11. // jcenter()
  12. }
  13. dependencies {
  14. classpath 'com.android.tools.build:gradle:7.1.1'
  15. // NOTE: Do not place your application dependencies here; they belong
  16. // in the individual module build.gradle files
  17. }
  18. }
  19. allprojects {
  20. repositories {
  21. maven {
  22. url 'https://maven.aliyun.com/repository/public/'
  23. }
  24. mavenCentral()
  25. google()
  26. // jcenter()
  27. }
  28. }
  29. task clean(type: Delete) {
  30. delete rootProject.buildDir
  31. }