Why Android Studio says “Waiting For Debugger” if am NOT debugging?

后端 未结 16 1189
刺人心
刺人心 2020-12-07 11:56

I am working with Android Studio. Since last night, when I Run my project on my device, appear the message \"Waiting For Debugger\". It is a very strange behavior because I

相关标签:
16条回答
  • 2020-12-07 12:34

    Please try this command to disable it.

    adb shell am clear-debug-app
    
    0 讨论(0)
  • 2020-12-07 12:34

    Click on AVD Manager. From device actions option select "Cold Boot Now" Doing a cold boot in the emulator worked for me.

    0 讨论(0)
  • 2020-12-07 12:36

    Clic and hold the Emulator's power button for 5 seconds, then clic restart.

    Try again, the error should be gone

    0 讨论(0)
  • 2020-12-07 12:40

    I had this problem; In Android Studio I accidentally hit Run > 'Debug App' instead of Run> Run 'App' . I solved the problem. In my case I had to get the application to launch successfully in DEBUG mode. Here were my steps-

    1) The android device needs to be able to connect to the development PC on port 8600. This connection was being disallowed by my firewall configuration. I turned off the firewall. Once confirmed I created a firewall rule to allow connectivity between the devices on port 8600.

    2) To validate that the port is available, you can go into Android Studio, Run > Attach debugger to Android Process. This will cause the android device application launched in DEBUG mode to connect to your Android Studio development PC.

    3) Once the app has launched once, you can go back and Run > Run 'App' and you will no longer get the annoying screen 'WAITING for DEBUGGER'.

    4) And you can also Run> Debug 'App'. The device will say "Waiting for Debugger" for a moment and then Android Studio will start up a Debugger Console and help you debug your android device app remotely!

    Good luck

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