Ashwin N Bhanushali
Ashwin N Bhanushali

Reputation: 3882

Gradle Script to generate/clean Multiple Product Flavors

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

Upvotes: 0

Views: 589

Answers (1)

Bryan Herbst
Bryan Herbst

Reputation: 67229

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.

Upvotes: 1

Related Questions