Problem: Running into "Entrypoint file not found at main.dart" error in Android Studio. Here is a screenshot of the error:
Figure 1: Error message
Solution: Here are the steps to fix this error:
- Navigate to 'File' -> 'Project Structure' -> 'Modules' and click on 'Import Existing Module' or 'Import...' like so:
2. Click on the folder icon in the 'Source directory' field and select your project as a module like so:
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:
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.