[已解决]Waiting for Debugger Application is waiting for the debugger to attach Force close 框一直显示

来源:互联网 发布:云南省扶贫大数据平台 编辑:程序博客网 时间:2024/05/16 08:29

Waiting for Debugger Application is waiting for the debugger to attach Force close 这个框一直显示

这个问题我寻找了好长好长时间,网上查了各种方法都试过了,例如重新启动手机,甚至是升级Android Studio, 设置开发模式里面允许的程序,重新允许 usb调试,

但是上面的方法都没有用,最后发现我的问题特别的特殊,发现了一个Android Studio 里面的一个报错:

Cant bind to local 8603 for debugger(moments age)



通过查找这个“Cant bind to local 8603 for debugger(moments age)”类似的问题,终于找到了问题的关键了,原来是我的电脑的host 文件的问题,我使用了host 的切换的工具,这个工具切换的时候把下面的内容给删除了

127.0.0.1localhost255.255.255.255broadcasthost::1             localhost 


解决办法:

我这里使用的是host的切换的工具,所以直接切换到我需要的含有下面的内容的host上面

简单的来说,就是添加,下面的

127.0.0.1localhost255.255.255.255broadcasthost::1             localhost 



参考:http://stackoverflow.com/questions/37391606/android-studio-cant-bind-to-local-8602-for-debugger


1 0
原创粉丝点击