Log in or register to post comments

can't build Dominoes sample

October 28, 2012 - 6:28am #1

hi guys,

 

i had use ndk-build to build Dominoes sample

but when i run as android application

it shows

 

10-28 21:27:09.453: E/AndroidRuntime(2918): FATAL EXCEPTION: main
10-28 21:27:09.453: E/AndroidRuntime(2918): java.lang.ExceptionInInitializerError
10-28 21:27:09.453: E/AndroidRuntime(2918): at java.lang.Class.newInstanceImpl(Native Method)
10-28 21:27:09.453: E/AndroidRuntime(2918): at java.lang.Class.newInstance(Class.java:1409)
10-28 21:27:09.453: E/AndroidRuntime(2918): at android.app.Instrumentation.newActivity(Instrumentation.java:1040)
10-28 21:27:09.453: E/AndroidRuntime(2918): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1777)
10-28 21:27:09.453: E/AndroidRuntime(2918): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1893)
10-28 21:27:09.453: E/AndroidRuntime(2918): at android.app.ActivityThread.access$1500(ActivityThread.java:135)
10-28 21:27:09.453: E/AndroidRuntime(2918): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1054)
10-28 21:27:09.453: E/AndroidRuntime(2918): at android.os.Handler.dispatchMessage(Handler.java:99)
10-28 21:27:09.453: E/AndroidRuntime(2918): at android.os.Looper.loop(Looper.java:150)
10-28 21:27:09.453: E/AndroidRuntime(2918): at android.app.ActivityThread.main(ActivityThread.java:4385)
10-28 21:27:09.453: E/AndroidRuntime(2918): at java.lang.reflect.Method.invokeNative(Native Method)
10-28 21:27:09.453: E/AndroidRuntime(2918): at java.lang.reflect.Method.invoke(Method.java:507)
10-28 21:27:09.453: E/AndroidRuntime(2918): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:849)
10-28 21:27:09.453: E/AndroidRuntime(2918): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:607)
10-28 21:27:09.453: E/AndroidRuntime(2918): at dalvik.system.NativeStart.main(Native Method)
10-28 21:27:09.453: E/AndroidRuntime(2918): Caused by: java.lang.NoClassDefFoundError: com.qualcomm.ar.pl.CameraPreview
10-28 21:27:09.453: E/AndroidRuntime(2918): at java.lang.Runtime.nativeLoad(Native Method)
10-28 21:27:09.453: E/AndroidRuntime(2918): at java.lang.Runtime.loadLibrary(Runtime.java:432)
10-28 21:27:09.453: E/AndroidRuntime(2918): at java.lang.System.loadLibrary(System.java:554)
10-28 21:27:09.453: E/AndroidRuntime(2918): at com.qualcomm.QCARSamples.Dominoes.Dominoes.loadLibrary(Dominoes.java:796)
10-28 21:27:09.453: E/AndroidRuntime(2918): at com.qualcomm.QCARSamples.Dominoes.Dominoes.<clinit>(Dominoes.java:107)
10-28 21:27:09.453: E/AndroidRuntime(2918): ... 15 more
10-28 21:27:09.453: E/AndroidRuntime(2918): Caused by: java.lang.ClassNotFoundException: com.qualcomm.ar.pl.CameraPreview in loader dalvik.system.PathClassLoader[/data/app/com.qualcomm.QCARSamples.Dominoes-1.apk]
10-28 21:27:09.453: E/AndroidRuntime(2918): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)
10-28 21:27:09.453: E/AndroidRuntime(2918): at java.lang.ClassLoader.loadClass(ClassLoader.java:551)
10-28 21:27:09.453: E/AndroidRuntime(2918): at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
10-28 21:27:09.453: E/AndroidRuntime(2918): ... 20 more
 

from logcat...

 

how should slove it? 

can't build Dominoes sample

October 28, 2012 - 1:41pm #3

Thanks for sharing this.

 

can't build Dominoes sample

October 28, 2012 - 8:07am #2

after 1 hours i totally find slovtion

 right click your project -> properties

 select to java build path -> order and export 

 select all and build again

Log in or register to post comments