Setting up OpenCV in Android - NDK error

Ɓukasz 07/30/2017. 0 answers, 35 views
android android opencv android-ndk android-ndk

I am trying to setup OpenCV in my Android Project. I was following the tutorial on the youtube The only thing I have done differently was setting compileSdkVersion, buildToolsVersion and targetSdkVersion to 25 (and '25.0.0') in because every time i have tried to set something else there Android Studio was replacing it for me with "correct" values. After finishing it I've encounter an error. It looks like this: Error

I've tried adding

sourceSets.main {
jniLibs.srcDir 'src/main/libs'
jni.srcDirs = [] //disable automatic ndk-build call


but it didn't help. What am I doing wrong?

Gowthaman 07/31/2017
The error says, NDK build path is null.Check you added NDK path in application build.gradle. And check you followed steps like […

No Answers Yet

Related questions

Hot questions


Popular Tags