我有 Windows 8、JDK 7 (7u9) 和所有适用于 Android 的 SDK。 当我尝试启动 Android 模拟器时,DDMS 控制台上显示以下消息:
[2012-11-17 12:34:32 - ddms] Can't bind to local 8601 for debugger
[2012-11-17 12:34:39 - ddms] Can't bind to local 8606 for debugger
[2012-11-17 12:34:40 - ddms] Can't bind to local 8613 for debugger
[2012-11-17 12:34:40 - ddms] Can't bind to local 8619 for debugger
[2012-11-17 12:34:40 - ddms] Can't bind to local 8632 for debugger
[2012-11-17 12:34:40 - ddms] Can't bind to local 8635 for debugger
[2012-11-17 12:34:42 - ddms] Can't bind to local 8606 for debugger
[2012-11-17 12:34:44 - ddms] Can't bind to local 8638 for debugger
[2012-11-17 12:34:48 - ddms] Can't bind to local 8641 for debugger
我的 AVD 将 Google API (10) 作为目标,而我的项目是一个测试谷歌地图的简单项目。它以 Google API [Android 2.3.3] 作为项目构建目标。
在 StackOverflow 中寻找解决方案时,我找到了这个答案:Should I worry about DDMS console log messages "Can't bind to local nnnn for debugger"?
我做到了,但我仍然有这个“问题”。 我该如何解决?
编辑
[已解决] 另一件重要的事情:我需要从谷歌获取 key 才能使用它的 map ,但是当我插入指纹识别器并尝试生成 key 时,谷歌没有给我。 我该如何解决其他问题?也许它与第一个有关?
这个问题是JDK 7引起的,正确获取MD5指纹机的命令是:
keytool -keystore -v C:\Users\USER_NAME.android\debug.keystore -list
最佳答案
经过多方研究,我发现“Can't bind to local...”消息的问题是由于JRE的版本(最新的7)。删除它并安装 JRE 版本 6.38 就足够了。
关于java - Android Emulator(调试器不能绑定(bind)本地8601),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13430263/