美文网首页Android开发学习
INSTALL_FAILED_NO_MATCHING_ABIS

INSTALL_FAILED_NO_MATCHING_ABIS

作者: 小小程序员jh | 来源:发表于2017-09-18 14:11 被阅读30次

    在Android模拟器上安装apk的时候出现INSTALL_FAILED_NO_MATCHING_ABIS

    在 android{} block:

    splits {
            abi {
                enable true
                reset()
                include 'x86', 'armeabi-v7a'
                universalApk true
            }
        }
    

    这个错误提示的解决办法。
    是由于使用了native libraries 。该native libraries 不支持当前的cpu的体系结构。
    INSTALL_FAILED_NO_MATCHING_ABIS is when you are trying to install an app that has native libraries and it doesn't have a native library for your cpu architecture. For example if you compiled an app for armv7 and are trying to install it on an emulator that uses the Intel architecture instead it will not work.
    现在安卓模拟器的CPU/ABI一般有三种类型,INTEL X86,ARM,MIPS,

    如果选择用INTEL X86出现INSTALL_FAILED_NO_MATCHING_ABIS的错误,那就改用ARM的
    参考:http://stackoverflow.com/questions/24572052/install-failed-no-matching-abis-when-install-apk

    相关文章

      网友评论

        本文标题:INSTALL_FAILED_NO_MATCHING_ABIS

        本文链接:https://www.haomeiwen.com/subject/jpcbsxtx.html