平台android NDK不支持ABIs [armeabi,mips]

幽映每白日,清辉照衣裳。这篇文章主要讲述平台android NDK不支持ABIs [armeabi,mips]相关的知识,希望能为你提供帮助。
我正在使用abiFilters在我的项目中使用JNI代码,如下所示

apply plugin: 'com.android.application'android { compileSdkVersion 28 defaultConfig { applicationId "com.example.intel.hellojni" minSdkVersion 15 targetSdkVersion 28 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" externalNativeBuild { cmake { cppFlags "" } } ndk { abiFilters "armeabi", "armeabi-v7a", "x86", "mips" } } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } externalNativeBuild { cmake { path "CMakeLists.txt" } } }dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'com.android.support:appcompat-v7:+' implementation 'com.android.support.constraint:constraint-layout:1.1.3' androidTestImplementation 'com.android.support.test:runner:1.0.2' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' }

它在一个系统中工作正常,但在将代码移动到其他系统后,它显示以下错误导入,我已检查新创建的项目它同样的错误
ABIs [armeabi, mips] are not supported for platform. Supported ABIs are [armeabi-v7a, arm64-v8a, x86, x86_64].Build command failed. Error while executing process F:sdkcmake3.6.4111459incmake.exe with arguments {-HC:UsersIntelDownloadsTestJNIapp -BC:UsersIntelDownloadsTestJNIapp.externalNativeBuildcmakedebugarmeabi -DANDROID_ABI=armeabi -DANDROID_PLATFORM=android-15 -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:UsersIntelDownloadsTestJNIappuildintermediatescmakedebugobjarmeabi -DCMAKE_BUILD_TYPE=Debug -DANDROID_NDK=F:sdk dk-bundle -DCMAKE_CXX_FLAGS= -DCMAKE_TOOLCHAIN_FILE=F:sdk dk-bundleuildcmakeandroid.toolchain.cmake -DCMAKE_MAKE_PROGRAM=F:sdkcmake3.6.4111459in inja.exe -GAndroid Gradle - Ninja} (include)CMakeLists.txt Open File CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage -- Configuring incomplete, errors occurred!

如果我删除armeabimips如下,那么它正在工作
ndk { abiFilters "armeabi-v7a", "x86" }

我已经为android studio安装了CMake和NDK。
答案正如消息所说,NDK不再支持那些ABI。这在NDK r17 changelog中提到:
已删除对ARMv5(armeabi),MIPS和MIPS64的支持。尝试构建任何这些ABI将导致错误。
【平台android NDK不支持ABIs [armeabi,mips]】正如其他人所说的那样,没有大量的设备可以从这些ABI中获益。

    推荐阅读