Search code examples
androidjava-native-interfacewebcam

How to add JNI Libraries in android studio project?


I was fetched some sample code to create WebCam android application. When i import the project, android studio's gradle building got error and i can't able to run the application . Guide me the steps to add JNI Library to work in my android studio application.

I get the coding from this link

Thanks in advance !


Solution

  • Jni Files are suppose to be placed at jni folder in android studio.

    Below is project structure in android studio

    enter image description here