Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android.useDeprecatedNdk=true is no longer supported

I try to use OpenCv to build a facetracking camera app but I have a problem when I set up my OpenCv.
I have this error enter image description here

I use the android.useDeprectedNdk=true in gradle.properties but it doesn't work.

like image 735
Julien Oskorri Gomis Avatar asked Dec 04 '17 12:12

Julien Oskorri Gomis


1 Answers

Deprecated NDK is no longer supported. To avoid that error remove android.useDeprecatedNdk=true and do not make any white space in the Project Directory. If errors come again then edit the build.gradle(Module:app) below buildTypes block and add those line like below:

 buildTypes {
    release {
       ......................
    }
}
sourceSets { main { jni.srcDirs = ['src/main/jni/','src/main/jniLibs/'] } }
externalNativeBuild {
    ndkBuild {
        path 'build/intermediates/ndk/debug/Android.mk'
    }
}
like image 116
Istiyak Avatar answered Oct 23 '22 00:10

Istiyak