在运行项目的时候报如下错误:
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即可解决~