I am trying out flutter and have installed all needed dependencies and am trying to run the flutter template as a Windows Application. But I just can not get a flutter run configuration working, since it always is telling me "entrypoint file not found at main.dart".
(Cannot really provide any pictures here, since the the run configuration does not allow me to browse the project files or select anything else. All Configuration I can do is set the Dart_entrypoint field manually to main.dart or lib\main.dart or any .\lib\main.dart which all result in above mentioned error)
But running "flutter run" via the terminal works fine and starts the Application, so my question is, how do I get the run configuration in Android Studios working?
Project File View:
You have to reset the project module to solve this. From File>Project Structure
go to Modules
inside ProjectSettings
, and add a new module.
Select Flutter and name the module on the next page and select the path to the project directory.
Update:
Apparently this will not work in the latest version of Android Studio (or its just another case). Instead of adding a new module, you have to select the available module with your project name and add sources to it (select project directory).