我的 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.**