Android解决ABIs [armeabi] are not supported for platform问题
Android NDK开发编译过程中报如下错误
ERROR: ABIs [armeabi] are not supported for platform. Supported ABIs are [armeabi-v7a, arm64-v8a, x86, x86_64].
Affected Modules: lib
原cpu架构配置如下
android {
defaultConfig {
ndk {
abiFilters 'armeabi'
}
}
}
修改成如下配置即可解决问题
android {
defaultConfig {
ndk {
abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
}
}
}
这是由于我的NDK版本升级到了17版本,而17版本已不再支持armeabi架构