build.gradle 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion 25
  4. defaultConfig {
  5. minSdkVersion 19
  6. targetSdkVersion 25
  7. versionCode 1
  8. versionName "1.0"
  9. externalNativeBuild {
  10. cmake {
  11. cppFlags ""
  12. }
  13. ndk{
  14. // 打包生成的 APK 文件指挥包含 ARM 指令集的动态库
  15. abiFilters "armeabi-v7a" /*, "arm64-v8a", "x86", "x86_64"*/
  16. }
  17. }
  18. }
  19. externalNativeBuild {
  20. cmake {
  21. path "CMakeLists.txt"
  22. }
  23. }
  24. ndkVersion '23.0.7599858'
  25. }
  26. dependencies {
  27. implementation fileTree(include: ['*.jar'], dir: 'libs')
  28. implementation 'androidx.appcompat:appcompat:1.3.0-alpha02'//1.1.0
  29. implementation 'com.google.android.material:material:1.1.0'
  30. implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
  31. testImplementation 'junit:junit:4.+'
  32. androidTestImplementation 'androidx.test.ext:junit:1.1.1'
  33. androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
  34. implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
  35. implementation 'com.alibaba:fastjson:1.1.55.android'
  36. }