You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

config.gradle 934B

1234567891011121314151617181920212223242526272829303132333435
  1. // 通用配置
  2. android {
  3. compileSdkVersion 29
  4. defaultConfig {
  5. minSdkVersion 21
  6. targetSdkVersion 29
  7. versionName '1.0'
  8. versionCode 10
  9. }
  10. // 支持 Java JDK 8
  11. compileOptions {
  12. targetCompatibility JavaVersion.VERSION_1_8
  13. sourceCompatibility JavaVersion.VERSION_1_8
  14. }
  15. // 设置存放 so 文件的目录
  16. sourceSets {
  17. main {
  18. jniLibs.srcDirs = ['libs']
  19. }
  20. }
  21. }
  22. dependencies {
  23. // 依赖 libs 目录下所有 jar 包
  24. implementation fileTree(include: ['*.jar'], dir: 'libs')
  25. // 依赖 libs 目录下所有 aar 包
  26. implementation fileTree(include: ['*.aar'], dir: 'libs')
  27. // 谷歌兼容库:https://developer.android.google.cn/jetpack/androidx/releases/appcompat?hl=zh-cn
  28. implementation 'androidx.appcompat:appcompat:1.3.0-alpha01'
  29. implementation 'com.google.android.material:material:1.3.0-alpha01'
  30. }