What is a working combination of versions of the development tools if I want to develop C++ Qt Android apps? I tried several combinations but they all fail with strange build errors of a simple Hello World test app.
Currently, I have
but e.g. that fails with
Buildfile: build.xml does not exist!
Build failed
Warning: Android platform 'android--1' does not exist in SDK.
Building the android package failed!
-- For more information, run this command with --verbose.
21:35:44: Der Prozess "C:\EigeneDateien\bin\Qt-5.8.0\5.8\android_armv7\bin\androiddeployqt.exe" wurde mit dem Rückgabewert 14 beendet.
Run Code Online (Sandbox Code Playgroud)
I want to use an open source version.
Please, give a list of tools with correct version numbers and maybe download links.
好的程序是使用 Qt 的在线安装程序(https://www.qt.io/download-qt-installer),获取最新版本的 QtCreator/Qt,然后获取最新版本的 ndk/sdk/jdk 并祈祷因为它并不总是有效...
我在 2019 年初与此进行了斗争,从那时起,在 Windows 7 和 10 下,这是一个非常适合我的组合。
QtCreator 4.8.0,基于 Qt 5.12.0。当时我从在线安装程序中获取了它并将其存档,但显然您可以从此处专门下载它。
NDK r18b
JDK 1.8.0_201,可以从此页面下载(找到jdk-8u201-windows-x64.exe)
Android SDK 命令行工具“sdk-tools-windows-4333796”,可在此处获取。然后使用sdkmanager下载APIplatform-tools
和android-28
. 尝试sdkmanager "platform-tools" "platforms;android-28"
不再需要了ant
,QtCreator 会gradle
默默下载并使用。
归档时间: |
|
查看次数: |
133 次 |
最近记录: |