4

我正在尝试使用 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.

如何消除这些错误?

4

1 回答 1

9

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

-dontwarn org.apache.commons.collections.BeanMap
-dontwarn java.beans.**
于 2012-10-30T15:31:03.483 回答