我的android应用程序使用Pushy.me推送通知服务,我使用minifyEnabled true构建了签名的apk,当我运行该应用程序时,我遇到了错误
org.apache.commons.logging.LogConfigurationException: The chosen LogFactory implementation does not extend LogFactory. Please check your configuration. (Caused by java.lang.ClassCastException: The application has specified that a custom LogFactory implementation should be used but Class 'org.apache.commons.logging.impl.LogFactoryImpl' cannot be converted to 'org.apache.commons.logging.b'.
我在proguard-rules.pro文件中添加了以下几行,但显示相同的错误
-dontwarn me.pushy.**
-keep class me.pushy.** { *; }
-dontwarn org.apache.commons.logging.**
答案 0 :(得分:0)
这对我有用
-keep class org.apache.** { *; }