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

Debugging not possible on Android

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 10.0.0
    • Android Support, Debugger
    • None
    • Windows 11, QtCreator 10.0
    • Android, Windows

    Description

      Debugging on Android has not been possible for some time now. The error occurred suddenly.

      When trying to build and debug a program for Android, the following error message is received:

       

      Could not load shared library symbols for 328 libraries, e.g. /system/bin/linker.
      Use the "info sharedlibrary" command to see the complete listing.
      Do you need "set solib-search-path" or "set sysroot"?
      Unable to find dynamic linker breakpoint function.
      GDB will be unable to debug shared library initializers
      and track explicitly loaded dynamic code.
      I System.out: waiting for debugger to settle...

       

      I have completely reinstalled Qt and verified the behavior on a newly set up PC. Procedure:

      • Install Qt (in my case, Qt 5.15.0 incl. Android)
      • Install QtCreator 10.0
      • Install JDK 11
      • Install Android Toolchain within QtCreator.

      After that, all programs can be built for Android, but none can be debugged.

      This bug seems to occur repeatedly for others as well:

      -> https://forum.qt.io/topic/131886/hit-c-breakpoints-on-android

      -> https://forum.qt.io/topic/121687/breakpoints-not-hit-on-android

       

      Of course, I have tried to set 

      set solib-search-path

      Neither

      set solib-search-path C:\Users\PascalSteinmueller\AppData\Local\Android\ndk\21.3.6528147\sysroot\usr\lib

      nor

      set solib-search-path C:\Qt\5.15.0\android\lib

      have been successful.

       

      I have now spent almost 2 weeks trying to fix the debugger for Android, unfortunately without success. The problem has existed for me since at least QtCreator 9. I will test older QtCreator versions and update the bug.

      Attachments

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

        Activity

          People

            portale Alessandro Portale
            p.steinmueller Pascal Steinmüller
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes