为 Android 开发

安装针对 Android 的 Qt 版本以及 Android SDK 和 NDK,以便为 Android 设备开发 Qt 应用程序。要查看每个 Qt 版本支持的 Android 版本,请参阅 Qt 版本的Qt for Android文档。

要获得有用的 Java 代码编辑功能,如代码补全、高亮显示、函数工具提示和代码导航,请添加Java 语言服务器

Qt Creator Android Debug Bridge ( ) 集成了 Android Debug Bridge 命令行工具,用于将应用程序部署到 Android 设备、运行应用程序并读取日志。 工具包括在计算机上运行的客户端和服务器,以及在 Android 模拟器或设备上运行的守护进程。adb adb

注意: Qt Creator 只有在启用 USB 调试后才能检测到设备并与之连接。

下面的视频展示了从安装 Qt for Android 到在 Android 设备上调试应用程序的整个过程:

要求

要使用Qt Creator 为 Android 开发 Qt 应用程序,您需要

另请参阅 " 如何:为 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.