安装后扑医生

时间:2018-12-23 02:53:22

标签: dart flutter

我遵循设置指南here,解开抖动并运行flutter doctor后,出现以下错误

flutter doctor

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, v1.0.0, on Mac OS X 10.14.2 18C54, locale en-US)
⣾Unhandled exception:
RangeError (index): Invalid value: Only valid value is 0: 1
#0      List.[] (dart:core/runtime/libgrowable_array.dart:145:60)
#1      IntelliJValidatorOnMac.pluginsPath (package:flutter_tools/src/doctor.dart:666:31)
#2      IntelliJValidator.validate (package:flutter_tools/src/doctor.dart:509:53)
<asynchronous suspension>
#3      Doctor.startValidatorTasks (package:flutter_tools/src/doctor.dart:112:52)
#4      Doctor.diagnose (package:flutter_tools/src/doctor.dart:185:41)
#5      _AsyncAwaitCompleter.start (dart:async/runtime/libasync_patch.dart:49:6)
#6      Doctor.diagnose (package:flutter_tools/src/doctor.dart:175:24)
#7      DoctorCommand.runCommand (package:flutter_tools/src/commands/doctor.dart:48:39)
#8      _AsyncAwaitCompleter.start (dart:async/runtime/libasync_patch.dart:49:6)
#9      DoctorCommand.runCommand (package:flutter_tools/src/commands/doctor.dart:34:42)
#10     FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:526:18)
#11     _asyncThenWrapperHelper.<anonymous closure> (dart:async/runtime/libasync_patch.dart:77:64)
#12     _rootRunUnary (dart:async/zone.dart:1132:38)
#13     _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#14     _FutureListener.handleValue (dart:async/future_impl.dart:129:18)
#15     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:642:45)
#16     Future._propagateToListeners (dart:async/future_impl.dart:671:32)
#17     Future._complete (dart:async/future_impl.dart:476:7)
#18     _SyncCompleter.complete (dart:async/future_impl.dart:51:12)
#19     _AsyncAwaitCompleter.complete.<anonymous closure> (dart:async/runtime/libasync_patch.dart:33:20)
#20     _rootRun (dart:async/zone.dart:1124:13)
#21     _CustomZone.run (dart:async/zone.dart:1021:19)
#22     _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:947:23)
#23     _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#24     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#25     _runPendingImmediateCallback (dart:isolate/runtime/libisolate_patch.dart:115:13)
#26     _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:172:5)

我尝试从git安装flutter,尝试不同的频道,设置我的路径,下载dart,下载android studio的flutter / dart,但我无法克服此错误。

2 个答案:

答案 0 :(得分:0)

我不知道是什么原因引起的,但是重新安装Git和sdk可能会解决问题。

答案 1 :(得分:0)

该错误是由于飞镖引起的。请尝试以下步骤:

1)在您的终端上运行flutter packages get是个好主意

2)在您的终端上运行flutter upgrade

3)通过运行dart --version

检查是否安装了dart。

4)通过运行which brew

检查是否冲泡啤酒

5)还要检查您是否在开发人员通道上,某些人在开发人员通道上遇到问题。如果您愿意,我建议您切换到母版。

如果您没有安装飞镖,建议您安装飞镖。希望这可以帮助。让我们知道是否可行。