title: After update to Android Studio 2.2 / gradle plugin 2.2.0: "could not get unknown property 'assembleRelease'"
body: <p>After updating <strong>Android Studio</strong> to <strong>version 2.2</strong> and the <strong>Gradle-plugin</strong> to <strong>2.2.0</strong>, I get following error:</p>
  
  <p><strong>"Could not get unknown property 'assembleRelease' for project ':app' of type org.gradle.api.Project."</strong> </p>
  
  <p>When I change the plugin version back to <em>2.1.3</em> the code still works, but that's no long-term option for me.</p>
  
  <p><strong>My code:</strong></p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  dependencies {
  ...
  }
  
  android {
  ...
  }
  
  ...    
  assembleRelease.doLast {
    file('build/outputs/apk/app-release.apk').renameTo("AppName-1.0.0-${project.ext.androidVersionCode}.apk")
  }
  </code></pre>
  
  <p><strong><em>Hint:</em></strong>
  project.ext.androidVersionCode is a variable defined otherwhere and contains a build number. The code in assembleRelease.doLast shall just move/rename the generated apk file.</p>
  
  <p>Thank you for advices!
  tangens</p>