简体   繁体   中英

AndroidStudio: Entrypoint file not found at main.dart

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:
项目文件视图

Porject 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM