解决The armeabi ABI should have exactly one architecture definitions. Found: ''问题

在Android NDK开发编译过程中报如下错误

The armeabi ABI should have exactly one architecture definitions. Found: ''

这是因为在build.gradle文件中未配置cpu架构,配置下即可,如下所示

android {
    defaultConfig {
        ndk {
            abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
        }
    }
}

 

posted @ 2019-08-13 20:49  野猿新一  阅读(1)  评论(0编辑  收藏  举报