Android ProGuard error with org.xmlpull.v1.XmlPullParser

前端 未结 8 841
我寻月下人不归
我寻月下人不归 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 09:57

    I solved this using this settings in the proguard file:

    -dontwarn org.kobjects.**
    -dontwarn org.ksoap2.**
    -dontwarn org.kxml2.**
    -dontwarn org.xmlpull.v1.**
    
    -keep class org.kobjects.** { *; }
    -keep class org.ksoap2.** { *; }
    -keep class org.kxml2.** { *; }
    -keep class org.xmlpull.** { *; }
    
    -dontusemixedcaseclassnames
    -dontskipnonpubliclibraryclasses
    -dontoptimize
    -dontpreverify
    

提交回复
热议问题