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

Viewed 93147

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 am not debugging application.

I've tried to uninstall application from my device and press Run on Android Studio. The message appears again.

I've tried to restart Android Studio. The message appears again.

The only way to properly install application on my phone is to press "Debug". The message appears but its automatically closed. Then application works fine.

I've tried with

<application android:debuggable="false" />

... and still the message appears.

LogCat says:

E/InputDispatcher﹕ channel ~ Channel is unrecoverably broken and will be disposed!
E/Launcher﹕ Error finding setting, default accessibility to not found: accessibility_enabled

Regards on first error line, someone says that the problems can starts after renaming of some resource. But its not my case.

Regards on second error line, ... I don't know. I really don't know what happens to my IDE.

18 Answers

Please try this command to disable it.

adb shell am clear-debug-app

Without restarting the device, I was able to fix this issue by going to "Developer Options" and then first "disabling" and then "enabling"-

  1. USB Debugging
  2. Wireless ADB Debugging (Since I debug over the Wifi)

enter image description here

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.

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

developer settings example

developer settings example

I fixed it by making duplicate Virtual device after wiping existing Virtual device.

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

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

Try again, the error should be gone

Save everything using ctrl+s or "File" -> "Save all". Go to your project directory and delete the .gradle folder then refresh window using F5. After this step, open project in Android Studio and run the application using Shift+F10 or Run -> "Run app". Then it should run in normal mode.

In my case the debug was stuck and didn't advance. So I remove the ".lldb" folder in the path "C:\Users{user}.lldb" and now is working.

Related