build.gradle 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}
  7. // jcenter()
  8. maven { url 'https://dl.bintray.com/umsdk/release' }
  9. }
  10. dependencies {
  11. classpath 'com.android.tools.build:gradle:3.1.2'
  12. // classpath 'com.mob.sdk:MobSDK:+'
  13. // classpath "com.mob.sdk:MobSDK:2018.0319.1724"
  14. // NOTE: Do not place your application dependencies here; they belong
  15. // in the individual module build.gradle files
  16. }
  17. }
  18. allprojects {
  19. repositories {
  20. // jcenter()
  21. //阿里镜像
  22. maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
  23. maven { url "https://jitpack.io" }
  24. mavenCentral()
  25. maven { url 'https://dl.bintray.com/umsdk/release' }
  26. google()
  27. // 添加下面的内容
  28. flatDir {
  29. dirs 'libs'
  30. }
  31. }
  32. }
  33. task clean(type: Delete) {
  34. delete rootProject.buildDir
  35. }