【问题标题】:Flutter Firebase Invalid Argument ExceptionFlutter Firebase 无效参数异常
【发布时间】:2022-01-06 17:48:35
【问题描述】:

我在 Flutter 应用中使用firebase_database9.0.4,并且在物理设备上随机运行时,我们会遇到以下错误。

MissingPluginException(No implementation found for method cancel on channel userProfiles/***-[DEFAULT]-null-DatabaseEventType.value-[]#1)
-[FIRDatabaseReference encodeSuccessEnvelope:]: unrecognized selector sent to instance 0x16d1ec80
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[FIRDatabaseReference encodeSuccessEnvelope:]: unrecognized selector sent to instance 0x16d1ec80'
*** First throw call stack:
(0x1ba83b3d 0x1ad0b067 0x1ba88fd1 0x1ba870c3 0x1b9afdc8 0x26665dd 0x22a1663 0x257bead 0x24da5ff 0x24dd3f7 0x1ba40637 0x1ba40339 0x1ba3fd37 0x1ba3ddd5 0x1b9911af 0x1b990fd1 0x1d13bb41 0x20d13a53 0xb11f7 0x1b17e4eb)
libc++abi.dylib: terminating with uncaught exception of type NSException

在模拟器或 Android 设备上运行时似乎不会发生这种情况。

【问题讨论】:

    标签: firebase flutter firebase-realtime-database


    【解决方案1】:

    我已降级到 8.2.0 版,它似乎已经解决了这个问题。这似乎是 v9 的问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-08-24
      • 1970-01-01
      • 2011-07-17
      • 2021-04-24
      • 2012-02-20
      • 1970-01-01
      • 1970-01-01
      • 2020-09-03
      相关资源
      最近更新 更多