Android 开发
安装针对 Android 的 Qt 版本以及 Android SDK 和 NDK,以便为 Android 设备开发 Qt 应用程序。要查看每个 Qt 版本支持的 Android 版本,请参阅该 Qt 版本的Qt for Android文档。
若要获取 Java 的实用代码编辑功能(例如代码补全、语法高亮、函数工具提示以及代码导航),请添加一个Java 语言服务器。
Qt Creator 集成了 Android 调试桥(adb )命令行工具,用于将应用程序部署到 Android 设备、运行应用程序以及读取其日志。adb 工具包括在计算机上运行的客户端和服务器,以及在 Android 模拟器或设备上运行的守护进程。
注意: 只有在设备上启用 USB 调试后,Qt Creator 才能检测到该设备并与其建立连接。
以下视频展示了从安装 Qt for Android 到在 Android 设备上调试应用程序的完整过程:
系统要求
要使用Qt Creator 开发 Android 版 Qt 应用程序,您需要:
- Qt for Android
- Qt Creator 可为您自动下载、安装并配置的Android 工具。
另请参阅 《如何:为 Android 开发》以及《获取并安装 Qt》。
Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.