【问题标题】:How to make Flutter work without having to turn off AdGuard如何在不关闭 AdGuard 的情况下让 Flutter 工作
【发布时间】:2021-04-10 07:56:14
【问题描述】:

当我运行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 & 70596

那是因为颤振被 AdGuard (here) 阻止了。

但我想知道 Flutter 是否有可能在不必禁用 AdGuard 的情况下运行良好(也许 AdGuard 将 Flutter 添加到白名单?)

感谢所有建议!

【问题讨论】:

    标签: flutter dart


    【解决方案1】:

    转到AdGuard Preferences -&gt; Network -&gt; Automatically filter applications -&gt; Select Mode... 并将模式更改为Automatic Proxy

    【讨论】:

    • 非常感谢,它运行良好,无需禁用 AdGuard
    猜你喜欢
    • 2020-12-27
    • 2010-11-27
    • 2018-11-22
    • 1970-01-01
    • 2013-09-24
    • 2016-02-16
    • 1970-01-01
    • 2012-01-01
    • 1970-01-01
    相关资源
    最近更新 更多