现在的位置: 首页 > 综合 > 正文

【VM debug】win7 eclipse: Could not open Selected VM debug port (8700)

2017年09月19日 ⁄ 综合 ⁄ 共 1509字 ⁄ 字号 评论关闭

After having checked out the BB (which I'd like to revisit with OS6) as well as some iPhone development (ergLog) I'm turning my attention to Android. I'll
document some of the troubles and hopefully solutions I've found along the way.

 

 Problem #1

After successfully installing Eclipse and AVD plugin I received the following error when restarting Eclipse:

"Could not open Selected VM debug port (8700). Make sure you do not have another instance of DDMS or of the eclipse plugin running. If it's being used by something else, choose a new port number in the preferences"

Every response to this issue was something along the lines of "well, see what's using that port and kill it/change the port". So let's check that just to make sure the port isn't in use. (NOTE: I'm using Windows)

 From the cmd console:

>telnet localhost 8700 

Can't connect? Me either, so port 8700 isn't in use. Let's just be sure:

>netstat -an

Can't see port 8700 in use? Me either. So it seems as though the error description is a bit misleading. Next have a peek at your hosts file (C:\Windows\System32\drivers\etc\hosts). Did you do the same thing as me? Several months
ago I pointed localhost to another one of my machines while testing something out... and completely forgot about it!

翻译:
首先确认你的  ping  localhost 确认是你的本机。
其次检查8700 端口,是否被占用。telnet localhost 8700

再次netstat -an 查看是否被占用。

首先WIN建+R 输入cmd 进入命令行
      输入ping localhost

本人配置过localhost 是之前在公司的局域网ip 192.168.1.199

实际本人要的ip是在家的 192.168.0.24

          本人hosts文件的部分内容如下

                  127.0.0.1       localhost
                  #    ::1             localhost
                  192.168.1.199    localhost
                 192.168.0.24    localhost

默认识别的是192.168.1.199,所以下面那个就没用了,把199那个注释掉就好了

然后就可以看到eclipse ddms debug的爬虫图标没有红色标记了

抱歉!评论已关闭.