Android デバイスでのデバッグ
Qt 5.15.9 以降および Qt 6.2 以降で開発した Android デバイス上のアプリケーションは、LLDB を使用してデバッグできます。
Qt Creator の最近のリリースでは、Android 上で LLDB を使用したネイティブ (C++) デバッグに問題があります。
これはQt Creator 17.0.1 で修正されました。それ以前のリリースでこれを修正するには、Preferences >Debugger >GDB にアクセスし、Additional Attach Commands に以下を追加してください。
settings set plugin.jit-loader.gdb.enable off

デバイスでデバッグを有効にする
Android デバイスによって、デバッグを有効にする方法が異なります。Developer Options の下にあるUSB Debugging を探してください。Settings >About のBuild number を数回タップしてDeveloper Options を表示します。
デバッグ・ビルド構成を選択する
Projects >Build Settings に移動し、Active build configuration でデバッグビルド構成を選択し、デバッグ用アプリケーションをビルドします。
第 2 のデバッガとの競合を解決する
Qt Creator Android Studioが起動している場合、Androidデバイス上のアプリケーションをデバッグできません。Application Outputに以下のメッセージが表示された場合は、Android Studioを終了して、再度デバッグを実行してください:
Ignoring second debugger -accepting and dropping.
Androidエミュレーターを使用する
Linux、macOS、Windows上でAndroidデバイスをエミュレートするには、Android Emulatorを使用します。Android Emulatorは、Android Virtual Device(AVD)と呼ばれる仮想マシンでAndroidオペレーティングシステムを実行します。
How toも参照してください :Android 用の開発」、「Android 用の開発」、および「デバイス上の開発者オプションを設定する」も参照してください。
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.