ProGuard Cannot Find Referenced Libraries

后端 未结 1 1410
一整个雨季
一整个雨季 2020-12-15 03:22
[2014-07-15 23:57:43 - MozMeet] Proguard returned with error code 1. See console
[2014-07-15 23:57:43 - MozMeet] Note: there were 662 duplicate class definitions.
[2         


        
相关标签:
1条回答
  • 2020-12-15 03:42

    Made a few changes to proguard-project.txt file (if you have more than one module in your project - put it in the module which calls the *.jar file you are getting warned about):

    -keepattributes SourceFile,LineNumberTable
    -keep class com.parse.*{ *; }
    -dontwarn com.parse.**
    -dontwarn com.squareup.picasso.**
    -keepclasseswithmembernames class * {
        native <methods>;
    }  
    

    The -dontwarn lines were needed. Basically what they tell ProGuard is that these jars work fine on their own so don't complain when you cannot find the classes they reference.

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