title: Multi flavor app based on multi flavor library in Android Gradle
body: <p>My app has several flavors for several markets in-app-billing systems.</p>
  
  <p>I have a single library which shares the base code for all of my projects. So I decided to add those payment systems to this library as product flavors. </p>
  
  <p>The question is can android library have product flavors?</p>
  
  <p>If so, how can I include different flavors in respective flavor of the app?</p>
  
  <p>I searched a lot, and I couldn't find anything about this scenario. The only close thing I found was this in <a href="http://tools.android.com/tech-docs/new-build-system/user-guide">http://tools.android.com/tech-docs/new-build-system/user-guide</a>:</p>
  
  <pre><code>dependencies {
      flavor1Compile project(path: ':lib1', configuration: 'flavor1Release')
      flavor2Compile project(path: ':lib1', configuration: 'flavor2Release')
  }
  </code></pre>
  
  <p>I changed configuration to different things but it did not work!</p>
  
  <p>I'm using android studio 0.8.2.</p>