build.gradle 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. buildscript {
  3. repositories {
  4. google()
  5. jcenter()
  6. // maven {
  7. // url 'https://maven.google.com/'
  8. // name 'Google'
  9. // }
  10. // 配置HMS Core SDK的Maven仓地址。
  11. maven {url 'https://developer.huawei.com/repo/'}
  12. }
  13. dependencies {
  14. classpath 'com.android.tools.build:gradle:4.1.1'
  15. // 增加agcp配置。
  16. classpath 'com.huawei.agconnect:agcp:1.4.1.300'
  17. // NOTE: Do not place your application dependencies here; they belong
  18. // in the individual module build.gradle files
  19. }
  20. }
  21. allprojects {
  22. repositories {
  23. google()
  24. jcenter()
  25. // maven {
  26. // url 'https://maven.google.com/'
  27. // name 'Google'
  28. // }
  29. // 配置HMS Core SDK的Maven仓地址。
  30. maven {url 'https://developer.huawei.com/repo/'}
  31. }
  32. }
  33. task clean(type: Delete) {
  34. delete rootProject.buildDir
  35. }