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. Unable to connect with remote debugger
Forum Updated to NodeBB v4.3 + New Features

Unable to connect with remote debugger

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
12 Posts 3 Posters 3.0k Views 1 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by SGaist
    #3

    Hi,

    You should add which version of Qt you are using and which version of Android you are running.

    You should also try a less recent version of the NDK. Android folks tends to break stuff for third parties when releasing new NDKs.

    See the Android Getting Started guide in Qt's documentation.

    Interested in AI ? www.idiap.ch
    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

    1 Reply Last reply
    0
    • F Offline
      F Offline
      Francky033
      wrote on last edited by
      #4

      I'm using Qt 5.11.1 and I'm using hardwares running with Android 5.0 and 8.0

      Thanks for the advice: I'll try with an older version of the NDK.

      1 Reply Last reply
      0
      • F Offline
        F Offline
        Francky033
        wrote on last edited by Francky033
        #5

        I followed the tips on the "Android Getting Started guide" page and I use now the NDK version 10e but I still can't launch the application on my device in debug mode.

        I still get the error message: "Remote communication error. Target disconnected: no error."
        and the same log

        I/ActivityManager( 1809): Start proc net.essai for activity net.essai/org.qtproject.qt5.android.bindings.QtActivity: pid=15027 uid=10004 gids={50004, 9997, 3003, 1028, 1015} abi=armeabi-v7a
        W/ActivityThread(15027): Application net.essai is waiting for the debugger on port 8100...
        I/System.out(15027): Sending WAIT chunk
        I/art (15027): Debugger is active
        I/System.out(15027): Debugger has connected
        I/System.out(15027): waiting for debugger to settle...
        I/System.out(15027): waiting for debugger to settle...
        I/System.out(15027): waiting for debugger to settle...
        I/System.out(15027): waiting for debugger to settle...
        I/System.out(15027): waiting for debugger to settle...
        I/System.out(15027): waiting for debugger to settle...
        I/System.out(15027): waiting for debugger to settle...
        I/System.out(15027): debugger has settled (1426)
        

        Did I forget something?

        Thanks !

        1 Reply Last reply
        0
        • F Offline
          F Offline
          Francky033
          wrote on last edited by
          #6

          I also tried with qtcreator 4.5.2 but without more success...

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #7

            Can you debug using Android Studio ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • F Offline
              F Offline
              Francky033
              wrote on last edited by
              #8

              no. I'm using qtcreator. Is it possible to load a project at (pro file) in android studio?

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #9

                No it's not, Android Studio is dedicated to Android Java development. The proposition is to check whether their IDE can properly debug to ensure that you have everything working correctly on their side.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • F Offline
                  F Offline
                  Francky033
                  wrote on last edited by
                  #10

                  If... After a test, I can debug from android studio but I miss the debug symbols...

                  1 Reply Last reply
                  0
                  • F Offline
                    F Offline
                    Francky033
                    wrote on last edited by
                    #11

                    In the QtCreator settings, how to insert debugging symbols in the apk file?

                    I use the Qmake parameters:

                    qmake essai.pro -spec android-g++ CONFIG+=debug CONFIG+=qml_debug && /root/Android/Sdk/ndk-bundle/prebuilt/linux-x86_64/bin/make qmake_all
                    

                    Thanks !

                    1 Reply Last reply
                    0
                    • R Offline
                      R Offline
                      rohanaceres
                      wrote on last edited by
                      #12

                      Any update in this thread? I'm having the same problem

                      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