简体   繁体   English

AndroidStudio:在 main.dart 中找不到入口点文件

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

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

相关问题 ZC047B10EEEE763AFB6164E07CF1CC268Z:我更改了Z35900D987289A89A83AF101D18A9F7C3501Z入口处login.zbbbb14127678960e171777897d8739501595015950101595010150150150150101010101010101010101010101010年, - Flutter: I have changed the Dart entrypoint to Login.dart , while building apks error shows that lib\main.dart not found 未找到目标文件“lib\main.dart”。 flutter - Target file "lib\main.dart" not found. flutter Flutter:找不到目标文件“lib/main.dart” - Flutter : Target file "lib/main.dart" not found 如何在main.dart中包含单独的文件 - How to include seperate file in the main.dart 如何将 If 语句添加到 main.dart 文件 - How Add a If statement to main.dart file Android Studio 未创建 main.dart 文件 - Android Studio not creating main.dart file 从 main.dart 调用另一个 dart 文件中的 dart 方法 - Calling a dart method in another dart file from main.dart 出现“找不到目标文件”lib\main.dart“之类的错误。” 在 flutter 中构建 APK - Getting error like “Target file ”lib\main.dart“ not found.” whlie building APK in flutter 更改配置flutter build apk,找不到目标文件“lib/main.dart” - change configuration flutter build apk, Target file "lib/main.dart" not found 从另一个 dart 文件调用 main.dart 中的 void function - Calling a void function in main.dart from another dart file
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM