代码之家  ›  专栏  ›  技术社区  ›  Alexander Mills

Flutter不将Chrome识别为“web”,反之亦然

  •  0
  • Alexander Mills  · 技术社区  · 1 年前

    我想知道Flutter为什么会识别此命令:

    flutter build web
    

    但当我跑步时,它会结结巴巴:

    flutter run -d web
    

    就像这样:

    enter image description here

    “错误”当然是

    找不到名称或id与“web”匹配的受支持设备。

    只是一种次优的人类体验,想知道为什么这次一定是我

    1 回复  |  直到 1 年前
        1
  •  1
  •   FaBotch    1 年前

    网络不是一个设备。如果你想在chrome上运行,你应该使用

    flutter run -d chrome