在运行项目的时候报如下错误:
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.”

下面来查看哪个应用占用了8700端口。
1、在命令行中输入如下netstat -a -o 8700指令:

2、接着在命令行输入如下指令tasklist /fi "pid eq 7608" :

发现Android studio也占用了这个端口,把studio关掉重新打开ddms即可解决~
本文介绍了解决在运行项目时遇到的DDMS端口冲突问题。通过使用netstat和tasklist命令找到占用8700端口的应用,并关闭Android Studio以解决DDMS无法启动的问题。
1万+

被折叠的 条评论
为什么被折叠?



