I have a android binary rule that I've been using to build an Android App that uses the Vuforia SDK ref:
https://developer.vuforia.com.
Up to this point I've been using Vuforia 6.x.x with not problems but I need to upgrade to 7.x.x to support newer devices.
Compilation is fine but at run time I'm getting a ClassNotFoundException, specifically:
JNI DETECTED ERROR IN APPLICATION: JNI CallIntMethodV called with pending exception java.lang.ClassNotFoundException: Didn't find class "com.vuforia.ar.pl.Camera2_Preview" on path: DexPathList[[directory "."],nativeLibraryDirectories=[/system/lib, /vendor/lib, /system/lib, /vendor/lib]]
at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:56)
at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:380)
at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
The com.vuforia.ar.pl.Camera2_Preview is not a new class. It exists in the same spot in 6.x.x as it does in 7.x.x.
I built a version of my app using Vuforia SDK 6.x.x and 7.x.x and examined the contents of the APK. The files appear the same in both i.e.: no files are missing.
I ran dexdump on classes.dex and searched for Camera2_Preview and got multiple results which means the file is being indexed.
I'm out of ideas on what to do next here. Perhaps indexing is not correct?
Thanks in advance.