首页 > 解决方案 > 在“颤振医生”期间颤振崩溃

问题描述

我的设置

我最近将颤振从 1.7.8 升级到 1.9.1+hotfix,但 flutter doctor -v中间立即崩溃,给出了这个终端输出。

$ 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)

有没有人看到这个?

标签: androidfluttercrash

解决方案


第一次运行: flutter config --clear-features

然后 flutter config --no-analyticsflutter update-packages

如果一切顺利,您可以运行flutter doctor良好。


推荐阅读