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:
html

  1. assemble<Variant Name>git

  2. assemble<Build Type Name>ide

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

相關文章
相關標籤/搜索