简体   繁体   English

将Qt 5 QML应用程序部署到真实的Android设备

[英]Deploy Qt 5 QML application to a real Android device

There are many tutorials how to build an application with Qt for Android. 有许多教程如何使用Qt for Android构建应用程序。 So I do it in these steps: 因此,我按以下步骤进行操作:

  1. Installed Android SDK, NDK, JDK and Apache Ant 已安装Android SDK,NDK,JDK和Apache Ant
  2. Installed Qt 5.2 for Android 已安装Android版Qt 5.2
  3. Created simple QML application. 创建了简单的QML应用程序。
  4. Configured virtual device from AVD Manager 通过AVD Manager配置的虚拟设备
  5. I tried to run it and it bringed up Emulator window with my app. 我尝试运行它,并在我的应用程序中打开了Emulator窗口。 OK, it is going as expected. OK,一切正常。
  6. Now I want to run it on real device. 现在,我想在真实设备上运行它。 I have Samsung Galaxy Tab 2 10.1 P5100 so I enabled USB debug and connected it to PC. 我有Samsung Galaxy Tab 2 10.1 P5100,所以我启用了USB调试并将其连接到PC。

But when I run the application, in "Select Android device" window I see only emulator, not real device. 但是,当我运行该应用程序时,在“选择Android设备”窗口中,我只能看到模拟器,而不能看到真实设备。

So how can I run the application on real device? 那么如何在真实设备上运行该应用程序?

The easiest way is to follow the documentation http://doc-snapshot.qt-project.org/qtcreator-2.8/creator-deploying-android.html 最简单的方法是遵循文档http://doc-snapshot.qt-project.org/qtcreator-2.8/creator-deploying-android.html

Using Ministro to manage having apk to deploy on real device is especialy a good point. 使用Ministro来管理将apk部署在真实设备上是一个好主意。

Hope it helps. 希望能帮助到你。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM