Debugging with Android Studio stuck at “Waiting For Debugger” forever

前端 未结 29 2229
甜味超标
甜味超标 2020-12-04 08:36

UPDATE The supposed duplicate is a question on being stucking in \"Waiting For Debugger\" when executing Run, while this

相关标签:
29条回答
  • 2020-12-04 09:08

    Restarting Android Studio fix the issue for me.

    0 讨论(0)
  • 2020-12-04 09:09

    Just use this command to disable it. adb shell am clear-debug-app

    0 讨论(0)
  • 2020-12-04 09:11

    On some machines/projects the debugger do not attach automatically so you need to attach it manually (studio menu -> Run -> Attach debugger to Android process)

    0 讨论(0)
  • 2020-12-04 09:11

    Both of my dev machines have JDK 8 installed, the debugging function is restored once JDK 7.0.71 was installed and JAVA_HOME environmental variable was set to point to the new JDK.

    Guess there's some compatibility issue between Android Studio + ADB + JDK8 (Eclipse + ADB + JDK8 works fine).

    0 讨论(0)
  • 2020-12-04 09:11

    When the Device displays the message go to Run->Attach debbuger, then select a debbuger. it'll start the activity.

    0 讨论(0)
  • 2020-12-04 09:11

    Sometime it's due to the fact that in the build.gradle configuration you have to set the node:

      debug {
                debuggable true
            }
    

    Change it back to false when you have to prepare the signed apk.

    Regards

    0 讨论(0)
提交回复
热议问题