在Android模拟器中安装APK时出错

时间:2019-02-06 07:48:28

标签: java android android-emulator

我尝试了stackoverflow上所有可用的解决方案。但是我一次又一次遇到相同的错误。不知道它来自哪里。 我遵循了这个thread。并将build.gradle文件更新为

splits {
        abi {
            enable true
            reset()
            include 'x86', 'x86_64', 'armeabi', 'armeabi-v7a', 'mips', 'mips64', 'arm64-v8a'
            universalApk false
        }
    }

这是我得到的错误

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?

直到昨天晚上,一切正常。但是今天却毁了我的一天。有人可以帮我吗?

我没有使用诸如genymotion或弧焊机之类的其他应用程序。我在android模拟器上收到此错误。

我尝试在真实设备上运行它,但存在相同的问题。

致谢

1 个答案:

答案 0 :(得分:0)

不能相信由于apache库而发生此错误。我最近在项目中添加了一些apache依赖项,然后开始出现此错误。我添加的行 implementation 'org.apache.directory.studio:org.apache.commons.io:2.4' 然后经过一整天的苦苦挣扎。最后,我撤消了所有更改,并发现这是由于apache软件包引起的。

我在build.gradle中添加了此依赖关系,并且效果很好。 implementation group: 'commons-io', name: 'commons-io', version: '2.5'

但是无法弄清楚apache软件包如何中断模拟器正常工作。奇怪!

发布此答案,以便如果有人可以理解问题背后的原因,请也向我解释一下:P

相关问题