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
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