Vuforia on Android

119 views
Skip to first unread message

Przemek Lach

unread,
Feb 1, 2018, 8:31:59 PM2/1/18
to bazel-discuss
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.


Marcel Hlopko

unread,
Feb 2, 2018, 8:18:43 AM2/2/18
to Przemek Lach, Alex Humesky, bazel-discuss


--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/290372fb-9daa-4a49-b635-da0e0245eea3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Marcel Hlopko

Przemek Lach

unread,
Feb 2, 2018, 2:48:52 PM2/2/18
to bazel-discuss
UPDATE

I upgraded from Bazel 0.6.x to 0.10.x but unfortunately problem still persists.
Reply all
Reply to author
Forward
0 new messages