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. // 注册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 'http://maven.aliyun.com/nexus/content/groups/public/' }
  24. maven { url "https://jitpack.io" }
  25. mavenCentral()
  26. maven { url 'https://dl.bintray.com/umsdk/release' }
  27. google()
  28. // 添加下面的内容
  29. flatDir {
  30. dirs 'libs'
  31. }
  32. }
  33. }
  34. task clean(type: Delete) {
  35. delete rootProject.buildDir
  36. }