Legend
Legend

Reputation: 35

There is no pubspec.yaml file in android studio but project runs just fine how?

image

There is not pubspec.yaml file how should I edit it now? The project is running just fine without any errors.

Upvotes: 2

Views: 2613

Answers (4)

mohammed karam
mohammed karam

Reputation: 11

you may change the android mode to project mode image in this link

change the choose of android to project select project

finally you will see pubspec.yaml 🎉🎉

Upvotes: 1

My Car
My Car

Reputation: 4556

All you have to do is click the Android button in the upper left corner and select the Project button. You will see pubspec.yaml. If you don't see pubspec.yaml, you can leave a comment.

Upvotes: 4

Nikhil
Nikhil

Reputation: 315

Flutter cannot run without pubspec.yaml file. You are just looking into the android file of it.

Android View

Project View

Instead of android choose project from the drop down menu and you can see pubspec.yaml file again

Upvotes: 1

Sujan Gainju
Sujan Gainju

Reputation: 4769

Well, you have opened the android folder which is inside the main folder.

The flutter has the file structure as enter image description here

The pubspec.yaml file resides in the main folder

Upvotes: 1

Related Questions