Error in Dart File: Entrypoint does not contain a main function

Asked 2 years ago, Updated 2 years ago, 71 views

"When I tried to run the Dart file on Android Studio, the screen ""Edit configuration"" came up, and an error similar to the following occurred:

Error: Entrypoint does not contain a main function

I would appreciate it if you could tell me how to set it up to eliminate this error.

android-studio flutter

2022-09-30 16:33

1 Answers

The main function is missing. The Dart will first look for the main function, so be sure to write it.

void main(){}


2022-09-30 16:33

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.