Topic locked

Vuforia with android studio

May 8, 2015 - 3:41am #1

Hi Support Team,

 

We are trying to implement vuforia ImageTargetsNative sample in Android Studio. But we are facing some issues as below . Can you please let me know if the sample will be working with andorid studio else can you please provide a fix for the sample to work with  Android Studio.

We got following logs 

 java.lang.UnsatisfiedLinkError: No implementation found for void com.qualcomm.QCARSamples.ImageTargets.ImageTargets.setActivityPortraitMode(boolean) (tried Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_setActivityPortraitMode and Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_setActivityPortraitMode__Z)
            at com.qualcomm.QCARSamples.ImageTargets.ImageTargets.setActivityPortraitMode(Native Method)
            at com.qualcomm.QCARSamples.ImageTargets.ImageTargets.initApplication(ImageTargets.java:752)
            at com.qualcomm.QCARSamples.ImageTargets.ImageTargets.updateApplicationStatus(ImageTargets.java:615)
            at com.qualcomm.QCARSamples.ImageTargets.ImageTargets.onCreate(ImageTargets.java:368)
            at android.app.Activity.performCreate(Activity.java:5953)
            at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1128)
            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2267)
            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2388)
            at android.app.ActivityThread.access$800(ActivityThread.java:148)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1292)
            at android.os.Handler.dispatchMessage(Handler.java:102)
            at android.os.Looper.loop(Looper.java:135)
            at android.app.ActivityThread.main(ActivityThread.java:5312)
            at java.lang.reflect.Method.invoke(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:372)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:901)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:696)

Thanks in advance. 

 

 

Regards,

Dayakar

Vuforia with android studio

May 21, 2015 - 12:20pm #4

Glad it worked. Thanks for letting us know.

Vuforia with android studio

May 21, 2015 - 8:08am #3

Thank you, now its working fine.

Vuforia with android studio

May 12, 2015 - 7:05pm #2

I was able to get ImageTargets Native sample to work in Android Studio. First, follow the steps in this FAQ:

https://developer.vuforia.com/forum/android/using-android-studio-vuforia

For the "jni" folder which holds the C++ source, first compile it at the command line using NDK. Copy the resulting libImageTargetsNative.so file into the "jniLibs/armeabi-v7a" folder. At this point Android Studio may still attempt to compile the contents of the "jni" folder and give you some errors. If so, move the "jni" folder outside the project folder and you should be able to compile and run. There might be a better way to disable Android Studio from trying to compile the contents of the "jni" folder, but moving it outside the project folder is a quick workaround.

Also, check to see if you have latest version of Android Studio installed.
 

Topic locked