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

2,548 views
Skip to first unread message

Tiarnan Swayne

unread,
Apr 22, 2018, 9:51:46 AM4/22/18
to Flutter Dev
Hello, when I try to run my app I get this message:

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.

I have made sure to run from the right folder that my app is in. I have my PATH set up. Here is the result of Flutter doctor:

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel beta, v0.2.8, on Microsoft Windows [Version 10.0.16299.371], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK 26.0.2)
[√] Android Studio (version 3.0)
[√] VS Code, 64-bit edition (version 1.22.2)
[!] Connected devices
   
! No devices available


! Doctor found issues in 1 category.


I have tried to install and reinstall. Please help me here.




Günter Zöchbauer

unread,
Apr 22, 2018, 9:57:01 AM4/22/18
to Flutter Dev
How exactly did you try to run the app?

Jason

unread,
Apr 22, 2018, 11:10:40 AM4/22/18
to Tiarnan Swayne, Flutter Dev
Do you see the pubspec.yaml file in the root project folder? If not the project probably wasn't created correctly. Might want to look at some of the examples on GitHub and see if you are missing files. I created a Flutter project in Android Studio and that field is generated. I also downloaded the gallery examples and that file is present.

--
You received this message because you are subscribed to the Google Groups "Flutter Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Günter Zöchbauer

unread,
Apr 22, 2018, 12:56:36 PM4/22/18
to Flutter Dev
More details would be really helpful.
I have seen this problem being reported quite often recently, but never much details.
Reply all
Reply to author
Forward
0 new messages