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

后端 未结 16 1186
刺人心
刺人心 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:14

    1) Clear android studio cache memory from file->Invalid cache/restart.


    2) After restarting the android studio please restart android emulator.

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

    I uninstalled the app with which this issue was occurring.

    Then I installed the app with debug mode.

    It solved the problem. Now it is working fine.

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

    After 8 hours on this problem I feel obliged to share the cause. My /etc/hosts was bad.

    Make sure you can ping localhost and that it is defined to 127.0.0.1. AS expects to connect to localhost:8600.

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

    You may want to check your debugging setting in Dev Setting on your AVD. Take a look at the following picture:

    developer settings example

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

    You can fix this issue without re-booting your device. Just go to "Android device"->"Settings"->"Developer Options"->"Select app to be debugged". It will likely be pointing to your application. Just select the option and then select "None".

    Note: As mentioned, even if "None" is already selected, re-selecting "None" appears to correct the problem.

    Just to be clear: This is on the device, not in Android Studio (cf. very helpful comment from Regis_AG).

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

    I have the same problem. In my case I have two development environments open in the same time: Android Studio and Eclipse. After I close Eclipse and run the debug process again works well. Hope this help!

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