LoginSignup
1
0

More than 1 year has passed since last update.

Flutterをアップグレードしたときのメモ

Last updated at Posted at 2022-04-06

Flutterをバージョンアップしたら以下のように怒られた。


class RTCDataChannelNative extends RTCDataChannel { ^^^^^^^^^^^^^^^^^^^^ ../../../Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/webrtc_interface-1.0.3/lib/src/rtc_data_channel.dart:79:12: Context: 'RTCDataChannel.bufferedAmount' is defined here. int? get bufferedAmount; ^^^^^^^^^^^^^^ ../../../Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/webrtc_interface-1.0.3/lib/src/rtc_data_channel.dart:74:12: Context: 'RTCDataChannel.id' is defined here. int? get id; ^^

Flutterのバージョンとプラグインのバージョンが互換性がないよってことらしいです。(忘れると結構ハマる)

以下のコマンドを実施する。

flutter pub upgrade

以下参考

また、このエラーに引っかかりがちな人は初学者だと思うのでFlutterのバージョンを複数管理する仕組みとしてFVMの導入も合わせて検討ください。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0