Android ProGuard error with org.xmlpull.v1.XmlPullParser

前端 未结 8 843
我寻月下人不归
我寻月下人不归 2021-02-05 09:36

When my application is build with ProGuard, it fails with following message. I use a default proguard.cfg generated by Android SDK with some -libraryjars. What can I do for it?<

相关标签:
8条回答
  • 2021-02-05 10:10

    I think your jar package include XmlPullParser class, and android.jar also include this. So you can remove org.xmlpull.* classes in the jar package, and build again.

    0 讨论(0)
  • 2021-02-05 10:14

    for me I could solve it by removing my previous modified build.gradle

    I removed:

         minifyEnabled true
    
         shrinkResources true
    

    and returned to the original setting

    minifyEnabled false
    
    0 讨论(0)
提交回复
热议问题