"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Question sample project : VideoPlayBack

I'm download apk from sample download .APK, install and Play sample success complete 

 

But, i'm Download Sample Code and run application show Log error 

 

09-28 04:28:08.352: E/AndroidRuntime(1212): FATAL EXCEPTION: main
09-28 04:28:08.352: E/AndroidRuntime(1212): java.lang.UnsatisfiedLinkError: Native method not found: com.qualcomm.QCARSamples.VideoPlayback.VideoPlayback.setActivityPortraitMode:(Z)V
09-28 04:28:08.352: E/AndroidRuntime(1212): 	at com.qualcomm.QCARSamples.VideoPlayback.VideoPlayback.setActivityPortraitMode(Native Method)
09-28 04:28:08.352: E/AndroidRuntime(1212): 	at com.qualcomm.QCARSamples.VideoPlayback.VideoPlayback.initApplication(VideoPlayback.java:1027)
09-28 04:28:08.352: E/AndroidRuntime(1212): 	at com.qualcomm.QCARSamples.VideoPlayback.VideoPlayback.updateApplicationStatus(VideoPlayback.java:740)
09-28 04:28:08.352: E/AndroidRuntime(1212): 	at com.qualcomm.QCARSamples.VideoPlayback.VideoPlayback.onCreate(VideoPlayback.java:349)
09-28 04:28:08.352: E/AndroidRuntime(1212): 	at android.app.Activity.performCreate(Activity.java:5104)
09-28 04:28:08.352: E/AndroidRuntime(1212): 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
09-28 04:28:08.352: E/AndroidRuntime(1212): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
09-28 04:28:08.352: E/AndroidRuntime(1212): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
09-28 04:28:08.352: E/AndroidRuntime(1212): 	at android.app.ActivityThread.access$600(ActivityThread.java:141)
09-28 04:28:08.352: E/AndroidRuntime(1212): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
09-28 04:28:08.352: E/AndroidRuntime(1212): 	at android.os.Handler.dispatchMessage(Handler.java:99)
09-28 04:28:08.352: E/AndroidRuntime(1212): 	at android.os.Looper.loop(Looper.java:137)
09-28 04:28:08.352: E/AndroidRuntime(1212): 	at android.app.ActivityThread.main(ActivityThread.java:5041)
09-28 04:28:08.352: E/AndroidRuntime(1212): 	at java.lang.reflect.Method.invokeNative(Native Method)
09-28 04:28:08.352: E/AndroidRuntime(1212): 	at java.lang.reflect.Method.invoke(Method.java:511)
09-28 04:28:08.352: E/AndroidRuntime(1212): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
09-28 04:28:08.352: E/AndroidRuntime(1212): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
09-28 04:28:08.352: E/AndroidRuntime(1212): 	at dalvik.system.NativeStart.main(Native Method)

 

 

Help me plz.

Thank you.

AlessandroB

Sun, 09/29/2013 - 08:08

The error you see indicates that you did not build the native part of the sample code (the C++ part in the JNI folder), using ndk-build;

please consult the Getting Started Guide, it's all explained there:

Attachment