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.

1 Answer 1

1

You have to explicitly load libs with LoadLibrary:

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.