使用android studio安装apk报错信息如下:
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.
解决方法:
在app->build.dradle文件中添加一下代码,需要注意上级的范围(在android{}里面添加):
android {
splits {
abi {
enable true
reset()
include 'x86', 'armeabi-v7a','x86_64'
universalApk true
}
}
}