我已经尝试了 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 或 arc焊机等其他应用程序。我在 Android 模拟器上收到此错误。
我尝试在真实设备上运行它,但出现同样的问题。
问候
最佳答案
不敢相信这个错误是由于 apache 库而发生的。我最近在我的项目中添加了一些 apache 依赖项,然后开始出现此错误。我添加的行
实现“org.apache.directory.studio:org.apache.commons.io:2.4”
然后经过一整天的挣扎。最后,我撤消了所有更改,并发现这是由于 apache 包而发生的。
我在 build.gradle 中添加了这个依赖项,它工作得很好。
实现组:'commons-io',名称:'commons-io',版本:'2.5'
。
但无法弄清楚 apache 包如何中断模拟器正常工作。奇怪!
发布此答案是为了如果有人能够理解问题背后的原因,请也向我解释一下:P
关于java - 在android模拟器中安装apk时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54548820/