title: could not find method minifyEnabled()
body: <p>I'm working on an Android app using Android Studio. When trying to build the app, I get the following error. But I can't figure out how to fix that. All I did before was removing the /build directories from the SVN repository.</p>
  
  <blockquote>
    <p>Error:(16) A problem occurred evaluating project ':app'.</p>
    
    <blockquote>
      <p>Could not find method minifyEnabled() for arguments [false] on BuildTypeDsl_Decorated{name=release, debuggable=false,
      testCoverageEnabled=false, jniDebugBuild=false,
      renderscriptDebugBuild=false, renderscriptOptimLevel=3,
      applicationIdSuffix=null, versionNameSuffix=null, runProguard=false,
      zipAlign=true, signingConfig=null, embedMicroApp=true}.</p>
    </blockquote>
  </blockquote>
  
  <p>Here's the part of the gradle file:</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
      compileSdkVersion 18
      buildToolsVersion "21.1.1"
  
      defaultConfig {
          applicationId "...xxx..."
          minSdkVersion 18
          targetSdkVersion 18
          versionCode 1
          versionName "1.0"
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
  }
  </code></pre>