QtCreator 17.0.2: Error on deployment to Android device
-
I'm working on a MacMini M1 with OSx version 26. I can compile and link my Android app. QtCreator starts the emulator and deploys the app. But then I get the following error in the Application Output:
15:19:11: Activity Manager error: /system/bin/sh: no closing quote 15:19:11: Android target "org.qtproject.theosys' // For individual settin" died.This message is coming from adb and let me assume that it was called wrong.
Here are the last lines from the Compile Output:Installing Android package to device. Running command "/Users/<user>/Library/Android/sdk/platform-tools/adb -s emulator-5554 install -r /Users/<user>/tpanel/build/Android_Qt_6_9_3_Clang_arm64_v8a-Debug/src/android-build-tpanel//build/outputs/apk/debug/android-build-tpanel-debug.apk" Performing Streamed Install Success Android package built successfully in 5.979 ms. -- It can now be run from the selected device/emulator. -- File: /Users/<user>/tpanel/build/Android_Qt_6_9_3_Clang_arm64_v8a-Debug/src/android-build-tpanel//build/outputs/apk/debug/android-build-tpanel-debug.apk 15:19:10: The process "/opt/Qt/6.9.3/macos/bin/androiddeployqt" exited normally. 15:19:10: Elapsed time: 00:15.It looks like androiddeployqt is running without problems. Then the app should be startet on the device. But this doesn't work. According to the error message adb is used. But how? Is there a script/python app somewhere doing this? I couldn't find anything in the Qt tree. Does anybody know? Or is there a workaround/fix for this? Using the script beyond is a kind of workaround but it would be easier to have the output inside of QtCreator.
BTW: The same error occours with a real device and also on Linux.
If I use adb on the command line to connect to the running app, then it works.
PS: Here is a small shell script to connect to the app and list the output of it on the console:#!/bin/bash export ANDROID_LOG_TAGS="ActivityManager:I tpanel:D *:S" PARS="" if [ ! -z "$1" ] then PARS="$1" fi adb ${PARS} logcat | tee tpanel.logA.T.