Android Studio“等待调试器" [英] Android Studio "waiting for debugger"
问题描述
我创建了简单的Hello, world!"项目使用android studio.当我在设备或模拟器上运行它时 - 一切都很好.然后我尝试在调试模式下运行它 - 几分钟后它在屏幕上的等待调试器"对话框和
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`
事件日志中的消息.
我该如何解决这个问题?
How can I solve this problem?
Michael Yunusov 这个问题同时出现在不同的机器上.
Michael Yunusov this problem was on different machines the same time.
解决方案:我有两个 IDE 同时运行:Android studio 和蚀.关闭其中一个可以解决问题.
Solution: I had two IDEs running the same time: Android studio and Eclipse. Closing one of them fixed the issue.
推荐答案
尝试重置您的 ADB.
Try to reset your ADB.
要重置 ADB 服务器:打开运行-> Cmd-> adb kill-server
To reset the ADB server: Open Run-> Cmd-> adb kill-server
要重新启动它,您可以使用:打开运行-> Cmd-> adb devices
To start it again you can use: Open Run-> Cmd-> adb devices
这篇关于Android Studio“等待调试器"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!