配置Qt Creator进行Android开发 [英] Configure Qt Creator for Android development

查看:190
本文介绍了配置Qt Creator进行Android开发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装:

Qt 5.14.1 (适用于msvc 2017&Android已安装到 c:\ Qt \ Qt5.14.1 \ :

Qt Creator中可用的编译器:

可用的套件:

JDK-13.0.2 已安装到 c:\ Program Files \ Java \ jdk-13.0.2

Android Studio 3.6.1 ,其中将SDK安装到 g:\ Android \ SDK g:\ Android \ Android Studio \ ,如下所示:

SDK工具:

现在我在Qt Creator中看到的内容:

如何解决这些错误?为什么会出现?

我已经安装了JDK 8而不是13.但是仍然有相同的红叉.

也在主题

在Qt Creator中,Android设置现在几乎可以使用:

解决方案

您可以检查这些可能对您有所帮助的链接.尽管看起来问题出在JDK版本,但您应该使用JDK 8进行测试,而不是最新版本.

I have installed:

Qt 5.14.1 for msvc 2017 & Android installed to c:\Qt\Qt5.14.1\:

Compilers available in Qt Creator:

Kits available:

JDK-13.0.2 installed to c:\Program Files\Java\jdk-13.0.2

Android Studio 3.6.1 g:\Android\Android Studio\ with SDKs installed to g:\Android\SDK as shown below:

SDK tools:

Now what I see in Qt Creator:

How can I fix these errors? Why did they arise?

Edit: I've installed JDK 8 instead of 13. But still have the same red crosses.

Also in the topic 'Platform SDK installed' red X Adding Android SDK Tools in Qt Creator says that SDK 25.2.5 has to be installed, but how can I install SDK 25.2.5 ? Android Studio doesn't have this version available in the System Settings.

Edit 2: I've downloaded the archive "Android SDK Tools 25.2.5" from the link https://androidsdkmanager.azurewebsites.net/SDKTools . As I understand, this archive contains "SDK tools 25.2.5" + "some Android package manager". Then I:

  1. Unpack the archive to the folder g:\Android\SDK\tools\. What the folder actually contains:

ant\
apps\
bin\
lib\
lib64\
proguard\
qemu\
support\
templates\
android.bat
ddms.bat
draw9patch.bat
hierarchyviewer.bat
jobb.bat
lint.bat
monitor.bat
monkeyrunner.bat
traceview.bat
uiautomatorviewer.bat
emulator.exe
emulator-arm.exe
emulator-check.exe
emulator-crash-service.exe
emulator-mips.exe
emulator-x86.exe
emulator64-crash-service.exe
mksdcard.exe
source.properties
NOTICE.txt
package.xml

  1. Run android.bat from the folder and in the window that appears, I see that now I have SDK 25.2.5 installed:

And in Qt Creator Android Settings are almost ok now:

解决方案

You can check these links that may help you. Although, its looks like the problem is the JDK version, you should test with JDK 8, instead the latest release.

这篇关于配置Qt Creator进行Android开发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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