Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Incorporate vuforia android SDK in a new project

I want to use vuforia sdk's text recognition module in my new app.

I have been successful in building and running their sample apps. However, having done that was apparently not enough for me to figure out how to start using vuforia android sdk in my mew project in a proper way.

The IDE is Android Studio. I have the license key for my vuforia account.

Could someone help me get started? I jist need to start using vuforia as a library in my own personal project. I do not want to start developing directly over their sample apps.

I am sorry if the context of the questions doesn't fit into that of this particular community.

like image 427
Abdul Wasae Avatar asked Nov 09 '22 17:11

Abdul Wasae


1 Answers

I wanted to do exactly what you said. I didn't want to build on the top of their samples. I struggled to find a tutorial but there is none, at least I was not able to fine one. Turns out it is really easy. Go to the Vuforia folder(wherever you installed it) and then head to vuforia-sdk-android-X-XX-X\build\java\vuforia and copy the .jar file and paste that file to your new project in Android studio inside your libs folder. Then add this line to your Build.Gradle

compile files('libs/Vuforia.jar')

inside your dependencies. That's it. You can access all the Vuforia classes from there. Don't forget to instanciate them just like in the example with your own key from Vuforia developer console.

like image 183
The_Martian Avatar answered Nov 14 '22 23:11

The_Martian