Log in or register to post comments

help~~ compile ok but work fail

February 19, 2013 - 4:40pm #1

Hi All,

      I met a strange case. I updated the vuforia sdk to 2-0-30 versuib and download a  sample "vedioplayback2.0.6" source, created a project in Eclipse, then

ndk build,compiled the apk ..... the project was compiled ok but when run in my phone (Nexus one ) ,it show exception. I found the log is below:

 

02-19 22:36:04.581: E/AndroidRuntime(10624): FATAL EXCEPTION: main
02-19 22:36:04.581: E/AndroidRuntime(10624): java.lang.UnsatisfiedLinkError: setActivityPortraitMode
02-19 22:36:04.581: E/AndroidRuntime(10624):     at com.qualcomm.QCARSamples.VideoPlayback.VideoPlayback.setActivityPortraitMode(Native Method)
02-19 22:36:04.581: E/AndroidRuntime(10624):     at com.qualcomm.QCARSamples.VideoPlayback.VideoPlayback.initApplication(VideoPlayback.java:1025)
02-19 22:36:04.581: E/AndroidRuntime(10624):     at com.qualcomm.QCARSamples.VideoPlayback.VideoPlayback.updateApplicationStatus(VideoPlayback.java:741)
02-19 22:36:04.581: E/AndroidRuntime(10624):     at com.qualcomm.QCARSamples.VideoPlayback.VideoPlayback.onCreate(VideoPlayback.java:350)
02-19 22:36:04.581: E/AndroidRuntime(10624):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
02-19 22:36:04.581: E/AndroidRuntime(10624):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1722)
02-19 22:36:04.581: E/AndroidRuntime(10624):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1784)
02-19 22:36:04.581: E/AndroidRuntime(10624):     at android.app.ActivityThread.access$1500(ActivityThread.java:123)
02-19 22:36:04.581: E/AndroidRuntime(10624):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:939)
02-19 22:36:04.581: E/AndroidRuntime(10624):     at android.os.Handler.dispatchMessage(Handler.java:99)
02-19 22:36:04.581: E/AndroidRuntime(10624):     at android.os.Looper.loop(Looper.java:130)
02-19 22:36:04.581: E/AndroidRuntime(10624):     at android.app.ActivityThread.main(ActivityThread.java:3835)
02-19 22:36:04.581: E/AndroidRuntime(10624):     at java.lang.reflect.Method.invokeNative(Native Method)
02-19 22:36:04.581: E/AndroidRuntime(10624):     at java.lang.reflect.Method.invoke(Method.java:507)
02-19 22:36:04.581: E/AndroidRuntime(10624):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:864)
02-19 22:36:04.581: E/AndroidRuntime(10624):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:622)
02-19 22:36:04.581: E/AndroidRuntime(10624):     at dalvik.system.NativeStart.main(Native Method)
02-19 22:36:08.685: I/Process(10624): Sending signal. PID: 10624 SIG: 9
 

who can help to track the problem ?

 

      

help~~ compile ok but work fail

February 20, 2013 - 3:52am #3

thanks very much, I will check it as you said

help~~ compile ok but work fail

February 19, 2013 - 10:16pm #2

Hi, two things to check:

  1. Window->Preferences->Java -> Build Path -> Class Variables -> update the QCAR_SDK_ROOT to point to your Vuforia SDK 2.0 root directory (as it may be still pointing to the old 1.5)
  2. project -> Properties -> Java Build Path -> Order and Export tab -> check (tick) the QCAR_SDK_ROOT 

Rebuild and run.

Also, in general when migrating to 2.0 you can consult this articles:

https://developer.vuforia.com/resources/dev-guide/transitionmigration-guide

https://developer.vuforia.com/resources/dev-guide/migrating-your-android-sdk-project

HTH.

 

Log in or register to post comments