title: Android Gradle: depends on libraries but is not a library itself
body: <p>I'm working on my gradle build for an android product to get product flavors working.</p>
  
  <p>I have following project structure:</p>
  
  <pre><code>at.mkw.inlocs.android - Library Project
  at.mkw.inlocs.android.lib - Library Project - depends on at.mkw.inlocs.android
  at.mkw.inlocs.android.login - App Project - depends on at.mkw.inlocs.android
  at.mkw.inlocs.android.core - App Project - depends on at.mkw.inlocs.android.lib
  at.mkw.inlocs.android.breeding - App Project - depends on at.mkw.inlocs.android.lib
  at.mkw.inlocs.android.localization - App Project - depends on at.mkw.inlocs.android.lib
  at.mkw.inlocs.android.health - App Project - depends on at.mkw.inlocs.android.lib
  </code></pre>
  
  <p>Since adding product flavors to all app and library projects, I am getting an exception when building.</p>
  
  <blockquote>
    <p><img src="https://i.stack.imgur.com/6uTlO.jpg" alt="enter image description here"></p>
  </blockquote>
  
  <p>I am using the newest gradle artifact (com.android.tools.build:gradle:0.9+) and android build tools 19.0.3</p>
  
  <p>Another problem is, that Android Studio doesn't show the at.mkw.inlocs.android.lib module in project view.</p>
  
  <p><img src="https://i.stack.imgur.com/Wwyez.jpg" alt="enter image description here"></p>
  
  <p>After switching to packages view, the module is visible, but has no content.</p>
  
  <p><img src="https://i.stack.imgur.com/uiVAH.jpg" alt="enter image description here"></p>
  
  <p>I have pasted the build.gradle files:</p>
  
  <p><a href="http://pastebin.com/sWhMZRce" rel="nofollow noreferrer">root build script</a></p>
  
  <p><a href="http://pastebin.com/P5UmCMLy" rel="nofollow noreferrer">at.mkw.inlocs.android</a></p>
  
  <p><a href="http://pastebin.com/FibcHCqK" rel="nofollow noreferrer">at.mkw.inlocs.android.lib</a></p>
  
  <p><a href="http://pastebin.com/4v46L6gv" rel="nofollow noreferrer">at.mkw.inlocs.android.login</a></p>
  
  <p><a href="http://pastebin.com/3ciU4X3p" rel="nofollow noreferrer">at.mkw.inlocs.android.core</a></p>
  
  <p><a href="http://pastebin.com/JCtRVDxk" rel="nofollow noreferrer">at.mkw.inlocs.android.localization</a></p>
  
  <p><a href="http://pastebin.com/ETrF4Rjv" rel="nofollow noreferrer">at.mkw.inlocs.android.health</a></p>
  
  <p><a href="http://pastebin.com/GbKHZhje" rel="nofollow noreferrer">at.mkw.inlocs.android.breeding</a></p>