org.apache.commons.collections.BeanMap: can't find referenced class java.beans.Introspector

android, intellij-idea, proguard

Solution

I have added the following lines and it removed the error

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

Problem

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?

Original source