wun*_*tee 9 eclipse debugging android virtual-machine ddms
可能重复:
无法打开选定的VM调试端口(8700)
打开时我在控制台上收到此错误Eclipse:
"无法打开选定的VM调试端口(8700).确保没有>另一个DDMS或eclipse插件实例正在运行.如果它被其他东西使用,请在首选项中选择一个新的端口号."
非常肯定DDMS是Andoid调试器,我也很确定它没有打开.有谁知道如何解决它?
小智 25
the window Host file that is messed up:
the file is at this place :
C:\WINDOWS\system32\drivers\etc
And should contain this line : 127.0.0.1 localhost
Run Code Online (Sandbox Code Playgroud)
如果它不起作用,那么也尝试以下内容:在Eclipse中进行以下更改.
在窗口 - >首选项 - > Android - > DDMS下:
* Set Base local debugger port to "8601"
* Check the box that says "Use ADBHOST" and the value should be "127.0.0.1"
Run Code Online (Sandbox Code Playgroud)
它是一个 Eclipse 透视图,所以您不需要启动它,只需单击右上角的 >> 按钮,您可以看到其他透视图,选择 DDMS,如果您想切换回来,单击 java 透视图,DDMS 透视图将打开。如果您看不到 DDMS 选项,只需转到 Windows->openPerspective->others,然后从对话框中选择 DDMS。
要激活 DDMS,您需要在调试模式下运行应用程序,然后单击 ddms,应用程序启动后您将看到所有选项。
希望这有帮助