when I've tried to run my flutter in vs code it gave this error in debug console

920

It sounds like some unexpected arguments are being passed to flutter when you try to run. These could come from a few different places:

  • Check if you have a .vscode/launch.json file, and whether you have anything unexpected in the args
  • Check the "Flutter Additional Args" and other similar settings in VS Code

To find out exactly what command VS Code is trying to run:

  • Run the Dart: Capture Debugging Logs command from the command palette
  • Try to run the app to generate the error
  • Click Cancel on the logging notification to stop logging and open the log file
  • Search the log file for "Spawning" and it should show the full command VS Code is trying to run
Share:
920
Saad T
Author by

Saad T

Updated on January 02, 2023

Comments

  • Saad T
    Saad T over 1 year

    Could not find an option with short name "-n".

    Run 'flutter -h' (or 'flutter -h') for available flutter commands and options. Exited (64)

    • Dipak Ramoliya
      Dipak Ramoliya over 2 years
      please run flutter clean and if you use iOS device to run your app make sure you use pod install manually
    • Saad T
      Saad T over 2 years
      I did it and it and also did flutter pub cache repair still don't work
  • Saad T
    Saad T over 2 years
    Thank you very much