org.apache.commons.collections.BeanMap:找不到引用的类java.beans.Introspector

时间:2012-10-29 13:22:10

标签: android intellij-idea proguard

我正在尝试使用Proguard来混淆我的Android应用。此外,我正在使用IntelliJ Idea 11.1.3构建发布已签名的APK,并在开放模块设置中选择了 Run Proguard 选项 - >方面 - >编译器 - >跑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.

如何删除这些错误?

1 个答案:

答案 0 :(得分:9)

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

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