“目前不支持颤振网络”

Kar*_*dts 1 dart flutter

我正在 Flutter web 中创建一个网站

当我使用命令时

webdev serve
Run Code Online (Sandbox Code Playgroud)

一切正常,但是当我使用命令时

flutter build web
Run Code Online (Sandbox Code Playgroud)

我收到此错误:

Downloading Web SDK...                                              1,6s
"build web" is not currently supported.
Run Code Online (Sandbox Code Playgroud)

这是我的颤振版本

[?] Flutter (Channel stable, v1.9.1+hotfix.4, on Mac OS X 10.15 xxxx, locale xxx)
[?] Android toolchain - develop for Android devices (Android SDK version 29.0.0)
[?] Xcode - develop for iOS and macOS (Xcode 10.3)
[?] Android Studio (version 3.4)
[?] VS Code (version 1.40.0)
[!] Connected device
    ! No devices available

! Doctor found issues in 1 category.
Run Code Online (Sandbox Code Playgroud)

提前致谢!

Nag*_*ram 5

I also faced the same issue.

Follow the official documentation

In my case, I missed to execute the following command

> flutter config --enable-web
Run Code Online (Sandbox Code Playgroud)

Also, ensure that you are in the 'Dev' channel

flutter channel dev
Run Code Online (Sandbox Code Playgroud)