Gradle assemble specific flavor and build

杀马特。学长 韩版系。学妹 提交于 2021-02-07 11:59:42

问题


Running ./gradlew tasks shows options to assemble all builds for a particular flavor, or all flavors for a particular build. Does there exist an option to assemble for a specific flavor and build combination?


回答1:


Yes - you're referring to a specific build variant

./gradlew assembleFlavoraBuildb

Where your flavor is called flavora and your build is buildb

Read more here: http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Building-and-Tasks



来源:https://stackoverflow.com/questions/32981089/gradle-assemble-specific-flavor-and-build

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!