Proguard errors with external jar - returns error code 1

前端 未结 8 1612
逝去的感伤
逝去的感伤 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:12

    One thing that worked for me was to reduce the "optimizationpasses" try 2.

    0 讨论(0)
  • 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.

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