Android的真机调试,INSTALL_FAILED_NO_MATCHING_ABIS

在Android studio开发过程中,如果真机调试出现如下错误:



Android的真机调试,INSTALL_FAILED_NO_MATCHING_ABIS_第1张图片
Installation failed with message INSTALL_FAILED_NO_MATCHING_ABIS.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?


解决问题,很简单,其实就是真机调试中jar包对于不同系统兼容性的问题,在build.gradle的android节点下面加入:

splits {

    abi {

        enabletrue

        reset()

        include'x86','armeabi-v7a','x86_64'

        universalApktrue

    }

}

 如下图所示:


Android的真机调试,INSTALL_FAILED_NO_MATCHING_ABIS_第2张图片

重新编译,就可以真机运行。

你可能感兴趣的:(Android的真机调试,INSTALL_FAILED_NO_MATCHING_ABIS)