How do I fix “No pubspec.yaml file found” in flutter?

后端 未结 23 1930
南方客
南方客 2021-02-07 02:46

I am using Windows 10 with VS Code, although I also tested it on PowerShell, and both produced the same result:

After creating a new flutter program, before editing anyt

23条回答
  •  终归单人心
    2021-02-07 03:13

    I had the same issue, then I realized by default, I was running flutter clean in my sub folder. Not the project folder. Definitely run as follows in the command terminal.

    cd C:\Users*\Desktop*MyProject*my_project_flutter*

    then run the following

    1. flutter clean
    2. flutter run

    Note: cd stands for Change directory I hope this helps!

提交回复
热议问题