当前位置:   article > 正文

DSL element 'DexOptions.incremental' is obsolete and will be removed at the end of 2018.

dsl element 'dexoptions.incremental' is obsolete and will be removed at the

MPAndroidChart   LineChart   绘制折线图图表时遇到的一个错误:

https://github.com/PhilJay/MPAndroidChart

https://github.com/alidili/Demos/tree/master/MPAndroidChartDemo

贡献出build.gradle

  1. android {
  2. compileSdkVersion 28
  3. defaultConfig {
  4. multiDexEnabled true
  5. applicationId "com.example.m1571.mycolorfulnews"
  6. // minSdkVersion 16
  7. minSdkVersion 21
  8. targetSdkVersion 28
  9. versionCode 1
  10. versionName "1.0"
  11. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  12. // 使用support.v8.renderscript
  13. renderscriptTargetApi 18
  14. renderscriptSupportModeEnabled true
  15. multiDexEnabled true
  16. }
  17. dexOptions {
  18. // incremental true
  19. }
  20. buildTypes {
  21. release {
  22. minifyEnabled false
  23. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  24. }
  25. }
  26. }
  27. dependencies {
  28. implementation fileTree(dir: 'libs', include: ['*.jar'])
  29. // implementation 'com.android.support:appcompat-v7:28.0.0'
  30. implementation 'com.android.support.constraint:constraint-layout:1.1.3'
  31. testImplementation 'junit:junit:4.12'
  32. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  33. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  34. annotationProcessor 'com.jakewharton:butterknife-compiler:8.0.1'
  35. debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.4-beta2'
  36. releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.4-beta2'
  37. testImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.4-beta2'
  38. annotationProcessor 'com.google.dagger:dagger-compiler:2.2'
  39. //指定注解处理器
  40. //dagger公用api
  41. compileOnly 'org.glassfish:javax.annotation:10.0-b28'
  42. //添加android缺失的部分javax注解
  43. // Because RxAndroid releases are few and far between, it is recommended you also
  44. // explicitly depend on RxJava's latest version for bug fixes and new features.
  45. // implementation 'com.android.support:design:23.4.0'
  46. implementation 'com.android.support:design:26.1.0'
  47. implementation 'com.jakewharton:butterknife:8.0.1'
  48. implementation 'com.android.support:support-v4:24.2.1'
  49. implementation 'com.android.support:recyclerview-v7:26.1.0'
  50. implementation 'com.google.dagger:dagger:2.2'
  51. implementation 'io.reactivex:rxandroid:1.2.0'
  52. implementation 'io.reactivex:rxjava:1.1.5'
  53. implementation 'com.google.code.gson:gson:2.4'
  54. implementation 'com.squareup.retrofit2:retrofit:2.0.2'
  55. implementation 'com.squareup.retrofit2:converter-gson:2.0.2'
  56. implementation 'com.squareup.retrofit2:converter-jackson:2.0.0'
  57. implementation 'com.squareup.retrofit2:adapter-rxjava:2.0.2'
  58. implementation 'com.squareup.okhttp3:okhttp:3.0.1'
  59. implementation 'com.squareup.okhttp3:logging-interceptor:3.0.1'
  60. implementation 'com.squareup.okio:okio:1.6.0'
  61. implementation 'com.github.zhaokaiqiang.klog:library:1.4.0'
  62. implementation 'com.android.support:cardview-v7:26.1.0'
  63. implementation 'com.github.bumptech.glide:glide:3.7.0'
  64. implementation 'de.greenrobot:greendao:1.3.7'
  65. implementation 'com.readystatesoftware.systembartint:systembartint:1.0.3'
  66. implementation 'com.dmitrymalkovich.android:material-design-dimens:1.2'
  67. implementation 'com.jakewharton.rxbinding:rxbinding-recyclerview-v7:0.4.0'
  68. implementation 'com.github.chrisbanes:PhotoView:1.2.6'
  69. implementation 'com.nineoldandroids:library:2.4.0'
  70. //AndroidViewAnimations 动画
  71. implementation 'com.daimajia.easing:library:1.0.1@aar'
  72. implementation 'com.daimajia.androidanimations:library:1.1.3@aar'
  73. implementation 'com.squareup.picasso:picasso:2.5.2'
  74. //SpringAnimation弹簧动画 minSdkVersion 16
  75. // implementation 'com.android.support:support-dynamic-animation:25.3.0'
  76. implementation 'com.facebook.rebound:rebound:0.3.8'
  77. implementation 'com.android.support:gridlayout-v7:26.1.0'
  78. //高斯模糊-毛玻璃
  79. implementation ('com.ms-square:etsyblur:0.2.1'){
  80. transitive = true;
  81. }
  82. implementation('com.github.ozodrukh:CircularReveal:2.0.1@aar') {
  83. transitive = true;
  84. }
  85. //炫酷的菜单动画
  86. implementation 'com.nightonke:boommenu:2.1.1'
  87. //compile 'com.android.support:design:23.1.1'一起使用的动画布局效果
  88. implementation 'com.github.clans:fab:1.6.4'
  89. //快速实现3D标签云效果
  90. implementation 'com.moxun:tagcloudlib:1.1.0'
  91. //3D标签云
  92. // implementation 'co.lujun:androidtagview:1.1.7'
  93. // implementation 'androidx.appcompat:appcompat:1.0.1'
  94. //VR全景图+Opengl3D模型展示
  95. implementation 'com.github.sdfdzx:VRShow:v1.0.2'
  96. implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.8'
  97. implementation 'com.google.vr:sdk-panowidget:1.101.0'
  98. //播放器
  99. implementation 'cn.jzvd:jiaozivideoplayer:6.2.12'
  100. // //视频缓存
  101. implementation 'com.danikula:videocache:2.7.1'
  102. // // 导入腾讯云直播 SDK aar
  103. implementation(name: 'LiteAVSDK_UGC_5.0.4978', ext: 'aar')
  104. // //权限
  105. // implementation 'pub.devrel:easypermissions:1.3.0'
  106. // implementation 'com.scwang.smartrefresh:SmartRefreshLayout:1.1.0-alpha-5'
  107. // implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.35'
  108. // implementation 'com.android.support:multidex:1.0.3'
  109. /*圆形头像第三方库*/
  110. implementation 'de.hdodenhof:circleimageview:2.2.0'
  111. //第三方折线图,图表
  112. // implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0'
  113. implementation project(':MPChartLib')
  114. }
  1. dexOptions {
  2. // incremental true
  3. }

注释掉上面代码即可。

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/凡人多烦事01/article/detail/266366
推荐阅读