【发布时间】: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