【发布时间】:2014-02-16 21:08:34
【问题描述】:
我有一个 Android 应用程序,它使用 Google Volley 作为我的下载代理。我只是尝试使用 ProGuard 混淆代码,并发现 volley 下载在运行时开始失败。
这是我的 ProGuard 配置:
-keep class android.support.v4.app.** { *; }
-keep interface android.support.v4.app.** { *; }
-keep class com.actionbarsherlock.** { *; }
-keep interface com.actionbarsherlock.** { *; }
-keep class com.android.volley.** { *; }
-keep interface com.android.volley.** { *; }
-keepattributes *Annotation*
-dontwarn org.apache.**
这是我在代码中看到的错误:
Async download FAILED. Exception message: 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 'a.a.a.b.c'. Please check the custom implementation. Help can be found @http://commons.apache.org/logging/troubleshooting.html.)
我想知道我是否做了一些 proguard 配置导致一些依赖问题。请帮忙。
【问题讨论】:
-
你真的写了“come.android.volley”吗? “来”有错别字。
-
@Dalmas 哦,不错不错。那是一个错字。但是在我修正错字之后它仍然没有工作......
标签: android obfuscation proguard