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

error when installing apk to the phone via adb install -r :

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

reason:

 ndk {
                abiFilters "armeabi-v7a"
//                abiFilters "x86"
            }

:
due to install the APP using the native libraries with the current CPU architecture do not agree, so lead to an error, because the vast majority of smartphones are now using the ARM architecture, while android is support ARM and x86 architecture, but the instruction set is distinct, the APP is used when development ARM of the local library, and we were using the AVD is used when creating the simulator x86 CPU, thus result in an error. So, if the APP is compiled in an x86 architecture we create an emulator for x86CPU, and if the APP is compiled in an ARM architecture we create an emulator for ARMcpu.

is the NDK selected by the packaged apk generation is not compatible with the NDK of the mobile phone system. As long as the NDK type is modified and repackaged,

is ok

Read More: