android - 在“颤振医生”期间颤振崩溃
问题描述
我的设置
- macOS 莫哈韦
- Xcode 10.3
- 带有最新 SDK 和 NDK 的 Android Studio 3.5。
我最近将颤振从 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)
有没有人看到这个?
解决方案
第一次运行:
flutter config --clear-features
然后
flutter config --no-analytics
和flutter update-packages
如果一切顺利,您可以运行flutter doctor
良好。
推荐阅读
- python - Pyenv本地配置问题
- c# - .Net.Mail 不使用交换 SMTP 引发异常
- angular - 具有 Angular 7 多语言支持的 asp.net 核心 web api
- typescript - 键入类属性的 keyof
- postgresql - Amazon aurora postgres serverless:数据库返回超过允许的响应大小限制
- javascript - 如何使用 Express 后端向用户呈现反应页面?
- r - R如何根据2个条件修改数据框中的条目
- google-cloud-platform - 如何将文件从服务器上传到 Cloud Storage 存储分区?
- android - 自动填写不带国家代码的电话号码
- python - 根据熊猫中的今天日期和其他条件过滤数据框