Gradle 实验结果汇总

Building and Tasks

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:

  1. assemble<Variant Name>

  2. assemble<Build Type Name>

  3. assemble<Product Flavor Name>

#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.

https://avatarqing.gitbooks.io/gradlepluginuserguidechineseverision/content/introduction/README.html

http://blog.csdn.net/qinxiandiqi/article/category/2394347


你可能感兴趣的:(Gradle 实验结果汇总)