icapps/flutter-template

Failed to run template project. Specify --flavor

vanlooverenkoen opened this issue · 3 comments

Initializing gradle...
Resolving dependencies...

The Gradle project does not define a task suitable for the requested build.
The android/app/build.gradle file defines product flavors: alpha, beta, dev, prod
You must specify a --flavor option to select one of them.
Finished with error: Gradle build aborted.

Add the option --flavor to make sure you run one of the allowed flavors

https://medium.com/@salvatoregiordanoo/flavoring-flutter-392aaa875f36

Supported flavors

-dev
-alpha
-beta
-prod

Edit your configuration:
image

Add your flavor to the build flavor input field
image

Extra:
When using multiple main.dart files you can specify the correct main.dart file in the dart entry point.

image

The Readme contains some info about environments
https://github.com/icapps/flutter-template#environments

Die --dev kan ook enkel dev zijn lijkt me?

Yes inderdaad. Dat moet dev zijn. Ik pas de screenshot nog even aan.