Android Installation failed with message INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native l

版权声明:转载请注明出处 https://blog.csdn.net/daqiang012/article/details/89226250

Android模拟器运行提示:

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
        }
    }

如下图所示:

注意:有两个build.gradle文件,在下面那个文件中添加以上代码。

猜你喜欢

转载自blog.csdn.net/daqiang012/article/details/89226250