dart:ui:1: Error: Not found: dart:ui. flutter/dart:

前端 未结 4 1895
终归单人心
终归单人心 2020-12-06 16:10

When I start a debugging session (pressing F5) I receive the following messages:

dart:ui:1: Error: Not found: dart:ui.
Exited (sigterm)

The

4条回答
  •  死守一世寂寞
    2020-12-06 16:55

    The following helped me:

    1. flutter channel. Make sure you're on master. If not: flutter channel master
    2. flutter upgrade said I had untracked changes. Probably after I had been jumping between channels.
    3. 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.

提交回复
热议问题