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

On Android when there are multiple flavors and no --flavor flag is specified then use a default one #22856

Open
tudor07 opened this issue Oct 9, 2018 · 4 comments

Comments

@tudor07
Copy link

@tudor07 tudor07 commented Oct 9, 2018

On Android, when there are multiple flavors defined, and the user runs the app but does not specify a value for the --flavor flag then the following error is shown:

You must specify a --flavor option to select one of them.

This is implemented like that here: https://github.com/flutter/flutter/blob/master/packages/flutter_tools/lib/src/android/gradle.dart#L342

This makes it so that everytime we have to specifiy a value for --flavor.
I would propose when the flag is not specified to just default to the first one.
This will make it faster to start your Flutter app, not having to write --flavor _flavor_ everytime.

@zoechi zoechi added this to the Future milestone Oct 9, 2018
@matthewcook333

This comment has been minimized.

Copy link

@matthewcook333 matthewcook333 commented Dec 7, 2018

Also running into this issue, it is a pain to not be able to just run with default commands. Would be nice to have a default flavor.

@royorange

This comment has been minimized.

Copy link

@royorange royorange commented Feb 14, 2019

+1 Also face the same issue.

@bradyt

This comment has been minimized.

Copy link

@bradyt bradyt commented Aug 19, 2019

@cmwarrington, do you know if flutter should be able to move forward on this? I saw your involvement at the following commits, and made a naive guess you might have an idea for this.

@mewadaArvind

This comment has been minimized.

Copy link

@mewadaArvind mewadaArvind commented Oct 11, 2019

Also face the same issue. please give a answer this question.

@jmagman jmagman added this to Awaiting triage in Tools - Gradle review Jan 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Tools - Gradle review
  
Awaiting triage
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
6 participants
You can’t perform that action at this time.