Log in or register to post comments

Error on running virtualbuttons samples

July 23, 2012 - 11:00am #1

I running the sample on samsung tab 2(4.0.3) and I failed to run it. Below is the error:

 

 

07-24 01:59:52.824: D/dalvikvm(26313): Trying to load lib /data/data/com.qualcomm.QCARSamples.VirtualButtons/lib/libQCAR.so 0x41253e30

07-24 01:59:52.824: D/dalvikvm(26313): Added shared lib /data/data/com.qualcomm.QCARSamples.VirtualButtons/lib/libQCAR.so 0x41253e30

07-24 01:59:52.824: W/dalvikvm(26313): Exception Ljava/lang/NoClassDefFoundError; thrown while initializing Lcom/qualcomm/QCARSamples/VirtualButtons/VirtualButtons;

07-24 01:59:52.824: W/dalvikvm(26313): Class init failed in newInstance call (Lcom/qualcomm/QCARSamples/VirtualButtons/VirtualButtons;)

07-24 01:59:52.824: D/AndroidRuntime(26313): Shutting down VM

07-24 01:59:52.824: W/dalvikvm(26313): threadid=1: thread exiting with uncaught exception (group=0x40bd61f8)

07-24 01:59:52.824: E/AndroidRuntime(26313): FATAL EXCEPTION: main

07-24 01:59:52.824: E/AndroidRuntime(26313): java.lang.ExceptionInInitializerError

07-24 01:59:52.824: E/AndroidRuntime(26313): at java.lang.Class.newInstanceImpl(Native Method)

07-24 01:59:52.824: E/AndroidRuntime(26313): at java.lang.Class.newInstance(Class.java:1319)

07-24 01:59:52.824: E/AndroidRuntime(26313): at android.app.Instrumentation.newActivity(Instrumentation.java:1027)

07-24 01:59:52.824: E/AndroidRuntime(26313): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1885)

07-24 01:59:52.824: E/AndroidRuntime(26313): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1995)

07-24 01:59:52.824: E/AndroidRuntime(26313): at android.app.ActivityThread.access$600(ActivityThread.java:128)

07-24 01:59:52.824: E/AndroidRuntime(26313): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1161)

07-24 01:59:52.824: E/AndroidRuntime(26313): at android.os.Handler.dispatchMessage(Handler.java:99)

07-24 01:59:52.824: E/AndroidRuntime(26313): at android.os.Looper.loop(Looper.java:137)

07-24 01:59:52.824: E/AndroidRuntime(26313): at android.app.ActivityThread.main(ActivityThread.java:4514)

07-24 01:59:52.824: E/AndroidRuntime(26313): at java.lang.reflect.Method.invokeNative(Native Method)

07-24 01:59:52.824: E/AndroidRuntime(26313): at java.lang.reflect.Method.invoke(Method.java:511)

07-24 01:59:52.824: E/AndroidRuntime(26313): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:790)

07-24 01:59:52.824: E/AndroidRuntime(26313): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:557)

07-24 01:59:52.824: E/AndroidRuntime(26313): at dalvik.system.NativeStart.main(Native Method)

07-24 01:59:52.824: E/AndroidRuntime(26313): Caused by: java.lang.NoClassDefFoundError: com/qualcomm/ar/pl/CameraPreview

07-24 01:59:52.824: E/AndroidRuntime(26313): at java.lang.Runtime.nativeLoad(Native Method)

07-24 01:59:52.824: E/AndroidRuntime(26313): at java.lang.Runtime.loadLibrary(Runtime.java:368)

07-24 01:59:52.824: E/AndroidRuntime(26313): at java.lang.System.loadLibrary(System.java:535)

07-24 01:59:52.824: E/AndroidRuntime(26313): at com.qualcomm.QCARSamples.VirtualButtons.VirtualButtons.loadLibrary(VirtualButtons.java:783)

07-24 01:59:52.824: E/AndroidRuntime(26313): at com.qualcomm.QCARSamples.VirtualButtons.VirtualButtons.<clinit>(VirtualButtons.java:113)

07-24 01:59:52.824: E/AndroidRuntime(26313): ... 15 more

07-24 01:59:52.824: E/AndroidRuntime(26313): Caused by: java.lang.ClassNotFoundException: com.qualcomm.ar.pl.CameraPreview

07-24 01:59:52.824: E/AndroidRuntime(26313): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)

07-24 01:59:52.824: E/AndroidRuntime(26313): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)

07-24 01:59:52.824: E/AndroidRuntime(26313): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)

07-24 01:59:52.824: E/AndroidRuntime(26313): ... 20 more

 
I had successfully ndk-build the sample but i got this error when I trying to run it on my tab.
Anyone can help?
 
Thanks a lot. 

Error on running virtualbuttons samples

July 23, 2012 - 8:17pm #7

Hi david,

I used the obj2opengl.pl to convert one of my .obj to .h successcully but it seem i missing of .jpg file which color my model.

May I know how/where can i get it?

 

thanks a lot

Error on running virtualbuttons samples

July 23, 2012 - 6:52pm #6

Yes you can use the obj2opengl script, and then apply the revisions described in this thread - https://ar.qualcomm.at/content/replace-3d-model-different-3d-model

Error on running virtualbuttons samples

July 23, 2012 - 11:59am #5

Thanks David, 

I had solved the problem. In my project > java build path, there are 2 QCAR.jar were imported. I removed one of it and clean my project.
And it's work.

Much appreciated.

One last question, can I replace the model with another model, like the example you shown for ImageTarget( http://heikobehrens.net/2009/08/27/obj2opengl/)?

Error on running virtualbuttons samples

July 23, 2012 - 11:47am #4

Yup, I have double checked both that but the problem still occur.

Error on running virtualbuttons samples

July 23, 2012 - 11:40am #3

Check that the QCAR_SDK_ROOT path to QCAR.jar is checked for these projects in Eclipse ( Project > Java Build Path ), and that you've run ndk-build for each in their base directories.

Error on running virtualbuttons samples

July 23, 2012 - 11:17am #2

I found out i faced the same problem when run other samples like FrameMarkers, MultiTargets, Dominoes and etc.

Currently only able to run ImageTargert. 

I'm using vuforia-sdk-android-1-5-9

anyone can help me solve this?

Thanks a lot 

Log in or register to post comments