adb avd install 失败,尝试在QtCreator中的x86-64 AVD上运行x86-64 APK时,INSTALL_FAILED_NO_MATCHING_ABIS...

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.

e4bc9602f8056839616ea8bcf88ad4ed.png

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!

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.

What am I missing?

解决方案

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

Go to Projects mode:

a2144a43db432f2d398e8805424b32d0.png

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):

9623f33a8862913bc84a21278b7775d6.png

Hope it helps the future readers to save some time.

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值