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
If you haven't run your Flutter app yet, you might see Android Studio report a build error when you open the android project. Run flutter pub get in the app's root directory and rebuild the project by selecting Build > Make to fix it.
In Dart, the entry point is the main() function.
C:\>where flutter dart C:\dev\src\flutter\bin\flutter C:\dev\src\flutter\bin\flutter.bat C:\dev\src\flutter\bin\dart C:\dev\src\flutter\bin\dart.bat C:\dev\src\dart-sdk\bin\dart.exe. However, if you are using PowerShell , in it where is an alias of Where-Object command, so you need to use where.exe instead.
Delete the .idea
folder inside the root of the flutter project and restart Android Studio.
Refer to this question: What is the .idea folder? and make your decision if it's safe or not to delete .idea
folder.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With