当我跑步时flutter doctor -v
,出现以下日志
⣽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: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)
我尝试搜索并理解为什么在这里#40515 https://github.com/flutter/flutter/issues/40515 & 70596 https://github.com/flutter/flutter/issues/70596.
那是因为flutter被AdGuard阻挡了(here https://github.com/flutter/flutter/issues/40515#issuecomment-714499891).
但我想知道 flutter 是否有可能在无需禁用 AdGuard 的情况下运行良好(也许可以通过 AdGuard 将 Flutter 添加到白名单?)
感谢您的所有建议!
Go AdGuard Preferences -> Network -> Automatically filter applications -> Select Mode...
并将模式更改为Automatic Proxy
.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)