INSTALL_FAILED_NO_MATCHING_ABIS

来源:互联网 发布:五子棋雾化器完美数据 编辑:程序博客网 时间:2024/05/21 14:42

使用Android Studio 在Android Emulator上Run时出现以下提示,

Installation failed with message Failed to finalize session : INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113.
It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.

WARNING: Uninstalling will remove the application data!

Do you want to uninstall the existing application?

点击OK出现
Session ‘app’: Error Installing APK
在网上查了好多解决方法,最后发现是因为使用了native libraries 。该native libraries 不支持当前的cpu的体系结构。
NSTALL_FAILED_NO_MATCHING_ABIS means the architecture is not matched. If you are using a Android Studio on a Mac (which generally uses Apple’s ARM), then you need to set the Android Virtual Device CPU/ABI to ‘arm’ or ‘armeabi-v7a’. If however you are using a Android Studio on a PC (which generally uses Intel’s chip, then set to ‘x86’ or ‘x86_64’.
或者最快速的解决办法是在真机上运行程序。
参考
http://stackoverflow.com/questions/24572052/install-failed-no-matching-abis-when-install-apk

0 0
原创粉丝点击