ABIs [armeabi, mips] are not supported for platform android NDK

前端 未结 4 1280
野趣味
野趣味 2021-02-06 02:10

I am using JNI code in my project with abiFilters like below

apply plugin: \'com.android.application\'

android {
    compileSdkVersion 28
    defa         


        
相关标签:
4条回答
  • 2021-02-06 02:42

    As the message says, those ABIs are no longer supported by the NDK. This is mentioned in the NDK r17 changelog:

    Support for ARMv5 (armeabi), MIPS, and MIPS64 has been removed. Attempting to build any of these ABIs will result in an error.

    As others have said, there are not a significant number of devices out there that benefit from targeting any of these ABIs.

    0 讨论(0)
  • 2021-02-06 02:46

    remove 'armebi' from abiFilters in your build.gradle file. armebi is no longer supported by the NDK. A correct list could be:

    ndk {
      abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
    }
    
    0 讨论(0)
  • 2021-02-06 02:54

    armeabi are no longer supported by NDK. Remove armeabi from build gradle or replace with supported ABIs e.g 'x86'

    0 讨论(0)
  • 2021-02-06 02:54

    The same issue using Android Studio 4.1.1 on Windows 10. Changing the version in build.gradle fixes e.g. from classpath "com.android.tools.build:gradle:4.1.1" to classpath "com.android.tools.build:gradle:4.0.0".

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