Build only by default (no flavors / options)

I have a bunch of products specific to my build. However, in some scenarios I want to build without taste.

However, when I try to create an odorless release, i.e.

gradlew assembleRelease 

He goes through and builds all the options that take a lot of time. I would like to start building releases and ignore all tastes. Is it possible?

I'm sure I can add an empty fragrance called "default" and create it. It seems like I should not do this.

EDIT:

 defaultConfig { resValue "string", "hello", "Hello default" } productFlavors { foo { resValue "string", "hello", "Hello Foo" } bar { resValue "string", "hello", "Hello Bar" } } 

It seems the answer at the moment is to provide your own "default" taste

 productFlavors { defaults { // yup its empty cause I just want to build with the defaults // that are already defined. } foo { resValue "string", "hello", "Hello Foo" } bar { resValue "string", "hello", "Hello Bar" } } 
+6
source share
1 answer

I learned that the “main thing” is how aroma works. Therefore, I do not need to add an additional folder with google-services.json or anything in it

 productFlavors { main{ } flav1 { applicationId 'id' } } 
+1
source

All Articles