When I start a debugging session (pressing F5) I receive the following messages:
dart:ui:1: Error: Not found: dart:ui.
Exited (sigterm)
The
The following helped me:
flutter channel. Make sure you're on master. If not: flutter channel master flutter upgrade said I had untracked changes. Probably after I had been jumping between channels.flutter upgrade --force fixed the issue though the version (flutter --version) remained the same.Seems like some local inconsistency in flutter directory after switching channels.
FYI. I was playing with Flutter for desktop so after enabling the feature and switching to master I started to see the new device after flutter devices:
SM G973F • RF8M206V4LW • android-arm64 • Android 9 (API 28)
Windows • Windows • windows-x64 • Microsoft Windows [Version 10.0.17134.1130]
If it's your case, when running your app with flutter run make sure to add -d RF8M206V4LW or -d Windows to run against the correct device.