build.gradle 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. buildscript {
  3. repositories {
  4. google()
  5. //阿里镜像
  6. // jcenter()
  7. maven { url 'https://dl.bintray.com/umsdk/release' }
  8. maven{ url'http://maven.aliyun.com/nexus/content/groups/public/' }
  9. maven{ url'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
  10. }
  11. dependencies {
  12. classpath 'com.android.tools.build:gradle:3.1.2'
  13. // classpath 'com.mob.sdk:MobSDK:+'
  14. // classpath "com.mob.sdk:MobSDK:2018.0319.1724"
  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. // jcenter()
  22. //阿里镜像
  23. maven { url "https://jitpack.io" }
  24. mavenCentral()
  25. maven { url 'https://dl.bintray.com/umsdk/release' }
  26. google()
  27. maven{ url'http://maven.aliyun.com/nexus/content/groups/public/' }
  28. maven{ url'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
  29. // 添加下面的内容
  30. flatDir {
  31. dirs 'libs'
  32. }
  33. }
  34. }
  35. task clean(type: Delete) {
  36. delete rootProject.buildDir
  37. }