build.gradle 790 B

12345678910111213141516171819202122232425262728293031323334
  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. }
  7. dependencies {
  8. classpath 'com.android.tools.build:gradle:3.4.2'
  9. classpath 'com.jakewharton:butterknife-gradle-plugin:9.0.0-rc2'
  10. // NOTE: Do not place your application dependencies here; they belong
  11. // in the individual module build.gradle files
  12. }
  13. }
  14. allprojects {
  15. repositories {
  16. // 添加下面的内容
  17. flatDir {
  18. dirs 'libs'
  19. }
  20. google()
  21. jcenter()
  22. maven { url "https://jitpack.io" }
  23. maven { url 'https://maven.google.com' }
  24. }
  25. }
  26. task clean(type: Delete) {
  27. delete rootProject.buildDir
  28. }