0

I want to use OpenCV library in both my Java codes and JNI C++ codes in Android Studio.

How can I import OpenCV library and set up the NDK environment (JNI) in the same android project in Android Studio?

I could successfully do either one, but could not do both in a project even though I have tried many times.

I followed these two tutorials to set up the environment.
1. OpenCV for android
2.JNI/NDK
Does anyone have any idea why my setup was failed?
Or can anyone provide me a guide to set up the environment?

Tim
  • 123
  • 1
  • 2
  • 11
  • You haven't described _in what way_ your attempts failed, so we can't possibly know what you have done wrong. – Michael Sep 21 '16 at 10:53
  • 2
    Oh, how I hate coding tutorials as videos. Hard to see, terrible music, waste of time... There is a proper, albeit short, write-up [here](https://www.learn2crack.com/2016/03/setup-opencv-sdk-android-studio.html) – Gary Bak Sep 21 '16 at 11:01
  • this link [http://stackoverflow.com/questions/27406303/opencv-in-android-studio?noredirect=1&lq=1](http://stackoverflow.com/questions/27406303/opencv-in-android-studio?noredirect=1&lq=1) may help you – jsxyhelu Jan 28 '17 at 04:26

0 Answers0