我正在尝试使用 Proguard 来混淆我的 Android 应用程序。此外,我正在使用 IntelliJ Idea 11.1.3 构建发布签名的 APK,并在 Open Module Settings -> Facets -> Compiler -> Run Proguard 中选择 Run Proguard 选项。

当我不使用 Proguard 时,应用程序编译时没有任何错误,但使用 Proguard 我收到以下错误

Error:[MyApp] Warning: org.apache.commons.collections.BeanMap: can't find referenced class java.beans.Introspector
Error:[MyApp] Warning: org.apache.commons.collections.BeanMap: can't find referenced class java.beans.BeanInfo
Error:[MyApp] Warning: org.apache.commons.collections.BeanMap: can't find referenced class java.beans.PropertyDescriptor
Error:[MyApp] Warning: org.apache.commons.collections.BeanMap: can't find referenced class java.beans.IntrospectionException
Error:[MyApp] Warning: there were 14 unresolved references to classes or interfaces.
Error:[MyApp]          You may need to specify additional library jars (using '-libraryjars').
Error:[MyApp] Error: Please correct the above warnings first.

如何消除这些错误?

最佳答案

我添加了以下几行并删除了错误

-dontwarn org.apache.commons.collections.BeanMap
-dontwarn java.beans.**

关于android - org.apache.commons.collections.BeanMap : can't find referenced class java. beans.Introspector,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/13122476/

10-13 04:09
查看更多