Gradle flavors for android with custom source sets – what should the gradle files look like?

I think you’d be better off not defining custom sourceSets but using the default gradle configuration. I used to do custom sourcesets until I realized the conventions are, well, convenient. You’ll want something like this: + src + main // this is your common code + java + res + flavor1 + java + res … Read more