Android应用opencv编译出错

来源:互联网 发布:河南省公安厅网络 编辑:程序博客网 时间:2024/05/01 18:50

To help anyone who searched this, but can't figure out where the above statement goes...It is placed in the build.gradle which is under the {project_name}/app folder.

Specifically:

{YourApp} / app / build.gradle

And not the build.gradle at the root of the project.

Place it inside the "defaultConfig" section.

defaultConfig {    ....    sourceSets.main {        jniLibs.srcDir 'src/main/libs'        jni.srcDirs = [] //disable automatic ndk-build call    }
原创粉丝点击