在安卓系统上安装基于WebRTC的应用程序时出现以下错误,但在浏览器上运行良好。
获取以下错误:
下载/flutter/.pub cache/hosts/pub.dartlang.org/flutter_webrtc-0.8.4/lib/src/native/rtc_data_channel_impl.dart:16:7:错误:非抽象类"RTCDataChannelNative"缺少这些成员的实现:
- RTCDataChannel.bufferedAmount
- RTCDataChannel.id试着
- 提供一种实现方式
- 从超类或mixin继承实现
- 将类标记为抽象类,或者
- 提供"noSuchMethod"实现
类RTCDataChannelNative扩展RTCDataChannel{^^^^^^^^^^^^^^^^^^^^../../../Downloads/flutter/.pub cache/hosts/pub.dartlang.org/webrtc_interface-1.0.3/lib/src/rtc_data_channel.dart:79:12:上下文:此处定义了"RTCDataChannel.bufferedMount"。int?获得bufferedAmount;^^^^^^^^^^^^^^../../../Downloads/flutter/.pub cache/hosts/pub.dartlang.org/webrtc_interface-1.0.3/lib/src/rtc_data_channel.dart:74:12:上下文:此处定义了"RTCDataChannel.id"。int?获取id;^^
您需要升级依赖项来解决此问题,因此运行:
flutter pub升级
相同:非抽象类';InternalSelectableMathState';缺少这些成员的实现