title: How do I share dependencies between Android modules
body: <p>I have an Android application module (app) and an Android library module (library). Both app and library contain these same dependencies:</p>
  
  <pre><code>dependencies {
      compile 'com.squareup.okhttp:okhttp:2.4.0'
      compile 'com.squareup.retrofit:retrofit:1.9.0'
      compile 'io.reactivex:rxjava:1.0.13'
      compile 'io.reactivex:rxandroid:0.25.0'
  }
  </code></pre>
  
  <p>However when I try to add that block to the <em>project</em> build.gradle, it complains about not knowing the "compile" DSL.</p>
  
  <p>EDIT: I'm asking about putting this dependencies block in the PROJECT build.gradle, to avoid repeating in each module's build.gradle.</p>