I am trying to use a third party jar file within an Android application. I have been able to use some of the classes in the jar file just fine. However, one of the classes r
Apache harmony is retired for a long time now. I am using openbeans. And it solves all the problem for me.
It appears that Java classes related to introspection and reflection are not supported by dalvik.
Not on a blanket basis, AFAIK. One objective of the core Android team is to keep the firmware small, to reduce the cost of devices. One side-effect of this is to only include classes from java.* and javax.* that they feel are essential. Originally, none of java.beans.* existed in Android; now, a few classes and interfaces are available, but not the whole package.
Is that a plan to support this in dalvik in the near future?
You will know when the rest of us know, which is to say, only if it shows up in a release.
Secondly, does anyone have a suggestion for a work around that would get around this problem?
If the third-party JAR is an open source project:
java.beans classes from Apache Harmony and put them in your projectbondy.beans), since Android will not like it much if you try loading java.beans classes into your projectIt is possible that jarjar can do something about this as well -- I have not yet used the tool and do not know the extent of its capabilities.