13

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.

Vampire
  • 35,631
  • 4
  • 76
  • 102
  • 2
    So, what is unclear in the error message you got, it is quite extensive? – Vampire Dec 04 '17 at 12:47
  • actually it tells you what to do... it says that you should not use this, but if you really want to use it... add to the properties `android.deprecatedNdkCompileLease=timestamp` where timestamp is 60 days in the future i guess... it seems bigger than the normal timestamp.... – api55 Dec 04 '17 at 14:26

1 Answers1

11

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'
    }
}
Istiyak
  • 693
  • 6
  • 15