I know how to create product flavors with gradle.I did successfully created the product flavors and apks as per product flavors.

In my project I have 8 different product flavors.

I want a gradle script by running this script I can generate/clean multiple apks for all the product flavors.

Can anyone please help me?

Additional Information :: I am using android studio 0.8.3

有帮助吗?

解决方案

gradlew build will generate an APK for each variant (flavor + build type).

You can also run gradlew tasks to list all of the tasks available, if you want to generate a few specific variants.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top