Preface: this is not a question about how to use build types and product flavors in an Android app. I understand the basic concepts involved. This question is more about
Build Types configure the packaging of our app:
shrinkResourcesproguardFileProduct Flavors configure different classes and resources:
Each product flavor can have its own values of the following properties, among others, which are based on the same properties from defaultConfig:
applicationIdminSdkVersiontargetSdkVersionversionCodeversionNameHere's how I distill the difference down to its essence:
buildType is the how of the build.flavor is the what of the build.Expanding on what @CommonsWare said in the comments, the basic idea is that build types are for different builds of your application that aren't functionally different -- if you have a debug and release version of your app, they're the same app, but one contains debugging code, maybe more logging, etc., and the other is streamlined and optimized and possibly obfuscated via ProGuard. With flavors, the intent is that the app is notably different in some way. The clearest example would be a free vs. a paid version of your app, but developers may also differentiate based on where it's being distributed (which could affect in-app billing API use).
There are developers that make many, many different versions of a similar app for different customers -- an example might be a simple app that opens up a web page in a web view, with different URLs and branding for each version -- this is a good use of flavors.
To reiterate, if it's "the same application", modulo some differences that aren't important to the end user, and especially if all of the variants except for one are for your own testing and development use and only one variant will be deployed to end users, then it's a good candidate for build types. If it's "a different" application and multiple variants would be deployed to users, then perhaps it's a candidate for a product flavor.
You've already seen that there are some functionality differences between build types and flavors, in that some options are supported for one but not the other. But the concepts are different even though they're similar, and there's no plan to merge them together.
The build types are used to indicate debug/release mode with different certificates and enabling Proguard or debuggable flag.
The flavors are used to have custom features (for example free or paid version), minimum and target API levels, device and API requirements like the layout, drawable so you can have different code and resources in different flavors.