【问题标题】:How to resolve java.net.ConnectException: Connection refused: connect [closed]如何解决 java.net.ConnectException:连接被拒绝:连接 [关闭]
【发布时间】: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


【解决方案1】:

您没有 INTERNET 权限

【讨论】:

  • 我也给了上网权限。
猜你喜欢
  • 2017-08-10
  • 1970-01-01
  • 2023-03-21
  • 2015-05-18
  • 2018-06-10
  • 2014-05-17
  • 2013-11-05
  • 2015-09-09
相关资源
最近更新 更多