build.gradle 845 B

123456789101112131415161718192021222324252627282930313233343536
  1. plugins {
  2. id 'com.android.library'
  3. id 'kotlin-android'
  4. }
  5. android {
  6. compileSdkVersion 25
  7. namespace 'com.example.zloadingview' // <-- 在这里添加 namespace
  8. defaultConfig {
  9. minSdkVersion 15
  10. targetSdkVersion 25
  11. versionCode 1
  12. versionName "1.0"
  13. }
  14. lintOptions {
  15. abortOnError false
  16. }
  17. buildTypes {
  18. release {
  19. minifyEnabled false
  20. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  21. }
  22. }
  23. }
  24. dependencies {
  25. // implementation fileTree(include: ['*.jar'], dir: 'libs')
  26. implementation 'com.android.support:support-annotations:27.0.1'
  27. implementation libs.androidx.annotation.jvm
  28. // implementation 'androidx.annotation:annotation:1.2.0'
  29. // implementation libs.androidx.annotation.jvm
  30. }