Is an Android Project Without Build Variants?
Contents What Is the Use of Build Variant in Android Studio? Build Variants Are the Result of Gradle Using a Specific Set of Rules to Combine Settings, Code...
Contents
What is the use of build variant in Android Studio?
Build variants are the result of Gradle using a specific set of rules to combine settings, code, and resources configured in your build types and product flavors. Although you do not configure build variants directly, you do configure the build types and product flavors that form them.
What is a build type in Gradle in Android?
A build type determines how an app is packaged. By default, the Android plug-in for Gradle supports two different types of builds: debug and release . … The buildTypes block from the module build file in a new project is shown in Example 3-1.