Quando uso o flutter run eu recebo a seguinte mensagem de erro:
Oops; flutter has exited unexpectedly: "Invalid argument(s): Cannot find executable for C:\Users\sergi\Desktop\CursosAlura\Flutter\flutter\bin\cache\dart-sdk\bin\pub.bat.".
A crash report has been written to C:\Users\sergi\Desktop\CursosAlura\Flutter\bytebank\flutter_02.log.
`
Segue abaixo o log mencionado:
#0 getExecutable (package:process/src/interface/localprocess_manager.dart:125:5)
#1 LocalProcessManager.start (package:process/src/interface/local_process_manager.dart:41:30)
#2 ErrorHandlingProcessManager.start. (package:flutter_tools/src/base/error_handling_io.dart:462:33)
#3 run (package:fluttertools/src/base/error_handling_io.dart:356:20)
#4 ErrorHandlingProcessManager.start (package:flutter_tools/src/base/error_handling_io.dart:462:12)
#5 DefaultProcessUtils.start (package:fluttertools/src/base/process.dart:477:28)
#6 DefaultProcessUtils.stream (package:fluttertools/src/base/process.dart:496:35)
#7 DefaultPub.batch (package:fluttertools/src/dart/pub.dart:295:34)
#8 DefaultPub.get (package:fluttertools/src/dart/pub.dart:219:15)
#9 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:954:17)
#10 _rootRunUnary (dart:async/zone.dart:1198:47)
#11 _CustomZone.runUnary (dart:async/zone.dart:1100:19)
#12 FutureListener.handleValue (dart:async/futureimpl.dart:143:18)
#13 Future.propagateToListeners.handleValueCallback (dart:async/futureimpl.dart:696:45)
#14 Future.propagateToListeners (dart:async/futureimpl.dart:725:32)
#15 Future.completeWithValue (dart:async/futureimpl.dart:529:5)
#16 Future.asyncCompleteWithValue. (dart:async/futureimpl.dart:567:7)
#17 _rootRun (dart:async/zone.dart:1190:13)
#18 _CustomZone.run (dart:async/zone.dart:1093:19)
#19 _CustomZone.runGuarded (dart:async/zone.dart:997:7)
#20 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1037:23)
#21 microtaskLoop (dart:async/schedulemicrotask.dart:41:21)
#22 startMicrotaskLoop (dart:async/schedulemicrotask.dart:50:5)
#23 runPendingImmediateCallback (dart:isolate-patch/isolatepatch.dart:118:13)
#24 RawReceivePortImpl.handleMessage (dart:isolate-patch/isolate_patch.dart:169:5)