Gradle productFlavors not creating package

Issue

In .gradle file I wrote productFlavors block but it didn’t create free and pro packages.

Screenshot:

Screenshot

I don’t know where is the problem :C

I’m using Android Studio 1.5.1 and gradle 1.5.0.

Solution

As the documentation says, you need to create them manually (look at the point 2):

To create different product versions of your app:

  1. Define product flavors in the build file.
  2. Create additional source directories for each flavor.
  3. Add the flavor-specific sources to your project.

Answered By – GVillani82

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published