尝试在QtCreator中的x86-64 AVD上运行x86-64 APK时,INSTALL_FAILED_NO_MATCHING_ABIS [英] INSTALL_FAILED_NO_MATCHING_ABIS when trying to run an x86-64 APK on an x86-64 AVD in QtCreator

查看:779
本文介绍了尝试在QtCreator中的x86-64 AVD上运行x86-64 APK时,INSTALL_FAILED_NO_MATCHING_ABIS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不想每次尝试运行已编译的APK时都插入手机,而且ARM仿真在x86系统中非常慢.因此,我决定在QtCreator IDE中添加一个工具包,只是为了为x86构建APK.以便能够在AVD中轻松运行它们.

I don't want to plug in my phone each time I try to run a compiled APK and also ARM emulation is quite slow in x86 systems.So I decided to add a kit in the QtCreator IDE merely to build APKs for x86 to be able to run them easily in the AVD.

IDE中没有与套件配置相关的错误或警告,但是当我构建要在x86-64 AVD上运行它的项目时,我得到了:

There's no error or warning related to the kit configuration in the IDE but when I build the project to run it on my x86-64 AVD , I get this:

adb: failed to install whatever.apk: Failure [INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113]
Installing to device failed!

通过这种方式,我确定我在Select Android Device窗口中使用了正确的AVD,并且已经通过维护工具安装了Qt的x86_64组件.

By the way I'm sure I'm using the correct AVD in the Select Android Device window and I've installed the x86_64 components for Qt via the Maintenance Tool.

我想念什么?

推荐答案

最后我自己找到了答案.这是说明:

Finally I found the answer myself.Here's the instructions:

  1. 进入项目模式:

2.在Build Steps部分下,选择所需的 ABI (对于Qt 5.14,当通过 MaintainerTool 程序安装Android工具时,所有这些库ABI将自动安装):

2.Under the Build Steps section select the desired ABI(For Qt 5.14 when you install Android tools via the MaintainerTool program,libraries for all of these ABIs would be installed automatically):

希望它可以帮助将来的读者节省一些时间.

Hope it helps the future readers to save some time.

这篇关于尝试在QtCreator中的x86-64 AVD上运行x86-64 APK时,INSTALL_FAILED_NO_MATCHING_ABIS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆