如何在不关闭AdGuard的情况下使Flutter正常工作 [英] How to make Flutter work without having to turn off AdGuard

查看:71
本文介绍了如何在不关闭AdGuard的情况下使Flutter正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行 flutter doctor -v 时,出现以下日志

When I run flutter doctor -v, the following logs appear

⣽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 .

I tried searching and understood why here #40515 & 70596.

那是因为颤动已被AdGuard阻止(此处)

That's because the flutter is blocked by AdGuard (here).

但是我想知道是否有可能在不禁用AdGuard的情况下使抖动工作良好(也许是AdGuard将Flutter添加到白名单了?)

But I wonder if it is possible that the flutter works well without having to disable AdGuard (maybe adding Flutter to whitelist by AdGuard?)

感谢所有建议!

推荐答案

转到 AdGuard首选项->网络->自动过滤应用程序->选择模式... ,然后将模式更改为自动代理.

Go AdGuard Preferences -> Network -> Automatically filter applications -> Select Mode... and change mode to Automatic Proxy.

这篇关于如何在不关闭AdGuard的情况下使Flutter正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆