简体   繁体   English

如何在gradle中并行生成productFlavors

[英]How to generate productFlavors in parallel in gradle

I have created different productFlavors of android app so build them in parallel, is there any way to build productFlavors in parallel using gradle. 我已经创建了android app的不同productFlavors,因此可以并行构建它们,有没有办法使用gradle并行构建productFlavors。

I want to generate multiple apk's 我想生成多个apk

Your question is not clear enough, are you trying to build apk files for all the flavors? 您的问题不够明确,您是否正在尝试为所有风格构建apk文件? If that's the case then you can enter this command while you are in the directory where gradle is installed 如果是这种情况,那么您可以在安装gradle的目录中输入此命令

gradlew clean assembleFlavoreOne assembleFlavorTwo assembleFlavorThree

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM