在运行项目的时候报如下错误:
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即可解决~
解决方案参考上篇文章 : 我的问题是用任务管理器吧ade.exe 关掉了,其他相似情况请上一篇文章