When i press run flutter it is show "Error: No pubspec.yaml file found. This command should be run from the root of your Flutter project. :" - flutter

When I press run flutter it is show
Error: No pubspec.yaml file found. This command should be run from the root of your Flutter project.
the Error image
flutter doctor
How can I fix it?

The ua is not the correct directory for your project. You need to change your working directory with:
cd ali
Then, you can flutter run.

Related

Xcode 13 'Flutter/Flutter.h' file not found when I add Facebook App Event

When i add Facebook App Events (v 12.3.2) to flutter project i have error in Xcode.
This not help https://stackoverflow.com/questions/67998790/file-not-found-flutter-flutter-h[enter image description here]1
Problem in Xcode
enter image description here
Problem in Android studio when I use flutter run -d
enter image description here
Flutter doctor and flutter doctor -v don't show any issue
try this steps:
Backup Runner folder
Delete the ios folder
Go to a terminal and execute flutter create . in the flutter project folder
Paste your Runner folder back into the ios folder
pod deintegrate in the ios folder
pod install also in the ios folder
flutter clean in the flutter project folder
flutter pub get
flutter run
Please note that if you use firebase you need to re-insert the GoogleService-Info.plist file

Emulator doesnt load anymore, what can i do?

In VSCode Flutter Emulator doesnt load.
Error: No pubspec.yaml file found.
This command should be run from the root of your Flutter project.
Flutter run doesnt work.
make sure you are in the root of your project.
if not - right click on your main.dart file and run that file on terminal.
then flutter clean & pub get & run worked for me .

No pubspec.yaml file found. in flutter

I tried to build the project from vs code terminal but it just threw an error
According to the image, there is another folder inside of flutter-quizstar-master-step, therefore execute:
cd flutter-quizstar-master
then
flutter build apk

pub get failed (66; Could not find a file named "pubspec.yaml" in "C:\Windows\System32"

fatal: not a git repository (or any of the parent directories): .git Could not find a file named "pubspec.yaml" in "C:\Windows\System32". pub get failed (66; Could not find a file named "pubspec.yaml" in "C:\Windows\System32".)
hi everyone
I got this error message every time when I tried to create a flutter project by an android studio or by cmd
I checked flutter doctor command and appear no problems about flutter installation
so any advice about this problem?
[error message when I used android studio 1
flutter doctor message
You can try below steps:
First, you reboot(restart) your PC.
Before opening anything, you delete your flutter folder.
Unzipped a new flutter installation into the same directory.
Inside your project directory You run flutter packages get
Then open the IDE and everything will be working.
Refer flutter issue for more information.

In Flutter when I write Command "flutter build apk" I have error " Error: No pubspec.yaml file found

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.
Please note that I have executed the same project previously more than once.
You are in the wrong folder in the command prompt..navigate to the root directory of your project in which the pubspec.yaml is placed.