Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-14201

Debugging Android applications does not work on Windows

    XMLWordPrintable

    Details

    • Commits:
      f916c72640d71fecbf74e47d10f6941092ca6a48 81c798930170a88076abd23c5001c91596fab7ab

      Description

      Should be reproducable with any project but only affects some machines. When starting Android application in debugger, Qt Creator needs to pull app_process from the device (see build_output.txt). For some reason it fails to do that and this can be seen in the output:

      10:47:31: Pulling files necessary for debugging.
      10:47:31: Package deploy: Running command "E:/joni/android-sdk-windows/platform-tools/adb.exe -s emulator-5554 pull /system/bin/app_process E:/joni/build-android-qml-Android_for_armeabi_v7a_GCC_4_9_Qt_5_4_1-Debug/app_process".
      10:47:31: Packaging Error: Command "E:/joni/android-sdk-windows/platform-tools/adb.exe -s emulator-5554 pull /system/bin/app_process E:/joni/build-android-qml-Android_for_armeabi_v7a_GCC_4_9_Qt_5_4_1-Debug/app_process" failed.Exit code: 1
      

      Running this command in command prompt also fails. I did notice it is possible to pull some other files from /system/bin/, but not all of them. How ever this works as expected on Linux even though the image (probably?) is the same. This is probably a bug in Android SDK.

      So far this has been observed only on Windows 8.1. I could not reproduce this on Windows 7 or Ubuntu. I can reproduce this on Windows 8.1 at least with API 21 and API 22 armv7a images which can be installed from Android SDK Manager.

      As debugger then fails to load app_process (is it even needed really?), it is not possible to set breakpoints.

        Attachments

        1. androidstep.patch
          2 kB
        2. androidstep.patch
          2 kB
        3. build_output.txt
          82 kB
        4. build_output.txt
          82 kB
        5. debugger_log.txt
          78 kB
        6. debugger_log.txt
          78 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            portale Alessandro Portale
            Reporter:
            poikelin Joni Poikelin
            Votes:
            1 Vote for this issue
            Watchers:
            11 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes