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. Android debugger does not work
Forum Updated to NodeBB v4.3 + New Features

Android debugger does not work

Scheduled Pinned Locked Moved Mobile and Embedded
18 Posts 8 Posters 7.6k Views 2 Watching
  • 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.
  • G Offline
    G Offline
    GGenny
    wrote on last edited by
    #6

    I lost several days to understand the problem that is simply the last SDK ( no NDK ) , try using an older SDK without update, a new Qt5.5.0 version and recompile your project.

    S J 2 Replies Last reply
    0
    • G GGenny

      I lost several days to understand the problem that is simply the last SDK ( no NDK ) , try using an older SDK without update, a new Qt5.5.0 version and recompile your project.

      S Offline
      S Offline
      sharethl
      wrote on last edited by sharethl
      #7

      @GGenny what version you used?

      Thanks

      1 Reply Last reply
      0
      • G GGenny

        I lost several days to understand the problem that is simply the last SDK ( no NDK ) , try using an older SDK without update, a new Qt5.5.0 version and recompile your project.

        J Offline
        J Offline
        john3000
        wrote on last edited by
        #8

        @GGenny What version of the SDK are you using? I did something similar and went back to build tools 23.0 (current is 24.0) and turned off updates. but I am still getting no love from the debugger.

        S 1 Reply Last reply
        0
        • J john3000

          @GGenny What version of the SDK are you using? I did something similar and went back to build tools 23.0 (current is 24.0) and turned off updates. but I am still getting no love from the debugger.

          S Offline
          S Offline
          sharethl
          wrote on last edited by
          #9

          @john3000 I have tried out, with Android SDK Platform-tools rev 22, I can debug.

          J 2 Replies Last reply
          0
          • S sharethl

            @john3000 I have tried out, with Android SDK Platform-tools rev 22, I can debug.

            J Offline
            J Offline
            john3000
            wrote on last edited by john3000
            #10

            @sharethl Did you have to go back to "Platform SDK Tools" rev 22.x.x or the "Andoird SDK Platform Tools" rev 22 in Android SDK Manager? I am currently trying rev 22.6.2 of the SDK (the name of the tar.gz file) . I'll let you all know it goes, but I would rather be using the newest version that work, as this version doesn't support lollipop levels of API, android 4.4.2 is the highest level. Screen Grab of android sdk manager

            S 1 Reply Last reply
            0
            • S sharethl

              @john3000 I have tried out, with Android SDK Platform-tools rev 22, I can debug.

              J Offline
              J Offline
              john3000
              wrote on last edited by john3000
              #11

              @sharethl Thanks for sharing. I will definitely lodge a bug against this over for the newest Qt Creator. I wonder if I just missed somewhere in the notes that it wouldn't work with anything newer than 22.6 build of the SDK. It will certainly build and run just fine, it just won't debug. Thanks for your help and that of @sharethl . Now I just have to figure out why I can step through the init code but as soon as I enter the window app the gdbserver shuts down because of illegal memory access. Maybe I have to build the Qt .so files from scratch with debug symbols. Not sure though.

              J 1 Reply Last reply
              0
              • J john3000

                @sharethl Thanks for sharing. I will definitely lodge a bug against this over for the newest Qt Creator. I wonder if I just missed somewhere in the notes that it wouldn't work with anything newer than 22.6 build of the SDK. It will certainly build and run just fine, it just won't debug. Thanks for your help and that of @sharethl . Now I just have to figure out why I can step through the init code but as soon as I enter the window app the gdbserver shuts down because of illegal memory access. Maybe I have to build the Qt .so files from scratch with debug symbols. Not sure though.

                J Offline
                J Offline
                john3000
                wrote on last edited by
                #12

                @john3000 I found that I had to also use the 32 bit version of the NDK to work as well.

                1 Reply Last reply
                0
                • J john3000

                  @sharethl Did you have to go back to "Platform SDK Tools" rev 22.x.x or the "Andoird SDK Platform Tools" rev 22 in Android SDK Manager? I am currently trying rev 22.6.2 of the SDK (the name of the tar.gz file) . I'll let you all know it goes, but I would rather be using the newest version that work, as this version doesn't support lollipop levels of API, android 4.4.2 is the highest level. Screen Grab of android sdk manager

                  S Offline
                  S Offline
                  sharethl
                  wrote on last edited by
                  #13

                  @john3000 Here is the list I have. Hate cannot upload image on here.

                  • Android SDK Tool Rev24.3.3
                  • SDK Platform-tools Rev 22
                  • SDK Build-tools Rev 22.0.1
                  • SDK Build tools Rev 20
                  • Adnroid API 22 and 19, SDK Platform
                  • Extras: Android support library Rev 22.2.1

                  I have two ubuntu PCs, 2nd PC with SDK Platform tools 23 cannot debug, once I copied the SDK mentioned above to 2nd PC, debug working.
                  I have Linux-Mint , 64 bits, android-ndk-r10e.

                  J 1 Reply Last reply
                  0
                  • K Offline
                    K Offline
                    kolegs
                    wrote on last edited by
                    #14

                    here is the link with instruction how to downgrade platform-tools, I did downgrade to rev 22 and debugger started to work.

                    1 Reply Last reply
                    0
                    • A Offline
                      A Offline
                      aidoru
                      wrote on last edited by aidoru
                      #15

                      Hello,
                      after your downgrade did you have any problems with gdb?
                      Because if i try to step into, after a little time I receive the message:
                      "The gdb process has not responded to a command within 40 second(s).".
                      As it is really slow....

                      Do you think that I have to downgrade/upgrade it?
                      I'm on Windows 10 (...tried on Ubuntu, it works perfectly)

                      Thank you.

                      S 1 Reply Last reply
                      0
                      • S sharethl

                        @john3000 Here is the list I have. Hate cannot upload image on here.

                        • Android SDK Tool Rev24.3.3
                        • SDK Platform-tools Rev 22
                        • SDK Build-tools Rev 22.0.1
                        • SDK Build tools Rev 20
                        • Adnroid API 22 and 19, SDK Platform
                        • Extras: Android support library Rev 22.2.1

                        I have two ubuntu PCs, 2nd PC with SDK Platform tools 23 cannot debug, once I copied the SDK mentioned above to 2nd PC, debug working.
                        I have Linux-Mint , 64 bits, android-ndk-r10e.

                        J Offline
                        J Offline
                        john3000
                        wrote on last edited by
                        #16

                        @sharethl Thanks. I also got stuff working I just haven't checked back in a while. I think your list works just fine. I am using ubuntu 14.04.

                        1 Reply Last reply
                        0
                        • K Offline
                          K Offline
                          kuzulis
                          Qt Champions 2020
                          wrote on last edited by
                          #17

                          Please watch for https://bugreports.qt.io/browse/QTCREATORBUG-15032 and related bugs..

                          1 Reply Last reply
                          0
                          • A aidoru

                            Hello,
                            after your downgrade did you have any problems with gdb?
                            Because if i try to step into, after a little time I receive the message:
                            "The gdb process has not responded to a command within 40 second(s).".
                            As it is really slow....

                            Do you think that I have to downgrade/upgrade it?
                            I'm on Windows 10 (...tried on Ubuntu, it works perfectly)

                            Thank you.

                            S Offline
                            S Offline
                            sharethl
                            wrote on last edited by
                            #18

                            @aidoru Windown10 and Ubuntu both working for me.

                            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