We previously saw that each Build Type creates its own assemble<name> task, but that Build Variants are a combination of Build Type and Product Flavor.
When Product Flavors are used, more assemble-type tasks are created. These are:
html
assemble<Variant Name>git
assemble<Build Type Name>ide
assemble<Product Flavor Name>gradle
#1 allows directly building a single variant. For instance assembleFlavor1Debug.
#2 allows building all APKs for a given Build Type. For instance assembleDebug will build both Flavor1Debug and Flavor2Debug variants.
#3 allows building all APKs for a given flavor. For instance assembleFlavor1 will build both Flavor1Debug and Flavor1Release variants.
The task assemble will build all possible variants.ui
https://avatarqing.gitbooks.io/gradlepluginuserguidechineseverision/content/introduction/README.html spa
http://blog.csdn.net/qinxiandiqi/article/category/2394347.net