-
Notifications
You must be signed in to change notification settings - Fork 1.7k
No pubspec.yaml file found. #32747
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
What Flutter version? |
[√] Flutter (Channel master, v0.2.7-pre.6, on Microsoft Windows [Version 10.0.16299.309], locale en-US) [!] Android toolchain - develop for Android devices (Android SDK 27.0.2) [√] Android Studio (version 3.1) [!] IntelliJ IDEA Ultimate Edition (version 2017.3) [√] VS Code, 64-bit edition (version 1.21.1) [√] Connected devices (1 available) ! Doctor found issues in 2 categories. |
Tried purging and re-installing flutter, dart and associated plugins to no avail |
Did you try accepting the licenses? |
Please ask this type of question in https://stackoverflow.com/ Did you run the command in the directory w/ Closing as this doesn't seem an issue – but happy to help you figure things out. |
Yeah directory has pubspec.yaml |
Is this when you run it on iPhone or iOS emulator or also on Android? |
Android |
If you can still reproduce I'd suggest you create a new issue in the Flutter repo with more information about your project, and in which directory the |
See also flutter/flutter#16100 |
still i got this error, when i run flutter clean command. Error: No pubspec.yaml file found. Flutter 1.5.4-hotfix.2 • channel stable • https://github.com/flutter/flutter.git Running flutter doctor... • No issues found! |
Not sure if the pubspec.yaml should be at the root directory of your application, but I'm guessing in your case it should be at "C:\Saravanan\Flutter_visibility\tvs_invisibility" instead of inside the "test" subfolder. Secondly, the terminal seems to be pointing at another folder directory namely "C:\Saravanan\Flutter_SDK\flutter", hence you might want to change the directory it is pointing at to the "C:\Saravanan\Flutter_visibility\tvs_invisibility". For my case, the pubspec.yaml file and the other files was at the folder "C:\Desktop\Flutter\my_app_name\my_app_name" when i created the new project using "Flutter: New Project". In the first "my_app_name" folder, it had nothing except for another "my_app_name" folder, thus i had to move all the files to one level before which is ""C:\Desktop\Flutter\my_app_name" and ensure that the terminal is pointing to this directory before running the flutter run command, the flutter doctor can run even if it is not pointing to the root of the directory, but "flutter run" can only execute when pointing at the correct directory. |
I was getting this one when running |
In case anyone else has this problem - I had this issue and then I realized I was trying to launch from the wrong folder (my app was in a sub folder). So I just needed to change directories in the terminal. |
I can see the pubspec.yaml file in my project, however, project cannot run and gives the following 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.
I have tried opening new projects and all throw the same error. Please assist
The text was updated successfully, but these errors were encountered: