android studio启动debugger时报java.net.NoRouteToHostException "No route to host"

来源:互联网 发布:河南省网络培训学院 编辑:程序博客网 时间:2024/06/04 21:16

问题的完整描述:

Error running Android Debugger (8601):

Unable to open debugger port (localhost:8601): java.net.NoRouteToHostException "No route to host"     

看最后一句说的是没有路由到指定的host上,所以我们可以到hosts文件看看里面的内容


发现问题了,hosts里面配置了两个localhost。


删掉第二个localhost,然后执行adb kill-server在到Androidstudio里面尝试一下debugger就可以用了

0 1
原创粉丝点击