Work around for gradle bug when using flavors with res dirs