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: 
**1)** make sure **flutter** and **dart sdk** paths are properly configured from

**File-> Settings..->Languages and Frameworks**
as well as **make sure Dart support is enabled** for project module from **Dart** Option
[![enter image description here](https://i.stack.imgur.com/hf8je.png)](https://i.stack.imgur.com/hf8je.png)

**2)** at the end select **File->Invalid caches and restart**

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

**3)** so after 2nd step you may get in **File->Project Structure..** option from there Select Modules then just simply add only **root folder path** of your flutter project and **repeat just above 2nd step**
for me this worked
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)