title: Build script error, unsupported Gradle DSL method found: 'release()'!
body: <p>I am using Android studio 0.50 release and gradle 1.11-all in my gradle wrapper. I have 3 modules and following are the build.gradle files.</p>
  
  <p><strong>Module 1</strong></p>
  
  <pre><code>apply plugin: 'android'
  apply plugin: 'android-test'
  
  android {
  compileSdkVersion 19
  buildToolsVersion '19.0.1'
  
  packagingOptions {
      exclude 'META-INF/ASL2.0'
      exclude 'META-INF/LICENSE'
      exclude 'META-INF/NOTICE'
  }
  
  defaultConfig {
      minSdkVersion 10
      targetSdkVersion 19
      versionCode 1
      versionName "1.0"
  }
  buildTypes {
      release {
          runProguard false
          proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
      }
  }
  
  sourceSets {
      androidTest.setRoot('src/test')
  
  }
  }
  </code></pre>
  
  <p><strong>Module 2</strong></p>
  
  <pre><code>apply plugin: 'android-library'
  apply plugin: 'android-test'
  
  android {
  compileSdkVersion 19
  buildToolsVersion "19.0.1"
  
  defaultConfig {
      minSdkVersion 10
      targetSdkVersion 16
      versionCode 1
      versionName "1.0"
  }
  release {
      runProguard false
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
  }
  sourceSets {
      instrumentTest.setRoot('src/test')
  }
  }
  </code></pre>
  
  <p><strong>project root  build.gralde</strong></p>
  
  <pre><code>buildscript {
  repositories {
      mavenCentral()
      mavenLocal()
      maven {
          url 'https://oss.sonatype.org/content/repositories/snapshots/'
      }
  }
  dependencies {
      classpath 'com.android.tools.build:gradle:0.9.+'
      classpath 'com.squareup.gradle:gradle-android-test-plugin:0.9.1-SNAPSHOT'
      classpath 'com.nineoldandroids:library:2.4.0'
  }
  }
  
  allprojects {
  repositories {
      mavenCentral()
      mavenLocal()
      maven {
          url 'https://oss.sonatype.org/content/repositories/snapshots/'
      }
  }
  }
  </code></pre>
  
  <p>Sorry for the long question, I tried removing the packaging options and mentioned in <a href="https://stackoverflow.com/questions/21881092/build-script-error-unsupported-gradle-dsl-method-found-android">this</a> thread, but no luck. Am I missing anything?</p>