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?