Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 393
Gaurav Agarwal Avatar asked Jan 16 '23 04:01

Gaurav Agarwal


1 Answers

I have added the following lines and it removed the error

-dontwarn org.apache.commons.collections.BeanMap
-dontwarn java.beans.**
like image 97
Gaurav Agarwal Avatar answered Jan 30 '23 03:01

Gaurav Agarwal