Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QtCreator 17.0.2: Error on deployment to Android device

QtCreator 17.0.2: Error on deployment to Android device

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
qtcreator17.0.2androiddeploymentandroiddeployqt
1 Posts 1 Posters 203 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    TheoSys
    wrote on last edited by TheoSys
    #1

    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.log
    

    A.T.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved