I am trying to create multiple product Flavors of my Application to do that, I have updated my app/build.gradle file with the product flavors like this...
...
productFlavors{
free{
applicationId "com.demoname.free"
}
paid{
applicationId "com.demoname.paid"
}
}
...
And then I have just added new String Resources files to each flavor which went smoothly.
But when I tried to add activities in each flavor I am getting error saying Cannot resolve symbol R in my new product flavor's activity java code.
I tried rebuilding application and tried cleaning application too.
I have checked manifest file of the variants and the package names are correct in those files.
Even the activity names are not conflicting between these variants.
what am I missing?