Gradle Build only a flavour

后端 未结 4 2024
迷失自我
迷失自我 2020-12-02 06:47

Could someone tell me if it\'s possible to build only one of my different flavors through the command-line?

At the moment I haven\'t seen the way to execute, for ex

4条回答
  •  温柔的废话
    2020-12-02 07:09

    If your productFlavor is chocolate you can do

    ./gradlew assembleChocolateRelease
    

    or

    ./gradlew assembleChocolateDebug
    

提交回复
热议问题