Qt5 for Android: incompatible ABI

本文介绍了解决Qt编译Android项目时遇到的兼容性问题的方法。通过在Qt Creator中设置正确的Android目标架构变量,可以成功修复无法为特定API级别编译的问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

I recently installed Qt5 and works like a charm for API 17 and armeabi-v7a.
But I added second AVD with other parameters (of course, I installed packages in AVD settings). Now, I can't compile first project and new project for API10. When check any toolchain (armeabi or armeabi-v7a), window for choose AVD says that I don't have compatible AVD (in message displays that AVD supports 
default/armeabi or default/armeabi-v7a).
Anyone know how I can repair this? I think that problem is with "
default/"...

[SOLUTION]

There seems to be another workaround for this problem:

In QtCreator -> Projects -> BuildEnvironment add the variable

ANDROID_TARGET_ARCH=default/armeabi-v7a

Then the AVDs are shown as compatible.

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值