Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-70003

Unable to deploy an APK to device due to "adb: error: cannot stat ..."

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 5.11.2
    • 5.11.1
    • Build tools: Other
    • None
    • * QtC v4.7
      * Qt 5.9.5 ARM v7
      * NDK 16b
      * SDK Platform tools v26
      * SDK buls tools v26 && v27
      * Gradle 4.7 (seems)
    • Android

    Description

      I faced with an issue that QtC can not deploy some of APK files to a target device.

      It say:

      Installing Android package to device.
      
      Running command "C:/Android/android-sdk-r24.3.4/platform-tools/adb.exe -s 60478880240472 install -r E:/Work/FOO/tests/build-pnd/android-build//build/outputs/apk/android-build-debug.apk"
      
      adb: error: cannot stat 'E:/Work/FOO/tests/build-pnd/android-build//build/outputs/apk/android-build-debug.apk': No such file or directory
      
      Installing to device failed!
      
      23:59:19: The process "C:/Qt/5.9.6/android_armv7/bin/androiddeployqt.exe" exited with code 16.
      
      23:59:19: Pulling files necessary for debugging.
      
      23:59:19: Package deploy: Running command "C:/Android/android-sdk-r24.3.4/platform-tools/adb.exe -s 60478880240472 pull /system/bin/app_process E:/Work/FOO/tests/build-pnd/app_process".
      
      23:59:19: Package deploy: Running command "C:/Android/android-sdk-r24.3.4/platform-tools/adb.exe -s 60478880240472 pull /system/bin/app_process32 E:/Work/FOO/tests/build-pnd/app_process".
      
      23:59:19: Package deploy: Running command "C:/Android/android-sdk-r24.3.4/platform-tools/adb.exe -s 60478880240472 pull /system/bin/linker E:/Work/FOO/tests/build-pnd/linker".
      
      23:59:20: Package deploy: Running command "C:/Android/android-sdk-r24.3.4/platform-tools/adb.exe -s 60478880240472 pull /system/lib/libc.so E:/Work/FOO/tests/build-pnd/libc.so".

      however that APK file is exists, and I can install this file to the target device using the ADB utility directly from the command line.

      PS: The Qt notification example deploys with QtC successfully, but my application does not.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              vikas Vikas Pachdha
              kuzulis Denis Shienkov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes