gpt4 book ai didi

macos - flutter 桌面 : Cannot find device on MacOS Catalina

转载 作者:行者123 更新时间:2023-12-02 09:05:27 25 4
gpt4 key购买 nike

我想用 flutter config --enable-macos-desktop 激活,执行后该值设置为 true 但(不可用)。

Error message

问题是我在 flutter devices 中也看不到我的设备.所以我的问题是你知道为什么它不可用,是否可以为 macOS 编写当前的桌面应用程序?

最佳答案

这是您验证可用内容并正确设置环境的方法:

$ flutter config
....
....
Settings:
enable-macos-desktop: true (Unavailable)

$ flutter channel stable
$ flutter devices

No devices detected.

现在,如果您将其更改为 master
$ flutter channel master
$ flutter devices

Downloading Dart SDK from Flutter engine aaf9e79f1d29e128ad5d3beaad1bf4dd0074c470...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 221M 100 221M 0 0 27.2M 0 0:00:08 0:00:08 --:--:-- 27.7M
Building flutter tool...
Downloading package sky_engine... 0.5s
Downloading flutter_patched_sdk tools... 1.0s
Downloading flutter_patched_sdk_product tools... 0.8s
Downloading darwin-x64 tools... 1.6s
Downloading darwin-x64/font-subset tools... 0.6s
1 connected device:

macOS • macOS • darwin-x64 • Mac OS X 10.15.4 19E287

$ flutter devices
1 connected device:

macOS • macOS • darwin-x64 • Mac OS X 10.15.4 19E287

$ flutter config

....
....
Settings:
enable-macos-desktop: true

关于macos - flutter 桌面 : Cannot find device on MacOS Catalina,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59103742/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com