如果我想开发 C++ Qt Android 应用程序,开发工具版本的工作组合是什么?我尝试了几种组合,但它们都因简单的 Hello World 测试应用程序的奇怪构建错误而失败。
目前,我有
但是例如失败了
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.
我想使用开源版本。
请提供具有正确版本号的工具列表,并可能提供下载链接。
最佳答案
好的程序是使用 Qt 的在线安装程序 (https://www.qt.io/download-qt-installer),获取最新版本的 QtCreator/Qt,然后获取最新版本的 ndk/sdk/jdk,然后祈祷,因为它并不总是有效...
我在 2019 年初与此作斗争,从那时起,在 Windows 7 和 10 下,这是一个完美适合我的组合。
platform-tools
和 android-28
.试试 sdkmanager "platform-tools" "platforms;android-28"
不需要
ant
不再,QtCreator 将下载和使用 gradle
默默。
关于android - 今天使用 Qt 进行 C++ Android 编程的工具版本的工作组合?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50280441/