Published on

Solution for “AndroidStudio: Entrypoint file not found at main.dart”

Problem: Running into "Entrypoint file not found at main.dart" error in Android Studio. Here is a screenshot of the error:

Error message

Figure 1: Error message

Solution: Here are the steps to fix this error:

  1. Navigate to 'File' -> 'Project Structure' -> 'Modules' and click on 'Import Existing Module' or 'Import...' like so:
Step 1 image

2. Click on the folder icon in the 'Source directory' field and select your project as a module like so:

Step 2 image

3. Click 'Ok' then 'Apply' and wait Gradle to rebuild the application with the extra task of including the Dark SDK this time

4. Click on 'Edit Configurations' and select your previous run configuration. The error should be resolved now. Here is a screenshot for reference:

Step 4 image


Thanks for reading this blog post!

If you have any questions or concerns please feel free to post a comment in this post and I will get back to you when I find the time.

If you found this article helpful please share it and make sure to follow me on Twitter and GitHub, connect with me on LinkedIn and subscribe to my YouTube channel.