[INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113]

前端 未结 11 1376
灰色年华
灰色年华 2020-11-29 00:38

I have an issue with third party libraries that are imported to my project.

I read quite a lot of articles about that but do not get any information how properly han

相关标签:
11条回答
  • 2020-11-29 01:23

    After some time i investigate and understand that path were located my libs is right. I just need to add folders for different architectures:

    • ARM EABI v7a System Image

    • Intel x86 Atom System Image

    • MIPS System Image

    • Google APIs

    0 讨论(0)
  • 2020-11-29 01:24

    If you got this error when working with your flutter project, you can add the following code in the module build.gradle and within Android block and then in the defaultConfig block. This error happened when I was trying to make a flutter apk build.

    android{
        ...
        defaultConfig{
            ...
            //Add this ndk block of code to your build.gradle
            ndk {
                abiFilters 'armeabi-v7a', 'x86', 'armeabi'
            }
        }
    }
    
    0 讨论(0)
  • 2020-11-29 01:27

    Doing flutter clean actually worked for me

    0 讨论(0)
  • 2020-11-29 01:32

    Android 9 and Android 11 emulators have support for arm binaries.

    https://developer.android.com/studio/releases/emulator#support_for_arm_binaries_on_android_9_and_11_system_images

    I had the same issue while using x86 emulator with API level 29, trying to install an apk targeting arm ABI.

    I tried x86 emulator with API level 30 and it worked fine.

    0 讨论(0)
  • 2020-11-29 01:34

    Anyone facing this while using cmake build, the solution is to make sure you have included the four supported platforms in your app module's android{} block:

     externalNativeBuild {
                cmake {
                    cppFlags "-std=c++14"
                    abiFilters "arm64-v8a", "x86", "armeabi-v7a", "x86_64"
                }
            }
    
    0 讨论(0)
提交回复
热议问题