Proguard errors with external jar - returns error code 1

前端 未结 8 1609
逝去的感伤
逝去的感伤 2020-12-15 19:51

While exporting my Android Application, Proguard returned with error code 1. I am using twitter4j external jars in my app.

I already added library jars, rt.jar (For

8条回答
  •  醉梦人生
    2020-12-15 20:14

    Try adding the Packages which give warnings, this way:

    -dontwarn com.google.code.**
    -dontwarn oauth.signpost.**
    -dontwarn twitter4j.**
    

    For some reason if this didn't work try doing the same with Class and Interface Names, this way:

    -dontwarn javax.management.**
    -dontwarn javax.xml.**
    -dontwarn org.apache.**
    -dontwarn org.slf4j.**
    

    to your Proguard config file.

提交回复
热议问题