Deploy Qt 5 QML application to a real Android device

谁说胖子不能爱 提交于 2021-02-08 06:15:07

问题


There are many tutorials how to build an application with Qt for Android. So I do it in these steps:

  1. Installed Android SDK, NDK, JDK and Apache Ant
  2. Installed Qt 5.2 for Android
  3. Created simple QML application.
  4. Configured virtual device from AVD Manager
  5. I tried to run it and it bringed up Emulator window with my app. OK, it is going as expected.
  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.

But when I run the application, in "Select Android device" window I see only emulator, not real device.

So how can I run the application on real device?


回答1:


The easiest way is to follow the documentation 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.

Hope it helps.



来源:https://stackoverflow.com/questions/20716012/deploy-qt-5-qml-application-to-a-real-android-device

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!