简体   繁体   English

Android Studio调试器无法打开选定的VM调试端口(8700)

[英]Android studio Debugger Could not open Selected VM debug port (8700)

I'm having a hard time here... Sometime ago, my Android studio debugger stoped from work... I get this error message whenever I launch an application: 我在这里遇到困难...前一段时间,我的Android Studio调试器停止工作...每当启动应用程序时,我都会收到以下错误消息:

Could not open Selected VM debug port (8700). 无法打开选定的VM调试端口(8700)。 Make sure you do not have another instance of DDMS or of the eclipse plugin running. 确保没有其他DDMS实例或eclipse插件正在运行。 If it's being used by something else, choose a new port number in the preferences. 如果其他人正在使用它,请在首选项中选择一个新的端口号。

I know that there is a lot related to that problem here, but everyone seems to get this error when using Eclipse, and I'm using Android studio, as said before... 我知道这里有很多与此问题相关的问题,但是每个人在使用Eclipse时似乎都会收到此错误,而且我正在使用Android Studio,如前所述...

I got this problem when I start the ddms by enter monitor from the terminal. 当我从终端输入monitor启动ddms时,出现了这个问题。 And I try to start it by selecting Tools > Android > Android Device Monitor and it works. 然后,我尝试通过选择“工具”>“ Android”>“ Android Device Monitor”来启动它,并且它可以工作。

Please follow the below steps. 请按照以下步骤操作。

  1. Open terminal window in android studio run two commands: 在android studio中打开终端窗口运行两个命令:

    i)adb kill-server i)adb kill-server

    ii)adb start-server, then do following steps ii)adb启动服务器,然后执行以下步骤

  2. file->setting->Debugger 文件 - >设置 - >调试器

  3. In Debugger window check section Built in-server(last section) 在“调试器”窗口中,检查“内置服务器”部分(最后一节)

  4. change port number:63341 or 63343 更改端口号:63341或63343

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM