Android 安裝時報錯INSTALL_FAILED_NO_MATCHING_ABIS 的解決辦法


 

$ adb push D:\AndroidstudioTestWorkSpace\app\build\outputs\apk\app-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的

 

 

注釋掉紅色方框類容即可;

 

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM