• Android 安装时报错INSTALL_FAILED_NO_MATCHING_ABIS 的解决办法


    $ adb push D:AndroidstudioTestWorkSpaceappuildoutputsapkapp-debug.apk       /data/local/tmp/com.isan.test
    $ adb shell pm install -r "/data/local/tmp/com.isan.test"
     

    在安装App到手机上是提示安装错误:INSTALL_FAILED_NO_MATCHING_ABIS

    错误原因:是由于使用了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的

     

    注释掉红色方框类容即可;

  • 相关阅读:
    java内部类
    接口与继承
    数据结构
    数据I/O流
    课程总结
    第六次实训作业异常处理
    常用类的课后作业
    窗口实训1
    实训作业4
    实训作业3
  • 原文地址:https://www.cnblogs.com/ISAN-Liu/p/INSTALL_FAILED_NO_MATCHING_ABIS.html
Copyright © 2020-2023  润新知