Qt的为Android没有找到任何兼容设备 [英] Qt for android doesn't find any compatible devices

查看:573
本文介绍了Qt的为Android没有找到任何兼容设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试着写与Qt5.2 Android应用程序。我的项目建立没有任何错误,但是当我试图运行它说我没有任何兼容设备。我按照这个这里输入链接的描述配置Qt Creator中
我不知道有什么问题。我将AP preciate您的任何帮助。

I'm trying to write android applications with Qt5.2. My project builds without any error, but when i'm trying to RUN it says i don't have any compatible devices. I configured QT creator according to this enter link description here I don't know what's the problem. I will appreciate any help from you.

推荐答案

有Qt Creator中的一个错误:的 https://bugreports.qt-project.org/browse/QTCREATORBUG-11658

It is a bug in Qt Creator: https://bugreports.qt-project.org/browse/QTCREATORBUG-11658

这是一个行为改变在Android SDK中,列出了一些preFIX虚拟设备的最新版本。因此,而不是armeabi-V7A它返回缺省的/ armeabi-V7A,导致QtCreator抱怨ABI不支持。

It is a changed behaviour in the latest version of the Android SDK that lists Virtual Devices with some prefix. So instead of armeabi-v7a it's returning default/armeabi-v7a, resulting in QtCreator complaining that the ABI is not supported.

您可以克服这个问题:

在QtCreator - >项目 - > BuildEnvironment添加变量

In QtCreator -> Projects -> BuildEnvironment add the variable

ANDROID_TARGET_ARCH=default/armeabi-v7a

然后自动真空淀积系统显示为兼容。

Then the AVDs are shown as compatible.

这篇关于Qt的为Android没有找到任何兼容设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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