Issue
In .gradle
file I wrote productFlavors
block but it didn’t create free
and pro
packages.
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:
- Define product flavors in the build file.
- Create additional source directories for each flavor.
- 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