Could not open Selected VM debug port (8700). Make sure you do not have another instance of DDMS

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.    


更新AndroidStudio3.1.2之后,突然死活连不上手机。

adb kill-server

adb start-server

也不起作用,包括重启 AndroidStudio、重启系统都不管用。


解决方式:

1、到adk目录下,如我的目录是:

     /Users/didi/sdks/android-sdk-macosx/tools/

2、执行ddms命令 

3、启动ddms之后,到设置(Preferences-Debugger)中,将8700端口改成其他端口,如8701。然后再运行 

    adb-kill-server

     adb start-server

    AndroidStudio中就可以连上手机了。

Could not open Selected VM debug port (8700). Make sure you do not have another instance of DDMS_第1张图片


你可能感兴趣的:(Android开发)