AngeloAvv / flutter_flavorizr

A flutter utility to easily create flavors in your flutter application
https://pub.dev/packages/flutter_flavorizr
MIT License
468 stars 85 forks source link

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

Open Duchv2008 opened 12 months ago

Duchv2008 commented 12 months ago

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 commented 11 months ago

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 commented 11 months ago

@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