4

I am trying to use Proguard for obfuscating my Android app. Also I am using IntelliJ Idea 11.1.3 to build the release signed APK with Run Proguard option selected in Open Module Settings -> Facets -> Compiler -> Run Proguard.

The application is compiling without any error when I don't use Proguard but with Proguard I am getting the below errors

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.

How to remove these errors?

4

1 に答える 1

9

次の行を追加し、エラーを削除しました

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