gpt4 book ai didi

macos - Mac OS Big sur Flutter安装错误 “Bad state: Future already completed”

转载 作者:行者123 更新时间:2023-12-03 09:54:00 25 4
gpt4 key购买 nike

这样显示。

Unhandled exception:
Bad state: Future already completed
#0 _AsyncCompleter.complete (dart:async/future_impl.dart:43:31)
#1 _NativeSocket.startConnect.<anonymous closure>.connectNext.<anonymous closure> (dart:io-patch/socket_patch.dart:678:23)
#2 _NativeSocket.issueWriteEvent.issue (dart:io-patch/socket_patch.dart:1043:14)
#3 _NativeSocket.issueWriteEvent (dart:io-patch/socket_patch.dart:1050:12)
#4 _NativeSocket.multiplex (dart:io-patch/socket_patch.dart:1071:11)
#5 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)
Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds...
我完全从macOS Big Sur卸载flutter。但它仍显示相同的结果。

最佳答案

该问题似乎与杀毒软件有关。
我尝试从zip安装,但是任何Flutter命令都继续遇到完全相同的问题。我不得不暂时禁用Avast Security,一切都会自行解决。
Link发布在GitHub上。
更新

禁用Web Shield上的“扫描安全连接”选项可使我保持Avast的运行,而Flutter没有任何问题。

关于macos - Mac OS Big sur Flutter安装错误 “Bad state: Future already completed”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64900664/

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