【问题标题】:Dart Socket ERROR: ../../third_party/dart/runtime/bin/socket_android.cc:147: `reusePort` not supported for AndroidDart 套接字错误:../../third_party/dart/runtime/bin/socket_android.cc:147:Android 不支持`reusePort`
【发布时间】:2022-10-23 17:46:58
【问题描述】:

我是颤振开发的新手。我正在为 android 和 iOS 构建一个远程应用程序,让用户可以通过红外线控制他们的传统电视,并通过 WIFI 控制智能电视。此异常仅针对 android 出现。在 iOS 应用程序上工作正常。我使用以下包来发现我的应用程序中的设备。

upnp2: ^0.3.2

这是我的项目中使用的所有依赖项。

  cupertino_icons: ^1.0.2
  rxdart: ^0.27.3
  sqflite: ^2.0.2
  shared_preferences: ^2.0.12
  ir_sensor_plugin: ^0.2.0
  introduction_screen: ^2.1.0
  network_info_plus: ^2.1.2
  ping_discover_network_forked: ^0.0.1
  web_socket_channel: ^2.1.0
  http: ^0.13.4
  upnp2: ^3.0.6
  multicast_dns: ^0.3.2

跟踪中没有出现其他异常。我不知道为什么它只发生在 android 上,而它在 iOS 上运行良好。请帮我!

【问题讨论】:

    标签: android flutter dart sockets socket.io


    【解决方案1】:

    upnp2 (3.0.10) 的新版本应该已经修复了这个问题,抱歉回复晚了。请再试一次,让我知道结果。

    【讨论】:

      猜你喜欢
      • 2020-01-08
      • 2020-02-16
      • 1970-01-01
      • 1970-01-01
      • 2022-11-05
      • 1970-01-01
      • 2022-08-16
      • 1970-01-01
      • 2012-12-03
      相关资源
      最近更新 更多