[英]Flutter crashes during `flutter doctor`
My setup我的设置
I recently upgraded flutter from 1.7.8 to 1.9.1+hotfix, but the immediate flutter doctor -v
crashes in the middle, giving this Terminal output.我最近将 flutter 从 1.7.8 升级到 1.9.1+hotfix,但是立即的
flutter doctor -v
在中间崩溃,给这个终端 output。
$ flutter doctor -v
[✓] Flutter (Channel stable, v1.9.1+hotfix.2, on Mac OS X 10.14.6 18G95, locale en-CA)
• Flutter version 1.9.1+hotfix.2 at /Applications/Android/flutter
• Framework revision 2d2a1ffec9 (8 days ago), 2019-09-06 18:39:49 -0700
• Engine revision b863200c37
• Dart version 2.5.0
⣽Unhandled exception:
Bad state: Future already completed
#0 _AsyncCompleter.complete (dart:async/future_impl.dart:39:31)
#1 _NativeSocket.startConnect.<anonymous closure>.connectNext.<anonymous closure> (dart:io-patch/socket_patch.dart:523:23)
#2 _NativeSocket.issueWriteEvent.issue (dart:io-patch/socket_patch.dart:878:14)
#3 _NativeSocket.issueWriteEvent (dart:io-patch/socket_patch.dart:885:12)
#4 _NativeSocket.multiplex (dart:io-patch/socket_patch.dart:906:11)
#5 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:172:12)
Did anyone see this?有人看到这个吗?
First run: flutter config --clear-features
第一次运行:
flutter config --clear-features
then flutter config --no-analytics
and flutter update-packages
然后
flutter config --no-analytics
和flutter update-packages
if all goes like ok, you can run flutter doctor
nicely. 如果一切正常,您可以很好地运行
flutter doctor
。
Firstly, you should always run the flutter command to avoid returning errors when you run the flutter doctor command.首先,您应该始终运行 flutter 命令以避免在运行 flutter 医生命令时返回错误。 had the same issue and when i did this it worked perfectly.
有同样的问题,当我这样做时,它工作得很好。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.