Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flutter : Target file "lib/main.dart" not found #227

Open
Duchv2008 opened this issue Nov 21, 2023 · 2 comments
Open

Flutter : Target file "lib/main.dart" not found #227

Duchv2008 opened this issue Nov 21, 2023 · 2 comments

Comments

@Duchv2008
Copy link

When i delete file main.dart then use main_stg.dart, main_dev.dart, main_prod.dart
But when i run code in Android native. I has an error Flutter : Target file "lib/main.dart" not found.

When I search, flutter.target automatically receives lib/main.dart.

how to fix that.

@AngeloAvv
Copy link
Owner

Hey @Duchv2008 , why would you need to run the app from the Android folder?

Anyway, you're picking the wrong build variant

Screenshot 2023-12-08 alle 10 11 46

@Duchv2008
Copy link
Author

Duchv2008 commented Dec 8, 2023

@AngeloAvv
I want build native aab or apk file without flutter build command.

New Flutter version has set main.dart in gradle file. That not change even when change flavor in android native.

Currently I am solving it by building via flutter command

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants