title: gradle: Android Studio inherit buildtype
body: <p>I have in gradle (Android Studio) 4 build types</p>
  
  <pre><code>android {
    buildTypes {
       release { ... }
       debug { ... }
       kindle { ... }
       kindle_debug { ... }
    }
  }
  </code></pre>
  
  <p>And I know, that my <code>src</code> folder can have for each build type one folder. So it ends up into </p>
  
  <pre><code> src/
    -- debug
    -- kindle
    -- kindle_debug
    -- main // used for every project
    -- release
  </code></pre>
  
  <p>At the moment <code>kindle</code> is the same as <code>release</code> and <code>kindle_debug</code> is the same as <code>debug</code>. </p>
  
  <p>How can I avoid to duplicate the src-folders? Is there a way to inherit from <code>release</code> and <code>debug</code> or have I to set the src-folders by myself in the <code>build.gradle</code> file?</p>
  
  <p>Edit: One solution, that seems to work, is to set symlinks, but I want to use Mac OS and Windows OS and not every new user wants to set symlinks by them self.</p>
  
  <p>Edit 2: I use now product flavors, because of that, I can have debug/release and with that google, amazon and samsung. That's the best solution for my purpose.</p>