Android ANE PackagedResources Bug
We have one ANE for handling all Facebook communications, to build this I use <packagedDependencies> in my platform options on Android to reference facebooksdk.jar, and <packagedResources> to package in the res folder of facebook (renaming it to facebook_res). If used on it's own, this works perfectly.
However, if you seemingly use any other ANE that also uses <packagedDependencies>, or <packagedResources>, the whole thing falls over in a very confusing manner.
This is a fairly complex issue, so I've created the necessary amount of projects as examples, and thrown them up to SixMinute/ANEResourcesBugExample · GitHub, https://github.com/SixMinute/ANEResourcesBugExample/archive/master.zip.
When a second ANE is included, basically the R.java file, and it's siblings don't seem to be created, or compiled into com.facebook.android, which is where they're supposed to go. In the example I've provided, I ran the eventual apk (ANE3Test) through the decompiler at Android APK Decompiler, and after getting the error "java.lang.NoClassDefFoundError: com.facebook.android.R$layout", the decompiled package (which is also up on GitHub in ANE3Source) shows that indeed, src/com/facebook/android contains no R.java files. Weirdly, they do appear in src/air/com/sixminute/ANE3Test/debug, the default package for the entry point, and also if I add a dummy <packagedResources> element into the ANE2 project, the R.java files would end up in src/com/chartboost/android as well, but still not where they should be in src/com/facebook/android.
This basically prevents us (and probably anyone else) from using the new resource Android packaging system at all <packagedResources>, or only able to use the new system with one ANE only, and have to unzip the jars as was done previously for all the rest.
Bugbase link - Bug#3763065 - Android ANE PackagedResources Bug
