title: In Multi Flavour app, how to avoid duplicate resources
body: <p>If I have 3 flavors flavor1, flavor2 and flavour3, each flavor has Dev,Pat and Prod "sub-flavours" versions which different parameters , but each main flavor have different resources.</p>
  
  <p>So I have now 9 different flavors, but  only 3 different resource folders). I would like the same "sub-flavors" to use the same resources. </p>
  
  <p>How can I do that? I have seen in the documentation about the flavorDimensions but not sure how to configure the resource folder.</p>
  
  <p>At the moment I am using something like </p>
  
  <pre><code>sourceSets {
  
     flavor1_dev{
              res.srcDir  'src/flavor1/res'
          }
  
     flavor1_prod{
              res.srcDir  'src/flavor1/res'
          }
  
     flavor2_dev{
              res.srcDir  'src/flavor2/res'
          }
  
     flavor2_prod{
              res.srcDir  'src/flavor2/res'
          }
  
  }    
  </code></pre>