3

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?

I have tried options on this and this link

Community
  • 1
  • 1
Akshay Khale
  • 8,151
  • 8
  • 50
  • 58
  • 1
    Removed the `r` tag, which is referred to the statistical programming language. – nicola Apr 03 '16 at 19:38
  • I think you completely changed the package name, therefore none of your resource variables will be resolvable. Are you sure that's how you implement product flavors? – OneCricketeer Apr 03 '16 at 19:40

0 Answers0