Log in or register to post comments

Can't run FrameMarkers and other samples

May 21, 2012 - 6:08am #1

Excuse me

I can't run the samples except ImageTargets.

When I run other application on the device ,it stop unexpectedly.

The LogCat show that :

I/dalvikvm(18935): Could not find method com.qualcomm.QCAR.QCAR.requiresAlpha, referenced from method com.qualcomm.QCARSamples.MultiTargets.MultiTargets.initApplicationAR
W/dalvikvm(18935): VFY: unable to resolve static method 50: Lcom/qualcomm/QCAR/QCAR;.requiresAlpha ()Z
D/dalvikvm(18935): VFY: replacing opcode 0x71 at 0x000a
D/dalvikvm(18935): VFY: dead code 0x000d-002a in Lcom/qualcomm/QCARSamples/MultiTargets/MultiTargets;.initApplicationAR ()V
I/dalvikvm(18935): Could not find method com.qualcomm.QCAR.QCAR.isInitialized, referenced from method com.qualcomm.QCARSamples.MultiTargets.MultiTargets.onConfigurationChanged
W/dalvikvm(18935): VFY: unable to resolve static method 45: Lcom/qualcomm/QCAR/QCAR;.isInitialized ()Z
D/dalvikvm(18935): VFY: replacing opcode 0x71 at 0x000b
D/dalvikvm(18935): VFY: dead code 0x000e-0014 in Lcom/qualcomm/QCARSamples/MultiTargets/MultiTargets;.onConfigurationChanged (Landroid/content/res/Configuration;)V
I/dalvikvm(18935): Could not find method com.qualcomm.QCAR.QCAR.deinit, referenced from method com.qualcomm.QCARSamples.MultiTargets.MultiTargets.onDestroy
W/dalvikvm(18935): VFY: unable to resolve static method 43: Lcom/qualcomm/QCAR/QCAR;.deinit ()V
D/dalvikvm(18935): VFY: replacing opcode 0x71 at 0x0057
D/dalvikvm(18935): VFY: dead code 0x005a-005e in Lcom/qualcomm/QCARSamples/MultiTargets/MultiTargets;.onDestroy ()V
I/dalvikvm(18935): Could not find method com.qualcomm.QCAR.QCAR.onPause, referenced from method com.qualcomm.QCARSamples.MultiTargets.MultiTargets.onPause
W/dalvikvm(18935): VFY: unable to resolve static method 46: Lcom/qualcomm/QCAR/QCAR;.onPause ()V
D/dalvikvm(18935): VFY: replacing opcode 0x71 at 0x0020
D/dalvikvm(18935): VFY: dead code 0x0023-0023 in Lcom/qualcomm/QCARSamples/MultiTargets/MultiTargets;.onPause ()V
I/dalvikvm(18935): Could not find method com.qualcomm.QCAR.QCAR.onResume, referenced from method com.qualcomm.QCARSamples.MultiTargets.MultiTargets.onResume
W/dalvikvm(18935): VFY: unable to resolve static method 47: Lcom/qualcomm/QCAR/QCAR;.onResume ()V
D/dalvikvm(18935): VFY: replacing opcode 0x71 at 0x0008
D/dalvikvm(18935): VFY: dead code 0x000b-005f in Lcom/qualcomm/QCARSamples/MultiTargets/MultiTargets;.onResume ()V
D/dalvikvm(18935): Trying to load lib /data/data/com.qualcomm.QCARSamples.MultiTargets/lib/libQCAR.so 0x4051d830
D/dalvikvm(18935): Added shared lib /data/data/com.qualcomm.QCARSamples.MultiTargets/lib/libQCAR.so 0x4051d830
W/dalvikvm(18935): Exception Ljava/lang/NoClassDefFoundError; thrown while initializing Lcom/qualcomm/QCARSamples/MultiTargets/MultiTargets;
W/dalvikvm(18935): Class init failed in newInstance call (Lcom/qualcomm/QCARSamples/MultiTargets/MultiTargets;)
D/AndroidRuntime(18935): Shutting down VM
W/dalvikvm(18935): threadid=1: thread exiting with uncaught exception (group=0x4001d5a0)
FATAL EXCEPTION: main
java.lang.ExceptionInInitializerError
at java.lang.Class.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1409)
at android.app.Instrumentation.newActivity(Instrumentation.java:1040)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1777)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1893)
at android.app.ActivityThread.access$1500(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1054)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:150)
at android.app.ActivityThread.main(ActivityThread.java:4385)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:849)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:607)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NoClassDefFoundError: com.qualcomm.ar.pl.CameraPreview
at java.lang.Runtime.nativeLoad(Native Method)
at java.lang.Runtime.loadLibrary(Runtime.java:432)
at java.lang.System.loadLibrary(System.java:554)
at com.qualcomm.QCARSamples.MultiTargets.MultiTargets.loadLibrary(MultiTargets.java:755)
at com.qualcomm.QCARSamples.MultiTargets.MultiTargets.(MultiTargets.java:103)
... 15 more
Caused by: java.lang.ClassNotFoundException: com.qualcomm.ar.pl.CameraPreview in loader dalvik.system.PathClassLoader[/data/app/com.qualcomm.QCARSamples.MultiTargets-2.apk]
at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)
at java.lang.ClassLoader.loadClass(ClassLoader.java:551)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
... 20 more

My device is HTC Incredible S using android 2.3.5

Please tell me how to do Q _Q

Re: Can't run FrameMarkers and other samples

May 23, 2012 - 3:24am #6

You solve my problem!!!! QQ

Thanks~~~

Re: Can't run FrameMarkers and other samples

May 21, 2012 - 11:29am #5

Hello secret60113,

Please make sure Eclipse is loading the SDK shared library. To verify this in Eclipse go to the Project menu -> Properties -> click the "Order and Export" tab. Make sure QCAR_SDK_ROOT is checked and press ok. Try cleaning and re-building your project.

Thank you,

-Peter

Re: Can't run FrameMarkers and other samples

May 21, 2012 - 9:00am #4

I have run ndk-build many times on each of the samples .

But the result is still the same. : (

Re: Can't run FrameMarkers and other samples

May 21, 2012 - 7:58am #3

be sure to run ndk-build on each of the samples before building them in Eclipses.

Log in or register to post comments