简体   繁体   English

无法打开调试器端口

[英]Unable to open debugger port

My Android Emulator freezes in Waiting For Debugger mode and my Application fails to run(i have HAXM installed). 我的Android Emulator在“ Waiting For Debugger模式下冻结,并且我的应用程序无法运行(我安装了HAXM)。 In my debug console write this message 在我的调试控制台中写下此消息

W/ActivityThread: Application turbotec.mpas is waiting for the debugger on port 8100...
I/System.out: Sending WAIT chunk

and here is the whole picture of virtual device and error occurred: 这是虚拟设备的整体图,并且发生了错误:

在此处输入图片说明

Tools > Android > Enable ADB Integration 工具> Android>启用ADB集成

Disable then enable. 禁用然后启用。 All's good 很好

Clearing the Intellij IDEA (Android Studio) .idea directory which contains configuration information worked for me: 清除Intellij IDEA(Android Studio).idea目录,其中包含对我有用的配置信息:

Exit Android Studio Navigate to the project you are trying to debug Backup any files inside .idea that you modified (if your project checks any of these into VCS) Delete .idea directory Open the project in Android Studio 退出Android Studio导航到您要调试的项目。将修改后的.idea中的所有文件备份(如果您的项目将其中的任何文件检查到VCS中)删除.idea目录在Android Studio中打开项目

This worked for me two months Back 这为我工作了两个月

Also Check any other process running in your computer on same port and kill it 还要检查计算机上同一端口上运行的任何其他进程并将其杀死

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

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