title: Gradle DSL method not found: 'testCompile()'
body: <p>I am trying to build a project a Project in Android Studio. When I run the app, I get this error:</p>
  <pre><code>Error:(10, 0) Gradle DSL method not found: 'testCompile()'
  Possible causes:
  -The project 'AccurateCalculator' 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.2 and sync project.The project 'AccurateCalculator' may be using a version of Gradle that does not contain the method.
  -Open Gradle wrapper file.The build file may be missing a Gradle plugin. Apply Gradle plugin
  </code></pre>
  <p><code>build.grade</code> of the project has the following code:</p>
  <pre><code>buildscript {
      repositories {
          jcenter()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:2.2.0'
      }
  }
  
  allprojects {
      repositories {
          jcenter()
      }
  }
  </code></pre>
  <p><code>build.gradle</code> of the module has the following code:</p>
  <pre><code>apply plugin: 'com.android.application'
  
  android {
      compileSdkVersion 17
      buildToolsVersion &quot;25.0.2&quot;
  
      defaultConfig {
          applicationId &quot;calculator.app&quot;
          minSdkVersion 14
          targetSdkVersion 17
      }
  
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
          }
      }
  }
  
  dependencies {
      compile 'com.android.support:support-v4:18.0.0'
      compile files('libs/achartengine.jar')
      compile files('libs/arity-2.1.6.jar')
      compile files('libs/ejml-0.21.jar')
      compile files('libs/slider.jar')
  }
  </code></pre>