title: How to inject Android configuration to each subproject with Gradle?
body: <p>Rather than duplicating the android configuration block in each of the sub projects:</p>
  
  <pre><code>android {
      compileSdkVersion 19
      buildToolsVersion "19.0.0"
  
      defaultConfig {
          minSdkVersion 9
          targetSdkVersion 14
      }
  }
  </code></pre>
  
  <p>I would much rather put this in the top-level/root gradle build file like:</p>
  
  <pre><code>subprojects{
      android {
          compileSdkVersion 19
          buildToolsVersion "19.0.0"
  
          defaultConfig {
              minSdkVersion 9
              targetSdkVersion 14
          }
      }
  }
  </code></pre>
  
  <p>However, this doesn't work. :(</p>
  
  <p>Error:
  "..Could not find method android() for arguments..."</p>