title: How to import android project as library and NOT compile it as apk (Android studio 1.0)
body: <p>I tried to import a project(projLib) as dependency for another project(projAPK).</p>
  
  <p>projAPK gradle has this :</p>
  
  <pre><code>dependencies {
      compile project(':libs:NewsAPI')
      compile project(':projLib')
  }
  </code></pre>
  
  <p>but when i sync the gradle it gives this error:</p>
  
  <blockquote>
    <p>Error:Dependency Android_2015:projLib:unspecified on project projAPK resolves to an APK archive which is not supported as a compilation dependency. File: /Users/myname/Documents/Development/Android_2015/libs/projAPK/build/outputs/apk/projLib-release-unsigned.apk</p>
  </blockquote>
  
  <p>so I guess there are two solution to this:</p>
  
  <ol>
  <li>somehow make gradle think that projLib is a library that shouldn't be compiled to apk</li>
  <li>somehow make gradle NOT compile the projLib explicitly</li>
  </ol>
  
  <p>The problem is, I couldn't find how to do any of that.
  Would be awesome if you guys can help :)</p>