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: 
If your ios, android, or lib folders are missing, it typically means there is something wrong with your project structure.

To fix it, delete the .idea folder in the root of your project and then restart Android Studio. If you're using a Mac, you can display the hidden .idea folder by [pressing Command+Shift+Dot in Finder](https://setapp.com/how-to/show-hidden-files-on-mac#:%7E:text=See%20hidden%20files%20on%20Mac%20via%20Finder&text=In%20Finder%2C%20open%20up%20your,2%20to%20hide%20them%20again!).

The .idea folder will be automatically regenerated and everything should be back where it belongs.

See [this post](https://github.com/flutter/flutter-intellij/issues/2307#issuecomment-627768384) for the original solution.
I faced the same issue today and tried other solutions here but it wasn't worked at all.

In my case I **deleted** three folders that is `android`, `ios`, and `.idea` from project directory, then restarted **android studio** and finally I gave this command in Android Studio's Terminal.`flutter create .` to create appropriate directories (i.e., android & ios).

**Now it is working fine.**

**Note:** Before deleting the **android / ios** directory please make a backup of these directories only if you previously gave native code in android / ios directory.

Hope this solution will helpful if others will not work.