FlutterError:No pubspec.yaml file found

No pubspec.yaml file found error

Error: No pubspec.yaml file found.
This command should be run from the root of your Flutter project.
Do not run this command from the root of your git clone of Flutter.

This error is a misstatement, can be seen running through the flutter run command when the information being given out from the cause of the error is not found pubspec.yaml file, and also suggested the following is clear: This command should be run in the project root directory Flutter .

First suspected my configuration right, checked no problem
Here Insert Picture Description
flutter doctor command to print the results and there is no problem, later found to be wrong location of the terminal execute commands > D:\Flutter\flutterProject\flutterTest>, and did not execute flutter run command in the root directory of the project. This problem is where to find the
implementation of cd flutter项目名successful resolution
Here Insert Picture Description

Published 24 original articles · won praise 5 · Views 3943

Guess you like

Origin blog.csdn.net/qq_41345281/article/details/102486587