[英]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.我正在尝试 flutter 并安装了所有需要的依赖项,并尝试将 flutter 模板作为 Windows 应用程序运行。 But I just can not get a flutter run configuration working, since it always is telling me "entrypoint file not found at main.dart".
但我就是无法让 flutter 运行配置正常工作,因为它总是告诉我“在 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) (这里不能真正提供任何图片,因为运行配置不允许我浏览项目文件或 select 其他任何东西。我能做的所有配置都是手动将 Dart_entrypoint 字段设置为 main.dart 或 lib\main.Z99627678020FAEBB141276958060FAEBB151276773 任何.\lib\main.dart 都会导致上述错误)
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?但是通过终端运行“flutter run”可以正常工作并启动应用程序,所以我的问题是,如何让 Android Studios 中的运行配置正常工作?
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.从
File>Project Structure
go 到ProjectSettings
中的Modules
,并添加一个新模块。
Select Flutter and name the module on the next page and select the path to the project directory. Select Flutter 并在下一页命名模块,select 为项目目录的路径。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.