Log in or register to post comments

unfortunately, virtualButtons has stopped

October 26, 2012 - 11:21am #1

Hello, i have problem with project sample VirtualButtons. Everytime i try run on my device. and the message that show on my screen device is "unfortunately, virtualButtons has stopped". I check log file and i got this:

10-27 01:12:14.129: W/dalvikvm(15319): VFY: unable to resolve static method 49: Lcom/qualcomm/QCAR/QCAR;.requiresAlpha ()Z
10-27 01:12:14.149: W/dalvikvm(15319): VFY: unable to resolve static method 44: Lcom/qualcomm/QCAR/QCAR;.isInitialized ()Z
10-27 01:12:14.149: W/dalvikvm(15319): VFY: unable to resolve static method 42: Lcom/qualcomm/QCAR/QCAR;.deinit ()V
10-27 01:12:14.149: W/dalvikvm(15319): VFY: unable to resolve static method 45: Lcom/qualcomm/QCAR/QCAR;.onPause ()V
10-27 01:12:14.149: W/dalvikvm(15319): VFY: unable to resolve static method 46: Lcom/qualcomm/QCAR/QCAR;.onResume ()V
10-27 01:12:14.399: W/dalvikvm(15319): Exception Ljava/lang/NoClassDefFoundError; thrown while initializing Lcom/qualcomm/QCARSamples/VirtualButtons/VirtualButtons;
10-27 01:12:14.399: W/dalvikvm(15319): Class init failed in newInstance call (Lcom/qualcomm/QCARSamples/VirtualButtons/VirtualButtons;)
10-27 01:12:14.399: W/dalvikvm(15319): threadid=1: thread exiting with uncaught exception (group=0x40a911f8)
10-27 01:12:14.409: E/AndroidRuntime(15319): FATAL EXCEPTION: main
10-27 01:12:14.409: E/AndroidRuntime(15319): java.lang.ExceptionInInitializerError
10-27 01:12:14.409: E/AndroidRuntime(15319):     at java.lang.Class.newInstanceImpl(Native Method)
10-27 01:12:14.409: E/AndroidRuntime(15319):     at java.lang.Class.newInstance(Class.java:1319)
10-27 01:12:14.409: E/AndroidRuntime(15319):     at android.app.Instrumentation.newActivity(Instrumentation.java:1023)
10-27 01:12:14.409: E/AndroidRuntime(15319):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1871)
10-27 01:12:14.409: E/AndroidRuntime(15319):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
10-27 01:12:14.409: E/AndroidRuntime(15319):     at android.app.ActivityThread.access$600(ActivityThread.java:123)
10-27 01:12:14.409: E/AndroidRuntime(15319):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
10-27 01:12:14.409: E/AndroidRuntime(15319):     at android.os.Handler.dispatchMessage(Handler.java:99)
10-27 01:12:14.409: E/AndroidRuntime(15319):     at android.os.Looper.loop(Looper.java:137)
10-27 01:12:14.409: E/AndroidRuntime(15319):     at android.app.ActivityThread.main(ActivityThread.java:4424)
10-27 01:12:14.409: E/AndroidRuntime(15319):     at java.lang.reflect.Method.invokeNative(Native Method)
10-27 01:12:14.409: E/AndroidRuntime(15319):     at java.lang.reflect.Method.invoke(Method.java:511)
10-27 01:12:14.409: E/AndroidRuntime(15319):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:787)
10-27 01:12:14.409: E/AndroidRuntime(15319):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:554)
10-27 01:12:14.409: E/AndroidRuntime(15319):     at dalvik.system.NativeStart.main(Native Method)
10-27 01:12:14.409: E/AndroidRuntime(15319): Caused by: java.lang.NoClassDefFoundError: com/qualcomm/ar/pl/CameraPreview
10-27 01:12:14.409: E/AndroidRuntime(15319):     at java.lang.Runtime.nativeLoad(Native Method)
10-27 01:12:14.409: E/AndroidRuntime(15319):     at java.lang.Runtime.loadLibrary(Runtime.java:368)
10-27 01:12:14.409: E/AndroidRuntime(15319):     at java.lang.System.loadLibrary(System.java:535)
10-27 01:12:14.409: E/AndroidRuntime(15319):     at com.qualcomm.QCARSamples.VirtualButtons.VirtualButtons.loadLibrary(VirtualButtons.java:783)
10-27 01:12:14.409: E/AndroidRuntime(15319):     at com.qualcomm.QCARSamples.VirtualButtons.VirtualButtons.<clinit>(VirtualButtons.java:113)
10-27 01:12:14.409: E/AndroidRuntime(15319):     ... 15 more
10-27 01:12:14.409: E/AndroidRuntime(15319): Caused by: java.lang.ClassNotFoundException: com.qualcomm.ar.pl.CameraPreview
10-27 01:12:14.409: E/AndroidRuntime(15319):     at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
10-27 01:12:14.409: E/AndroidRuntime(15319):     at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
10-27 01:12:14.409: E/AndroidRuntime(15319):     at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
10-27 01:12:14.409: E/AndroidRuntime(15319):     ... 20 more

 

i have no idea about that error. can you help me?

unfortunately, virtualButtons has stopped

October 30, 2012 - 12:50am #6

You're welcome.

unfortunately, virtualButtons has stopped

October 29, 2012 - 8:55pm #5

Thanks  for your help AlessandroB. it's very helpfull for me.

i try select all list on "Order and Export" tab. and it's work.

unfortunately, virtualButtons has stopped

October 29, 2012 - 5:41am #4

Try the following:

- right click on VB project, select -> Properties

- click on Java Build Path

- select the Tab called "Order and Export"

- select all items in the list (by the way, one of them should be QCAR_SDK_ROOT, which should point to a valid qcar.jar)

- Click OK to close the dialog

Now rebuild your project (or if it is in atumatci build mode, just "refresh" the project with F5);

try again....

 

If that does not work yet, you may want to try the following:

- manually remove the "libs" and the "obj" folder in your project, then rebuild the native code with ndk-build, then refresh Eclipse and launch....

 

Let me know if you manage to make it run...

 

 

unfortunately, virtualButtons has stopped

October 27, 2012 - 4:57am #3

i have try to follow your instruction but it didn't work.  and that error still happen.

FYI: i try run this app on 2 Android version. 2.2 and 4.0. both of them can't run this app.

unfortunately, virtualButtons has stopped

October 26, 2012 - 1:58pm #2

hi,

have you built the native code of the VB sample ?

if not, make sure to execute 'ndk-build'  (from Cygwin or from Windows cmd console) from the VB sample directory;

also, once built, make sure you refresh your project in Eclipse, so that iit will "pick up" the native libraries you just built.

 If that's not sufficient, you could try to Clean the project, rebuild and refresh.

IHTH.

 

Log in or register to post comments