Error: Error when readinrror: Error when reading 'bin/main.dart': The system cannot find the path specified

Ras*_*put 2 websocket visual-studio-code flutter

Error: Error when reading 'bin/main.dart': The system cannot find the path specified.
Run Code Online (Sandbox Code Playgroud)

我使用的是 Windows 10,VSCode 在调试代码时显示了上述结果,这是我曾经在 VSCode 中使用终端的一件事,flutter run模拟器显示应用程序但没有显示热重载和其他选项,终端显示可能需要很长时间这些是输出

 Error: Error when reading 'bin/main.dart': The system cannot find the
 path specified. Ignoring error posting over WebSocket. Bad state:
 StreamSink is closed #0 _StreamSinkImpl.add
 (dart:_http/http_impl.dart:536:7) #1 _WebSocketImpl.add
 (dart:_http/websocket_impl.dart:1213:11) #2 WebSocketClient.post
 (dart:vmservice_io/server.dart:78:18) #3 _RootZone.runUnary
 (dart:async/zone.dart:1379:54) #4 _FutureListener.handleValue
 (dart:async/future_impl.dart:126:18) #5
 Future._propagateToListeners.handleValueCallback
 (dart:async/future_impl.dart:639:45) #6 Future._propagateToListeners
 (dart:async/future_impl.dart:668:32)
Run Code Online (Sandbox Code Playgroud)

小智 6

删除包含launch.json.vscode文件夹并尝试再次运行。