关于INSTALL_FAILED_NO_MATCHING_ABIS.的个人总结

来源:互联网 发布:php还原html转义字符 编辑:程序博客网 时间:2024/05/19 05:29
本人再玩高德api的时候遇到这个问题,百思不得其解,在查阅大量中文博客后都调试失败,不过还好最后在一个英文博客找到了解决方案。于是做个小总结导致INSTALL_FAILED_NO_MATCHING-ABIS.这个错误,有很多种,如下。分别对应不同解决方法。
  1. 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.
    所以在配置文件build.gradle的android{}里加入
    splits {
    abi {
    enable true
    reset()
    include ‘x86’, ‘armeabi-v7a’
    universalApk true
    }
    把配置改写成Nexus的32位系统。就好了
  2. 未完待续。
0 0