Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt 6.3 unable to deploy to device (windows 10)
Forum Updated to NodeBB v4.3 + New Features

Qt 6.3 unable to deploy to device (windows 10)

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
5 Posts 3 Posters 1.1k 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.
  • U Offline
    U Offline
    Ulaspag
    wrote on last edited by
    #1

    Hi! I get this errors(compile) when I deploy to device.

    "Skipping createRCC
    adb.exe: device 'DVKS100I21060300956' not found
    Warning: QML import could not be resolved in any of the import paths: Shapes
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Windows
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.macOS
    Installing to device failed!
    Installing Android package to device.
    Running command "C:/Users/o/AppData/Local/Android/Sdk/platform-tools/adb.exe -s DVKS100I21060300956 install -r C:/Users/o/Documents/build-TrackGate-Android_Qt_6_3_0_Clang_arm64_v8a-Debug/android-build//build/outputs/apk/debug/android-build-debug.apk"
    09:59:35: The process "C:\Qt\6.3.0\mingw_64\bin\androiddeployqt.exe" exited with code 16.
    09:59:35: Installing the app failed with an unknown error.
    09:59:35: Pulling files necessary for debugging.
    09:59:35: Package deploy: Running command "C:\Users\o\AppData\Local\Android\Sdk\platform-tools\adb.exe -s DVKS100I21060300956 pull /system/bin/app_process C:/Users/o/Documents/build-TrackGate-Android_Qt_6_3_0_Clang_arm64_v8a-Debug/app_process".
    09:59:35: The command "C:\Users\o\AppData\Local\Android\Sdk\platform-tools\adb.exe -s DVKS100I21060300956 pull /system/bin/app_process C:/Users/o/Documents/build-TrackGate-Android_Qt_6_3_0_Clang_arm64_v8a-Debug/app_process" terminated with exit code 1.
    09:59:35: Package deploy: Failed to pull "/system/bin/app_process" to "C:/Users/o/Documents/build-TrackGate-Android_Qt_6_3_0_Clang_arm64_v8a-Debug/app_process".
    09:59:35: Package deploy: Running command "C:\Users\o\AppData\Local\Android\Sdk\platform-tools\adb.exe -s DVKS100I21060300956 pull /system/bin/app_process32 C:/Users/o/Documents/build-TrackGate-Android_Qt_6_3_0_Clang_arm64_v8a-Debug/app_process".
    09:59:35: The command "C:\Users\o\AppData\Local\Android\Sdk\platform-tools\adb.exe -s DVKS100I21060300956 pull /system/bin/app_process32 C:/Users/o/Documents/build-TrackGate-Android_Qt_6_3_0_Clang_arm64_v8a-Debug/app_process" terminated with exit code 1.
    09:59:35: Package deploy: Failed to pull "/system/bin/app_process32" to "C:/Users/o/Documents/build-TrackGate-Android_Qt_6_3_0_Clang_arm64_v8a-Debug/app_process".
    09:59:35: Package deploy: Running command "C:\Users\o\AppData\Local\Android\Sdk\platform-tools\adb.exe -s DVKS100I21060300956 pull /system/bin/linker C:/Users/o/Documents/build-TrackGate-Android_Qt_6_3_0_Clang_arm64_v8a-Debug/linker".
    09:59:35: The command "C:\Users\o\AppData\Local\Android\Sdk\platform-tools\adb.exe -s DVKS100I21060300956 pull /system/bin/linker C:/Users/o/Documents/build-TrackGate-Android_Qt_6_3_0_Clang_arm64_v8a-Debug/linker" terminated with exit code 1.
    09:59:35: Package deploy: Failed to pull "/system/bin/linker" to "C:/Users/o/Documents/build-TrackGate-Android_Qt_6_3_0_Clang_arm64_v8a-Debug/linker".
    09:59:35: Package deploy: Running command "C:\Users\o\AppData\Local\Android\Sdk\platform-tools\adb.exe -s DVKS100I21060300956 pull /system/lib/libc.so C:/Users/o/Documents/build-TrackGate-Android_Qt_6_3_0_Clang_arm64_v8a-Debug/libc.so".
    09:59:35: The command "C:\Users\o\AppData\Local\Android\Sdk\platform-tools\adb.exe -s DVKS100I21060300956 pull /system/lib/libc.so C:/Users/o/Documents/build-TrackGate-Android_Qt_6_3_0_Clang_arm64_v8a-Debug/libc.so" terminated with exit code 1.
    09:59:35: Package deploy: Failed to pull "/system/lib/libc.so" to "C:/Users/o/Documents/build-TrackGate-Android_Qt_6_3_0_Clang_arm64_v8a-Debug/libc.so".
    Error while building/deploying project TrackGate (kit: Android Qt 6.3.0 Clang arm64-v8a)
    When executing step "Deploy to Android device"
    09:59:35: Elapsed time: 03:02."

    I also get " Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details
    Warning: This version only understands SDK XML versions up to 2 but an SDK XML file of version 3 was encountered. This can happen if you use versions of Android Studio and the command-line tools that were released at different times.
    Warning: unexpected element (uri:"", local:"base-extension"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level> "

    " Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
    "

    Please assist with deployment to device.
    Thanks in advance

    R 1 Reply Last reply
    0
    • U Ulaspag

      Hi! I get this errors(compile) when I deploy to device.

      "Skipping createRCC
      adb.exe: device 'DVKS100I21060300956' not found
      Warning: QML import could not be resolved in any of the import paths: Shapes
      Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Windows
      Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.macOS
      Installing to device failed!
      Installing Android package to device.
      Running command "C:/Users/o/AppData/Local/Android/Sdk/platform-tools/adb.exe -s DVKS100I21060300956 install -r C:/Users/o/Documents/build-TrackGate-Android_Qt_6_3_0_Clang_arm64_v8a-Debug/android-build//build/outputs/apk/debug/android-build-debug.apk"
      09:59:35: The process "C:\Qt\6.3.0\mingw_64\bin\androiddeployqt.exe" exited with code 16.
      09:59:35: Installing the app failed with an unknown error.
      09:59:35: Pulling files necessary for debugging.
      09:59:35: Package deploy: Running command "C:\Users\o\AppData\Local\Android\Sdk\platform-tools\adb.exe -s DVKS100I21060300956 pull /system/bin/app_process C:/Users/o/Documents/build-TrackGate-Android_Qt_6_3_0_Clang_arm64_v8a-Debug/app_process".
      09:59:35: The command "C:\Users\o\AppData\Local\Android\Sdk\platform-tools\adb.exe -s DVKS100I21060300956 pull /system/bin/app_process C:/Users/o/Documents/build-TrackGate-Android_Qt_6_3_0_Clang_arm64_v8a-Debug/app_process" terminated with exit code 1.
      09:59:35: Package deploy: Failed to pull "/system/bin/app_process" to "C:/Users/o/Documents/build-TrackGate-Android_Qt_6_3_0_Clang_arm64_v8a-Debug/app_process".
      09:59:35: Package deploy: Running command "C:\Users\o\AppData\Local\Android\Sdk\platform-tools\adb.exe -s DVKS100I21060300956 pull /system/bin/app_process32 C:/Users/o/Documents/build-TrackGate-Android_Qt_6_3_0_Clang_arm64_v8a-Debug/app_process".
      09:59:35: The command "C:\Users\o\AppData\Local\Android\Sdk\platform-tools\adb.exe -s DVKS100I21060300956 pull /system/bin/app_process32 C:/Users/o/Documents/build-TrackGate-Android_Qt_6_3_0_Clang_arm64_v8a-Debug/app_process" terminated with exit code 1.
      09:59:35: Package deploy: Failed to pull "/system/bin/app_process32" to "C:/Users/o/Documents/build-TrackGate-Android_Qt_6_3_0_Clang_arm64_v8a-Debug/app_process".
      09:59:35: Package deploy: Running command "C:\Users\o\AppData\Local\Android\Sdk\platform-tools\adb.exe -s DVKS100I21060300956 pull /system/bin/linker C:/Users/o/Documents/build-TrackGate-Android_Qt_6_3_0_Clang_arm64_v8a-Debug/linker".
      09:59:35: The command "C:\Users\o\AppData\Local\Android\Sdk\platform-tools\adb.exe -s DVKS100I21060300956 pull /system/bin/linker C:/Users/o/Documents/build-TrackGate-Android_Qt_6_3_0_Clang_arm64_v8a-Debug/linker" terminated with exit code 1.
      09:59:35: Package deploy: Failed to pull "/system/bin/linker" to "C:/Users/o/Documents/build-TrackGate-Android_Qt_6_3_0_Clang_arm64_v8a-Debug/linker".
      09:59:35: Package deploy: Running command "C:\Users\o\AppData\Local\Android\Sdk\platform-tools\adb.exe -s DVKS100I21060300956 pull /system/lib/libc.so C:/Users/o/Documents/build-TrackGate-Android_Qt_6_3_0_Clang_arm64_v8a-Debug/libc.so".
      09:59:35: The command "C:\Users\o\AppData\Local\Android\Sdk\platform-tools\adb.exe -s DVKS100I21060300956 pull /system/lib/libc.so C:/Users/o/Documents/build-TrackGate-Android_Qt_6_3_0_Clang_arm64_v8a-Debug/libc.so" terminated with exit code 1.
      09:59:35: Package deploy: Failed to pull "/system/lib/libc.so" to "C:/Users/o/Documents/build-TrackGate-Android_Qt_6_3_0_Clang_arm64_v8a-Debug/libc.so".
      Error while building/deploying project TrackGate (kit: Android Qt 6.3.0 Clang arm64-v8a)
      When executing step "Deploy to Android device"
      09:59:35: Elapsed time: 03:02."

      I also get " Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details
      Warning: This version only understands SDK XML versions up to 2 but an SDK XML file of version 3 was encountered. This can happen if you use versions of Android Studio and the command-line tools that were released at different times.
      Warning: unexpected element (uri:"", local:"base-extension"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level> "

      " Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
      "

      Please assist with deployment to device.
      Thanks in advance

      R Offline
      R Offline
      Rampe
      wrote on last edited by
      #2

      @Ulaspag said in Qt 6.3 unable to deploy to device (windows 10):

      adb.exe: device 'DVKS100I21060300956' not found

      For the first question adb.exe: device 'DVKS100I21060300956' not found

      Does adb found the device from command prompt? Run C:/Users/o/AppData/Local/Android/Sdk/platform-tools/adb.exe devices
      Above should return device identity (like below) (likely ID for the DVKS100I21060300956 is not exactly that, but something else)
      List of devices attached
      DVKS100I21060300956 device

      Does the target device have Developer mode enabled? Does the target device have Developer options - USB debugging enabled (you may enable also Stay awake if problem occurs when target dimm the display or even sleep)? If not enable those.

      Does the connecting bus (e.g. USB cable or WLAN) that it works between the host and the your target device? If not try another one e.g. replace the USB cable or try another WLAN network (SSID)

      U 1 Reply Last reply
      0
      • R Rampe

        @Ulaspag said in Qt 6.3 unable to deploy to device (windows 10):

        adb.exe: device 'DVKS100I21060300956' not found

        For the first question adb.exe: device 'DVKS100I21060300956' not found

        Does adb found the device from command prompt? Run C:/Users/o/AppData/Local/Android/Sdk/platform-tools/adb.exe devices
        Above should return device identity (like below) (likely ID for the DVKS100I21060300956 is not exactly that, but something else)
        List of devices attached
        DVKS100I21060300956 device

        Does the target device have Developer mode enabled? Does the target device have Developer options - USB debugging enabled (you may enable also Stay awake if problem occurs when target dimm the display or even sleep)? If not enable those.

        Does the connecting bus (e.g. USB cable or WLAN) that it works between the host and the your target device? If not try another one e.g. replace the USB cable or try another WLAN network (SSID)

        U Offline
        U Offline
        Ulaspag
        wrote on last edited by
        #3

        @Rampe said in Qt 6.3 unable to deploy to device (windows 10):

        C:/Users/o/AppData/Local/Android/Sdk/platform-tools/adb.exe devices

        When i run the above command i get
        "
        C:\Users\o\AppData\Local\Android\Sdk\platform-tools>start adb.exe

        C:\Users\o\AppData\Local\Android\Sdk\platform-tools>adb devices
        List of devices attached
        320195927566 device
        R58M75VB4TH device

        C:\Users\o\AppData\Local\Android\Sdk\platform-tools>adb.exe devices
        List of devices attached
        320195927566 device
        R58M75VB4TH device

        C:\Users\o\AppData\Local\Android\Sdk\platform-tools>"
        All other things are fine.

        There are incompatibilities I guess with command line tools and installed Sdk. Everything related to Android was installed by QT creator(no Android Studio installation)

        There is also this warnings :
        "Warning: This version only understands SDK XML versions up to 2 but an SDK XML file of version 3 was encountered. This can happen if you use versions of Android Studio and the command-line tools that were released at different times.
        "
        "Warning: unexpected element (uri:"", local:"base-extension"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level>
        "

        R 1 Reply Last reply
        0
        • U Ulaspag

          @Rampe said in Qt 6.3 unable to deploy to device (windows 10):

          C:/Users/o/AppData/Local/Android/Sdk/platform-tools/adb.exe devices

          When i run the above command i get
          "
          C:\Users\o\AppData\Local\Android\Sdk\platform-tools>start adb.exe

          C:\Users\o\AppData\Local\Android\Sdk\platform-tools>adb devices
          List of devices attached
          320195927566 device
          R58M75VB4TH device

          C:\Users\o\AppData\Local\Android\Sdk\platform-tools>adb.exe devices
          List of devices attached
          320195927566 device
          R58M75VB4TH device

          C:\Users\o\AppData\Local\Android\Sdk\platform-tools>"
          All other things are fine.

          There are incompatibilities I guess with command line tools and installed Sdk. Everything related to Android was installed by QT creator(no Android Studio installation)

          There is also this warnings :
          "Warning: This version only understands SDK XML versions up to 2 but an SDK XML file of version 3 was encountered. This can happen if you use versions of Android Studio and the command-line tools that were released at different times.
          "
          "Warning: unexpected element (uri:"", local:"base-extension"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level>
          "

          R Offline
          R Offline
          Rampe
          wrote on last edited by
          #4

          @Ulaspag Sorry I can't reproduce your problem. But I do not have Android Studio installed, just Qt Creator 7.0.2 and it's Android setup with JDK 16.0.2.7, NDK 22.1.17171670 and platform-tools with adb.exe version Android Debug Bridge version 1.0.41 Version 33.0.2-8557947

          Attached second target device and while it first shows like "with longer code"...
          ff68ab8a-e3fd-40bf-8f49-49061c4decbb-image.png
          ...later when USB debugging from the device is enabled the Qt Creator detects the device for it's model name the project for both arm ABI's armeabi-v7a arm64-v8a where possible be deployed successfully
          056a78ae-0d55-4c8e-b6c2-f619f839924e-image.png

          1 Reply Last reply
          0
          • T Offline
            T Offline
            track
            wrote on last edited by
            #5

            I finally got it to deploy to device by uninstalling everything related to Qt, Java and and Android Studio. I reinstalled Qt 6.3.1 and used Qt to install Java and Android Studio .I made sure that the Arm64 v8 system image for API 30 is available in Android Studio. This video link "https://www.youtube.com/watch?v=XrQ_j6VOnzo" helps with Qt 6 installation . This video link "https://www.youtube.com/watch?v=WafdjRhyDRc" helps with Android Studio installation

            1 Reply Last reply
            1

            • Login

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