Android Studio “waiting for debugger”

2020-07-23 08:57发布

问题:

I've created simple "Hello, world!" project using android studio. When I run it on the device or emulator - everything is fine. Then I make attempt to run it in the debug mode - and it fails after a few minutes "waiting for debugger" dialog on the screen and

`Error running test-test: Unable to open debugger port : java.io.IOException`

message in event log.

How can I solve this problem?

Michael Yunusov this problem was on different machines the same time.

Solution: I had two IDEs running the same time: Android studio and Eclipse. Closing one of them fixed the issue.

回答1:

Try to reset your ADB.

To reset the ADB server: Open Run-> Cmd-> adb kill-server

To start it again you can use: Open Run-> Cmd-> adb devices



回答2:

How it worked for me.

1. Start Android Device Monitor from Tools -> Android -> Android Device Monitor

2. Click on Stop for the process you are facing the issue from list of devices.



回答3:

When i had this problem it was as a result of an invalid android manifest