android.useDeprecatedNdk=true is no longer supported

前端 未结 1 594
清酒与你
清酒与你 2021-02-04 11:28

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

I use the and

1条回答
  •  攒了一身酷
    2021-02-04 12:21

    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'
        }
    }
    

    0 讨论(0)
提交回复
热议问题