【发布时间】:2013-12-03 05:30:40
【问题描述】:
我正在设备中运行我的 android 应用程序,但它没有连接到设备。它给出了以下错误 java.net.ConnectException: Connection refused: connect。
编辑:从评论粘贴异常:
[2013-12-03 11:02:57 - DeviceMonitor] Failed to start monitoring YT91073S0L
[2013-12-03 11:03:52 - Device] Error during Sync: Connection refused: connect
[2013-12-03 11:04:19 - Device] Error during Sync: Connection refused: connect
[2013-12-03 11:07:37 - Device] Error during Sync: Connection refused: connect
[2013-12-03 11:10:43 - DeviceMonitor] Failed to start monitoring YT91073S0L
[2013-12-03 11:11:20 - DeviceMonitor] Failed to start monitoring YT91073S0L
[2013-12-03 11:14:59 - DeviceMonitor] Failed to start monitoring YT91073S0L
【问题讨论】:
-
您能否发布完整的异常及其周围的代码?
-
正在尝试像这样访问localhost:8080?
-
如果你忘记添加到你的清单中添加这个
-
无法在设备“YT91073S0L”上安装 xxx.apk:连接被拒绝:连接 java.net.ConnectException:连接被拒绝:连接启动被取消!
-
请添加一些代码快照
标签: java android connection