安装包安装失败,返回代码res=-113

安装包安装失败,返回代码res=-113

报错如下: 
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.
这种情况是说我们的是x86架构,但是你运行的项目支持的是arm架构,所以你需要让自己的项目也支持arm的架构。
我通过stackview上面一个回答找到这样的处理方式,你只需要在自己的build.gradle中的android{}中加入这样的几句代码就可以 
代码如下 :
splits { 
abi { 
enable true 
reset() 
include ‘x86’, ‘armeabi-v7a’ 
universalApk true 
}

猜你喜欢

转载自blog.csdn.net/qq_15867901/article/details/79105419