在将App安装到模拟器时出现错误:INSTALL_FAILED_NO_MATCHING_ABIS

错误:INSTALL_FAILED_NO_MATCHING_ABIS,提示信息如下:

Installation failed with message 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?

解决办法:在build.gradle文件中添加以下代码:

android {
    splits {
        abi {
            enable true
            reset()
            include 'x86', 'armeabi-v7a','x86_64'
            universalApk true
        }
    }
}

转载请注明出处:

转载自http://lxfamn.cn/blog

未经允许不得转载:lxfamn » 在将App安装到模拟器时出现错误:INSTALL_FAILED_NO_MATCHING_ABIS

赞 (0) 打赏

置顶推荐

评论 0

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏