Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio 2.0 Waiting for debugger

After updating to Android Studio 2.0 my debugger stopped working. When I try to run my app as debug I get stuck waiting for debugger. I can still run app normally.

So there are tons of post on this issue, I've tried everything I could find:

  • Restart ADB
  • Restart Android Studio
  • Restart phone
  • Restart Computer
  • Switch USB port
  • Update everything
  • Switch develop on/off
  • Tried with emulator (will also be stuck)
  • Uninstal Vyzor beta (Chrome plugin that use ADB)
  • Remove project and load into Android Studio again
  • Updated JDK 1.7.0_71 to 1.8.0_74
like image 635
Warpzit Avatar asked Apr 08 '16 20:04

Warpzit


People also ask

Is waiting for the debugger to attach Android studio?

If it is stuck waiting for a debugger means it is not attached to the app. You have to manually attach by clicking on Attach Debugger to Android process. It is on the right side of the run icon.

What is waiting for debugger?

This setting allows the execution of an app to be paused until a debugger is attached to it, upon the launch of the app. The app to debug must first be selected using the Debug app option.


1 Answers

Okay so my application was using android:process=":background" under the application tag. So now with Android Studio 2.0 I had to click "Attach debugger to Android Process" and select the :background process.

This has not been an issue in the past.

If a single activity uses another process then the debugger will also hang at that activity until the debugger is attached to that process (attaching is done manually).

like image 82
Warpzit Avatar answered Oct 20 '22 00:10

Warpzit