问题
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