3

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.

Johnny Doe
  • 3,280
  • 4
  • 29
  • 45
  • ever rebooted your machine? – OschtärEi May 16 '13 at 11:51
  • 4
    Problem was in conflict between ide's (Eclipse and AS). I had to close one of them) – Johnny Doe May 16 '13 at 14:25
  • Possible duplicate of [Debugging with Android Studio stuck at "Waiting For Debugger" forever](http://stackoverflow.com/questions/27436050/debugging-with-android-studio-stuck-at-waiting-for-debugger-forever) – rene Mar 26 '17 at 13:43

4 Answers4

3

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

micnoy
  • 3,926
  • 4
  • 24
  • 27
1

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.

RAHUL JOSHI
  • 344
  • 1
  • 5
  • 2
    If you can post your same answer to multiple questions, the questions are probably duplicate. Flag them as such instead of copying your answer around the site. – rene Mar 26 '17 at 13:44
  • 1
    I don't even have a Tools/Android menu in my Android Studio and Help/Find Action did not find anything similar to Android Device Monitor. – hippietrail Sep 14 '19 at 19:13
0

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

spintron
  • 107
  • 10
0

Go to Setting > Developer Options > open Revoke USB debugging authorizations >choose OK

If you cannot find Developer Options: go to [Settings] > [About Phone], and tap [Version] for 7 times