I am developing an Android application that requires the use of the commons-beanutils library, however I cannot compile it. When I try to run the application with this jar file, I get several of these errors appearing
Dx warning: ignoring the InnerClasses attribute for an anonymous inner class (org.apache.commons.beanutils.locale.LocaleBeanUtilsBean $ 1) that does not have an EnclosingMethod attribute associated with it. This class was probably prepared by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from the source using a modern compiler and without specifying any parameters like "-target". The consequence of ignoring this warning is that reflexive operations on this class will incorrectly indicate that it is not an inner class.
Then this error appears
Unable to execute dex: multiple dex files define Lorg / Apache / General / BeanUtils / DynaBean;
I have googled errors and getting several different answers on how to resolve this.
Cannot execute dex: multiple dex files define an array of Lcom / myapp / R $,
This link indicates that the problem is with the bin folder. I tried to delete it, but the same question.
I stumbled upon this thread
Are there any Android compatible alternatives to Property Utils?
op indicates that beans util does not work on Android. That's for sure? If so, is there an alternative that will work? Would recompile the class from the original work?
Any help would be greatly appreciated!
Edit: I also tried downloading the latest versions of commons-beanutils, same problem
Adamm source share