无法打开调试端口:java.net.socketexception“连接被拒绝"- 安卓工作室 [英] Unable to open debug port: java.net.socketexception "Connection refused" - Android Studio

查看:80
本文介绍了无法打开调试端口:java.net.socketexception“连接被拒绝"- 安卓工作室的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将调试器附加到进程时发生此错误.

This error occur while attaching debugger to process.

我已经用 Socket closed" 检查了类似问题的解决方案,但它没有解决这个问题.

I've checked solutions from similar issue with "Socket closed" and it does not fix this.

在这个带有调试器的 runnig 应用程序返回后:

After this runnig app with debugger attached returns:

Error running Android Debugger (port): Unable to open debugger port : java.net.SocketException "Connection reset" 

有什么想法吗?

Env:
Android Studio v1+
Linux x64

推荐答案

检查你的防火墙设置,打开这个端口关闭可能连接到设备的任何其他工具或窗口,即 chrome 检查窗口、另一个 eclipse 等.

Check your firewall settings, open this port Close any other tools or windows that may be connecting to the device, i.e. chrome inspect window, another eclipse, etc..

这篇关于无法打开调试端口:java.net.socketexception“连接被拒绝"- 安卓工作室的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆