Could someone tell me if it\'s possible to build only one of my different flavors through the command-line?
At the moment I haven\'t seen the way to execute, for ex
I would simplify the answer given by @CommonsWare because going through the answer i was litte confused.
Consider these are the product flavours
Run
gradlew task
This will list out all Product flavours along with there build types
assemble - Assembles all variants of all applications and secondary packages.
assembleAndroidTest - Assembles all the Test applications.
assembleDebug - Assembles all Debug builds.
assembleDEV - Assembles all DEV builds.
assemblePREPROD - Assembles all PREPROD builds.
assemblePROD - Assembles all PROD builds.
assembleRelease - Assembles all Release builds.
From this you can easily choose the flavours and will generate a build based on that
gradlew assemblePREPROD