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

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

    Answer

    just change your directory folder project on terminal VS code.

    Example

    i save my project on directory D:\Project\Flutter Project\MyFirstApp and the main.dart on the directory name "first_app"

    just typing like this on terminal :

    cd first_app

    now we're on D:\Project\Flutter Project\MyFirstApp\first_app

    and then type flutter run

    hopefully answer your question.

    enter image description here

提交回复
热议问题