title: Could not find method has() for arguments
body: <p>I'm Getting Following error while building my Android project.</p>
  
  <blockquote>
    <p>Error:Could not find method has() for arguments [release] on project ':volley' of type org.gradle.api.Project.</p>
  </blockquote>
  
  <p>Following are my build.gradle files </p>
  
  <p>Project Level:</p>
  
  <pre><code>// Top-level build file where you can add configuration options common to all sub-projects/modules.
  
  buildscript {
      repositories {
          jcenter()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:2.2.0'
          classpath 'com.google.gms:google-services:3.0.0'
          // NOTE: Do not place your application dependencies here; they belong
          // in the individual module build.gradle files
      }
  }
  
  allprojects {
      repositories {
          jcenter()
      }
  }
  
  task clean(type: Delete) {
      delete rootProject.buildDir
  }
  </code></pre>
  
  <p>App level:</p>
  
  <pre><code>buildscript {
      repositories {
          maven { url 'https://maven.fabric.io/public' }
      }
  
      dependencies {
          classpath 'io.fabric.tools:gradle:1.+'
      }
  }
  apply plugin: 'com.android.application'
  apply plugin: 'io.fabric'
  
  repositories {
      maven { url 'https://maven.fabric.io/public' }
  }
  
  //apply plugin: 'realm-android'
  
  android {
      compileSdkVersion 23
      buildToolsVersion "23.0.3"
  
      defaultConfig {
          applicationId "com.haha.sampleappid"
          minSdkVersion 16
          targetSdkVersion 23
          versionCode 1
          versionName "1.0"
      }
      buildTypes {
          release {
              minifyEnabled true
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
  }
  
  dependencies {
      compile fileTree(dir: 'libs', include: ['*.jar'])
      testCompile 'junit:junit:4.12'
      compile 'com.android.support:appcompat-v7:23.0.1'
      compile 'com.android.support:design:23.0.1'
      compile 'com.google.firebase:firebase-core:9.4.0'
      compile 'com.google.firebase:firebase-messaging:9.4.0'
      compile 'com.google.firebase:firebase-auth:9.4.0'
      compile 'com.google.android.gms:play-services-auth:9.4.0'
      compile project(':volley') //TODO:add as gradle dependency which will be while enabling proguard
      compile('com.digits.sdk.android:digits:1.11.1@aar') {
          transitive = true;
      }
      compile "com.android.support:recyclerview-v7:23.0.1"
      compile 'com.google.firebase:firebase-ads:9.4.0'
  }
  
  apply plugin: 'com.google.gms.google-services'
  </code></pre>
  
  <p>volley/build.gradle</p>
  
  <pre><code>// NOTE: The only changes that belong in this file are the definitions
  // of tool versions (gradle plugin, compile SDK, build tools), so that
  // Volley can be built via gradle as a standalone project.
  //
  // Any other changes to the build config belong in rules.gradle, which
  // is used by projects that depend on Volley but define their own
  // tools versions across all dependencies to ensure a consistent build.
  //
  // Most users should just add this line to settings.gradle:
  //     include(":volley")
  //
  // If you have a more complicated Gradle setup you can choose to use
  // this instead:
  //     include(":volley")
  //     project(':volley').buildFileName = 'rules.gradle'
  
  buildscript {
      repositories {
          jcenter()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:2.3.0'
      }
  }
  
  apply plugin: 'com.android.library'
  
  repositories {
      jcenter()
  }
  
  android {
      compileSdkVersion 22
      buildToolsVersion = '22.0.1'
  }
  
  apply from: 'rules.gradle'
  apply from: 'bintray.gradle'
  </code></pre>
  
  <p>Has anyone run into a similar problem before?</p>
  
  <p>Advice would be much appreciated.</p>