【发布时间】:2021-03-13 16:57:33
【问题描述】:
我在 Big Sur 上使用任何颤振命令都会收到此错误:
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:682:23)
#2 _NativeSocket.issueWriteEvent.issue (dart:io-patch/socket_patch.dart:1102:14)
#3 _NativeSocket.issueWriteEvent (dart:io-patch/socket_patch.dart:1109:12)
#4 _NativeSocket.multiplex (dart:io-patch/socket_patch.dart:1130:11)
#5 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)
Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (6 tries left)
我唯一改变的是安装 AdGuard,但我完全删除了它。现在我尝试了不同的方法来修复它后无法摆脱这个错误。
我也有 Bitdefender,但不认为这是相关的,因为我从一开始就安装了这个(这也是我公司的要求,我不能在这里修改任何东西)
【问题讨论】:
-
没有帮助我,但这可能是某些人的解决方案:github.com/AdguardTeam/AdguardForMac/issues/773
标签: flutter