Question: Unable to run flutter from Android Studio not detecting flutter project its shows Error: Entry point isn't within the current project

Every time restart android studio same error message shows

[![enter image description here](https://i.stack.imgur.com/2ZDEP.png)](https://i.stack.imgur.com/2ZDEP.png)

Answer: 
Syncing your project with gradle files will solve it:

[![enter image description here](https://i.stack.imgur.com/9I1Gb.png)](https://i.stack.imgur.com/9I1Gb.png)
For me my project was missing the pubspec.yaml file, it was deleted by mistake , instead of warning about the missing file , I got this error

[![enter image description here](https://i.stack.imgur.com/2h2Y3.png)](https://i.stack.imgur.com/2h2Y3.png)