Log in or register to post comments

How to fix such kind of error

June 19, 2013 - 12:09am #4
 I am integrating  image targets with cloud recognition , and i have start scan button, after pressing this button application is crashing with following error that i posted below
 
 
06-19 12:56:00.629: E/AndroidRuntime(6429): FATAL EXCEPTION: main
06-19 12:56:00.629: E/AndroidRuntime(6429): java.lang.UnsatisfiedLinkError: enterScanningModeNative
06-19 12:56:00.629: E/AndroidRuntime(6429): at com.qualcomm.QCARSamples.ImageTargets.ImageTargets.enterScanningModeNative(Native Method)
06-19 12:56:00.629: E/AndroidRuntime(6429): at com.qualcomm.QCARSamples.ImageTargets.ImageTargets$1.onClick(ImageTargets.java:910)
06-19 12:56:00.629: E/AndroidRuntime(6429): at android.view.View.performClick(View.java:3524)
06-19 12:56:00.629: E/AndroidRuntime(6429): at android.view.View$PerformClick.run(View.java:14194)
06-19 12:56:00.629: E/AndroidRuntime(6429): at android.os.Handler.handleCallback(Handler.java:605)
06-19 12:56:00.629: E/AndroidRuntime(6429): at android.os.Handler.dispatchMessage(Handler.java:92)
06-19 12:56:00.629: E/AndroidRuntime(6429): at android.os.Looper.loop(Looper.java:137)
06-19 12:56:00.629: E/AndroidRuntime(6429): at android.app.ActivityThread.main(ActivityThread.java:4476)
06-19 12:56:00.629: E/AndroidRuntime(6429): at java.lang.reflect.Method.invokeNative(Native Method)
06-19 12:56:00.629: E/AndroidRuntime(6429): at java.lang.reflect.Method.invoke(Method.java:511)
06-19 12:56:00.629: E/AndroidRuntime(6429): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:816)
06-19 12:56:00.629: E/AndroidRuntime(6429): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:583)
06-19 12:56:00.629: E/AndroidRuntime(6429): at dalvik.system.NativeStart.main(Native Method)
 
it is refers to 
 
enterScanningModeNative() function inside ImageTargets.cpp 
 
I really don't know why it's crashing, content of this method is the same as posted in FAQ tutorials

How to fix such kind of error

June 19, 2013 - 1:40am #3

Hi, have you rebuilt with ndk-build ?

Also, the error might be related to this:

https://developer.vuforia.com/forum/android/integrating-image-targets-cloud-recognition

 

How to fix such kind of error

June 19, 2013 - 1:56am #2

yes, i rebuild it with ndk-build, how do you think do we need to write some additional code to make this tutorial work properly, i mean tutorial in FAQ, or this tutorial is enough?  

How to fix such kind of error

June 19, 2013 - 3:07am #1

The tutorial is sufficient, however if you change for instance the project name, you might face issues, as described in here:

https://developer.vuforia.com/forum/android/integrating-image-targets-cloud-recognition

 

Log in or register to post comments