Can anyone give me some instructions of how I'm supposed to install Vuforia in Android Studio? I'm making a new app and I need to use augmented reality with Vuforia. Hope you can help me!
Thanks a lot!
Can anyone give me some instructions of how I'm supposed to install Vuforia in Android Studio? I'm making a new app and I need to use augmented reality with Vuforia. Hope you can help me!
Thanks a lot!
You need to follow following Steps:
Read our Getting Started Guide for instructions on setting up the Java SDK, Android SDK and NDK:
Make sure you have installed the latest version available of Android Studio from:
Use the Android SDK Manager (from within Android Studio) to get the latest Android SDK and Android Platform and Build tools
Launch Android Studio
Select File - > Import Project ... and browse to the root directory of the sample Vuforia project you want to open
Proceed in the Import Wizard dialog (click Next, Next) until you reach a page with this message:
In the Project view, right-click on the Project and expand the view hierarchy so to locate the Vuforia.jar under app > src > main
right-click on Vuforia.jar to open the context menu
click on the "Add as library..." option in the context menu
Alternatively, if you cannot locate the Vuforia.jar in your project hierarchy:
right-click on the Project and select, "Open Module Settings"
Create a folder called "jniLibs" under the "app/src/main" folder under your Android Studio project directory
the resulting directory structure under your project root should be:
/app /src /main /jniLibs /armeabi-v7a /**libVuforia.so**
Best Luck :)
answer from here and work for me:
(Seems like the project needs access to the Vuforia.jar file and can't access it outside of the sample folder(?))
So,
copy the Vuforia.jar file from the folder \vuforia-sdk-android-x-x-x\build\java\vuforia to a folder in the sample project, e.g. to \samples\app\libs (it's important it's in the "\app" path, so you can find it in the next step)
in Android SDK hit F4 (or right click on the app folder in the project structure and click on "Open Module Settings". Select the tab "dependencies", click on the "+" to add a dependency and select "2 File dependency". Now select the above path and file ((\samples\app) \libs\Vuforia.jar) and the project will run just fine...
Good luck.