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?
I have added the following lines and it removed the error
-dontwarn org.apache.commons.collections.BeanMap
-dontwarn java.beans.**
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With