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

99封情书 提交于 2019-12-10 15:39:19

问题


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?


回答1:


I have added the following lines and it removed the error

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


来源:https://stackoverflow.com/questions/13122476/org-apache-commons-collections-beanmap-cant-find-referenced-class-java-beans-i

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!