简体   繁体   中英

Gradle assemble specific flavor and build

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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