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

后端 未结 23 1917
南方客
南方客 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:09

    In my case, i was using a VS code in Windows 10 and when i created a new project by Flutter: New Project it failed to create the following project files & folders under the project location

    • android

    • ios

    • lib
    • pubspec.lock
    • pubspec.yaml and few more files.

    I tried creating another project and that successfully created with all the necessary files.

    Sound dumb but this is what exactly happened to me.

    Hope it helps someone.

提交回复
热议问题