简体   繁体   English

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

C:\flutter\flutter_windows_v1.9.1+hotfix.2-stable\flutter\bin\flutter.bat --no-color build apk
Target file "lib\main.dart" not found.
Process finished with exit code 1

You can set an entry point like this:您可以像这样设置入口点:

flutter run --target=lib/Login.dart
flutter build apk --target=lib/Login.dart

This article shows you how to set up IDE (VSCode/AS) to build another target file. 本文向您展示如何设置 IDE (VSCode/AS) 以构建另一个目标文件。

I don't think you should be changing the entry file, you can always use the main.dart without issues and then set the Entry class there.我认为您不应该更改条目文件,您可以随时使用 main.dart 没有问题,然后在那里设置条目 class。 This doesn't stop your app from working.这不会阻止您的应用程序运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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