build.gradle 766 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. apply plugin: 'com.android.library'
  2. group='com.github.Jay-Goo'
  3. android {
  4. compileSdkVersion 28
  5. defaultConfig {
  6. minSdkVersion 16
  7. targetSdkVersion 28
  8. versionCode 7
  9. versionName "3.0.0"
  10. testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
  11. }
  12. buildTypes {
  13. release {
  14. minifyEnabled false
  15. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  16. }
  17. }
  18. }
  19. dependencies {
  20. implementation fileTree(dir: 'libs', include: ['*.jar'])
  21. implementation "androidx.annotation:annotation:1.1.0"
  22. implementation 'androidx.appcompat:appcompat:1.5.1'
  23. }
  24. // 指定编码
  25. tasks.withType(JavaCompile) {
  26. options.encoding = "UTF-8"
  27. }