gpt4 book ai didi

dart - flutter.io "NoSuchMethodError: The getter ' isMacOS' 被调用为空。”

转载 作者:IT王子 更新时间:2023-10-29 07:01:09 26 4
gpt4 key购买 nike

我一直想玩 flutter.io 有一段时间了,今天开始安装它。我正在关注 flutter 网站上的入门页面,但在运行“flutter doctor”时遇到以下错误消息……我做错了什么吗?或者解决这个问题的解决方法?

Oops; flutter has exited unexpectedly.
Sending crash report to Google.
Crash report sent (report ID: 8a4b9d16bec30469)
Unhandled exception:
NoSuchMethodError: The getter 'isMacOS' was called on null.
Receiver: null
Tried calling: isMacOS
#0 Object.noSuchMethod (dart:core-patch/dart:core/object_patch.dart:46)
#1 IOSDevices.supportsPlatform (package:flutter_tools/src/ios/devices.dart:34)
#2 DeviceManager._platformDiscoverers.<anonymous closure> (package:flutter_tools/src/device.dart:85)
#3 WhereIterator.moveNext (dart:_internal/iterable.dart:439)
#4 DeviceManager.getAllConnectedDevices (package:flutter_tools/src/device.dart:90)
<asynchronous suspension>
#5 DeviceValidator.validate (package:flutter_tools/src/doctor.dart:560)
<asynchronous suspension>
#6 Doctor.startValidatorTasks (package:flutter_tools/src/doctor.dart:71)
#7 Doctor.diagnose (package:flutter_tools/src/doctor.dart:128)
<asynchronous suspension>
#8 _doctorText.<anonymous closure> (package:flutter_tools/runner.dart:237)
#9 AppContext._run (package:flutter_tools/src/base/context.dart:76)
<asynchronous suspension>
#10 AppContext.runInZone.<anonymous closure> (package:flutter_tools/src/base/context.dart:66)
#11 _rootRun (dart:async/zone.dart:1126)
#12 _CustomZone.run (dart:async/zone.dart:1023)
#13 runZoned (dart:async/zone.dart:1501)
#14 AppContext.runInZone (package:flutter_tools/src/base/context.dart:65)
#15 _doctorText (package:flutter_tools/runner.dart:237)
<asynchronous suspension>
#16 _createLocalCrashReport (package:flutter_tools/runner.dart:212)
<asynchronous suspension>
#17 _handleToolError (package:flutter_tools/runner.dart:167)
<asynchronous suspension>
#18 run.<anonymous closure> (package:flutter_tools/runner.dart:94)
<asynchronous suspension>
#19 AppContext._run (package:flutter_tools/src/base/context.dart:76)
<asynchronous suspension>
#20 AppContext.runInZone.<anonymous closure> (package:flutter_tools/src/base/context.dart:66)
#21 _rootRun (dart:async/zone.dart:1126)
#22 _CustomZone.run (dart:async/zone.dart:1023)
#23 runZoned (dart:async/zone.dart:1501)
#24 AppContext.runInZone (package:flutter_tools/src/base/context.dart:65)
#25 run (package:flutter_tools/runner.dart:61)
<asynchronous suspension>
#26 main (package:flutter_tools/executable.dart:48)
<asynchronous suspension>

我在 flutter 的 github 上注意到这个问题:https://github.com/flutter/flutter/issues/16096所以我认为这是一个错误?我可以做些什么来解决这个问题,以便尝试使用 Flutter?

感谢您的帮助!

编辑:如果这与错误有关,我正在 Windows 10 上运行它。

最佳答案

尝试 flutter upgrade 然后 flutter doctor

关于dart - flutter.io "NoSuchMethodError: The getter ' isMacOS' 被调用为空。”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49590777/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com