adb 安装失败 [INSTALL_FAILED_NO_MATCHING_ABIS: 无法提取本机库,res=-113]
构建原生 .so 并使用 ant build 制作 apk,想测试一下,所以在模拟器上安装了 adb 并得到以下错误: 失败 [INSTALL_FAILED_NO_MATCHING_ABIS: 无法提取本机库,res=-113]
我不明白,在 apk 上完成了注入 /libs/arm64-v8a 的 ant zip 任务,解压后显示它们在那里......
我看过这个问题,每个人都展示了 gradle 解决方案,我不想使用 gradle,我想要一个 ant 解决方案。
Microsoft 跨平台 C++ 本机活动解决方案在 arm64 配置中使用 ant 并且安装良好,除非使用 adb install 手动执行,否则不会发生此错误。
Build native .so's and made apk with ant build, wanted to test so did an adb install on an emulator and got the following error:
Failure [INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113]
I do not get it, an ant zip task to inject /libs/arm64-v8a was done on the apk and unzipping it shows they are there....
I have seen this question and everyone shows gradle solutions, I do not want to use gradle, i want an ant solution please.
The Microsoft cross platform C++ native activity solution uses ant in an arm64 configuration and installs fine, this error does not occur unless doing manually with adb install.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试删除损坏项目中的 .gradle 文件夹,
然后从任何工作项目副本中获取 .gradle 文件夹。粘贴到损坏的项目。
Try deleting the .gradle folder in the corrupted project,
then take a .gradle folder from any working project copy & paste to the corrupted project.