build.gradle 782 B

12345678910111213141516171819202122232425262728293031323334
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. buildscript {
  3. repositories {
  4. jcenter()
  5. google()
  6. }
  7. dependencies {
  8. classpath 'com.android.tools.build:gradle:2.3.3'
  9. // NOTE: Do not place your application dependencies here; they belong
  10. // in the individual module build.gradle files
  11. }
  12. }
  13. //wuyq add for compile error begin
  14. allprojects {
  15. repositories {
  16. jcenter()
  17. google()
  18. }
  19. gradle.taskGraph.whenReady {
  20. tasks.each { task ->
  21. if (task.name == 'mockableAndroidJar') {
  22. task.enabled = false
  23. }
  24. }
  25. }
  26. }
  27. //wuyq add for compile error end
  28. task clean(type: Delete) {
  29. delete rootProject.buildDir
  30. }