0

I've followed this stack overflow answer to try and get OpenCV android working in Android Studio. I have followed the directions with the following caveats:

  • The build tools version in the opencv build.gradle is 19.1.0 instead of 19.0.1
  • Instead of looking like the picture provided after a gradle sync, my project structure looks like this:
    enter image description here
  • When I open the module dialog, opencv appears as a model, as well as app

The project builds and autocompletes fine. However, I get the following error when the code that requires OpenCV is called:

    java.lang.UnsatisfiedLinkError: Native method not found: org.opencv.core.Mat.n_Mat:()

I have no idea what I am doing wrong. Any help is appreciated.

Community
  • 1
  • 1
bsm
  • 207
  • 1
  • 10

1 Answers1

1

You have to explicitly load libs with LoadLibrary:

http://developer.android.com/reference/java/lang/System.html