エラー内容
しばらく使っていないプロジェクトをビルドしようとしたところ、
Error: The getter 'addressOf' isn't defined for the class 'xxx'
というエラー文が表示されてしまいました。
解決策
- .ideaフォルダ、buildフォルダ、pubspec.lockファイルの削除
- flutter pub get
を行う。
動作環境
[✓] Flutter (Channel stable, 2.2.0, on macOS 11.2.3 20D91 darwin-x64, locale ja-JP)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1)
[✓] Connected device (3 available)
! Error: iPhone is not connected. Xcode will continue when iPhone is connected. (code -13)
• No issues found!
Dart 2.13.0