title: Gradle DSL method not found: exclude()
body: <p>i am using a lot of library in my project. And some libraries using same jar file therefore i writed this on build.gradle : </p>
  
  <pre><code>dependencies {
  compile fileTree(include: ['*.jar', '*.aar'], dir: 'libs')
  testCompile 'junit:junit:4.12'
  compile 'com.android.support:appcompat-v7:25.3.1'
  compile 'com.twotoasters.jazzylistview:library:1.2.1'
  compile 'com.google.firebase:firebase-core:10.2.4'
  compile 'com.google.firebase:firebase-database:10.2.4'
  compile 'com.orhanobut:dialogplus:1.11@aar'
  compile 'com.github.recruit-lifestyle:FloatingView:2.2'
  compile 'com.android.support.constraint:constraint-layout:1.0.2'
  compile 'com.nineoldandroids:library:2.4.0'
  compile ('com.specyci:residemenu:1.6+'){
      exclude group: 'com.nineoldandroids', module: 'library'    }
  compile files('libs/poppyview.jar'){
      exclude group: 'com.nineoldandroids', module: 'library'    }
  </code></pre>
  
  <p>}</p>
  
  <p>And i am getting error : 
  <strong>Error:(54, 0) Gradle DSL method not found: 'exclude()'
  Possible causes:<li>The project 'DopingEng' may be using a version of the Android Gradle plug-in that does not contain the method (e.g. 'testCompile' was added in 1.1.0).
  Upgrade plugin to version 2.3.1 and sync project</li><li>The project 'DopingEng' may be using a version of Gradle that does not contain the method.
  Open Gradle wrapper file</li><li>The build file may be missing a Gradle plugin.
  Apply Gradle plugin</li></strong></p>
  
  <p>Gradle already update , how can i solve this problem ?</p>