Has anyone experience missing annotations at runtime on the Android platform via a native extension?
Hi all,
I am building a native extension for the Android platform that is exhibiting a problem where annotations used by a 3rd party dependency JAR (CRest) within the native extension are not being found at runtime. This causes a crash when the annotations are validated.
As a bit of background, the native extension is simply a wrapper for an existing custom JAR along with it's dependency JAR's - these are merged into a single JAR required for the extension build process. When the merged JAR is used in a standard Android applicaiton it works as expected at runtime so this problem only appears to be when using the JAR via the Adobe AIR runtime on Android.
It took quite a while to work out the exact problem due to it being such a strange runtime error, but once I had figured out the actual issue I tried a number of things to resolve the problem, including updating the AIR SDK to 3.9 (generally I've been using 3.7 to match the version used by our partner developers) and updating the version of Android used by the AIR SDK. So far I've not had any luck and the only suggested solution I've been able to find regarding this is that the JAR needs adding to the runtime classpath, but I can't seem to find a way of explicitly doing this via Adobe Flash Builder.
Although quite a specific scenario, I was wondering if anyone else had come across this situation and knew of a fix or viable workaround?
Thanks,
Duane
