Reputation: 3330
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.
Upvotes: 3
Views: 9638
Reputation: 1
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
Upvotes: 0
Reputation: 354
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.
Upvotes: 1
Reputation: 107
When i had this problem it was as a result of an invalid android manifest
Upvotes: 0
Reputation: 3926
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
Upvotes: 3