By dam1

2013-12-02 17:15:54 8 Comments

Here is how I run a Vuforia Sample on Android Studio on Window 8

  1. Download, extract sample, remove files .project and
  2. On Android Studio : Import project, next, next ...
  3. Download & install android NDK
  4. Download & install cygwin
  5. Edit the file jni/

    LOCAL_SRC_FILES = C:/Vuforia-sdk/build/lib/$(TARGET_ARCH_ABI)/ LOCAL_EXPORT_C_INCLUDES := C:/Vuforia-sdk/build/include where Vuforia-sdk is your vuforia sdk

  6. Open cmd in your project folder and do "ndk-build"

  7. In android studio, click on project structure, modules, "YourModuleName", Dependencies, add jars, select the correct path to vuforia sdk for me it was :


  8. build & run your project in Android Studio

  9. Have fun!

*Don't forget the PATH variable for the ndk & cygwin


@Dhana Sekaran 2015-04-16 11:38:56

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:

"Alternatively, you can fill in the actual path map in the table below": click to edit

enter the actual path to the Vuforia.jar library (which is located under your vuforia_install_dir/build/java/vuforia)

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"

select "App" then select the "Dependencies" tab

Click on the "+" button to Add a File Dependency and browse to the Vuforia.jar file

Create a folder called "jniLibs" under the "app/src/main" folder under your Android Studio project directory

Copy the "armeabi-v7a" folder (including the file located inside it) from the "vuforia_install_dir/build/lib" to the "app/src/main/jniLibs" folder

the resulting directory structure under your project root should be:

Clean and rebuild the project

Run the app on your device

@Bugdr0id 2015-05-05 10:43:47

For the anyone with the problem: "the library could not be loaded", creating the jniLibs folder structure saved my day. Thanks!

@Simon 2015-07-28 12:01:16

@user1907954 helped me as well!

@Jawad 2015-09-27 21:39:26

For anyone having trouble where trying to open any Vuforia-based part of the sample app would make the screen flash and just throw you back into the Activity selection screen, the jniibs+armeabi part fixed it

@pd12 2016-10-14 16:06:16

This looks like something you copied from somewhere else. Do you have a link to the original source? Where did you get it from? @dhana-sekaran

@Ankit Gupta 2017-02-15 06:43:25

@MDragon00 - Check your Vuforia Key once...

@pallavi 2015-04-27 04:34:29

Try this, Exporting Eclipse Project with vuforia into Android Studio, which worked for me.

Below are the steps which i followed to the project work fine in Android Studio.

  • Export the Eclipse project from Eclipse as a Gradle project.
  • Go to the welcome to android studio window in android studio.
  • Click on Import Non android studio project.
  • Locate the project that you exported from eclipse, expand it and select the build.gradle file and click ok.
  • Copy the vuforia.jar file from the vuforia sdk.
  • Right click on the project in android studio and click on Show in Explorer option.
  • Locate the libs folder and paste the copied vuforia.jar file.
  • Make a folder lib ( NOTE: it is not libs) in the same structure as APK file.
  • Make another folder armeabi inside lib folder.
  • Copy .so files and paste it inside armeabi folder. and zip the lib folder into
  • Rename the to armeabi.jar
  • Include the armeabi.jar inside libs folder.
  • Then clean build and run the project.

Related Questions

Sponsored Content

21 Answered Questions

[SOLVED] Where do I place the 'assets' folder in Android Studio?

46 Answered Questions

[SOLVED] Is there a unique Android device ID?

44 Answered Questions

[SOLVED] Rename package in Android Studio

  • 2013-05-29 01:24:49
  • ramzixp
  • 759423 View
  • 1204 Score
  • 44 Answer
  • Tags:   android-studio

28 Answered Questions

94 Answered Questions

[SOLVED] Close/hide the Android Soft Keyboard

20 Answered Questions

[SOLVED] What is Gradle in Android Studio?

77 Answered Questions

29 Answered Questions

[SOLVED] What should be in my .gitignore for an Android Studio project?

15 Answered Questions

11 Answered Questions

[SOLVED] Proper use cases for Android UserManager.isUserAGoat()?

Sponsored Content