title: No such property: variantConfiguration for class:
body: <p>After upgrading gradle 4.0.0 app build failed with error message:</p>
  
  <p><strong>No such property: variantConfiguration for class: com.android.build.gradle.internal.variant.ApplicationVariantData</strong></p>
  
  <p>is there any way to migrate gradle ?</p>
  
  <pre><code>android.applicationVariants.all { variant -&gt;
          variant.outputs.all {
              def buildType = variant.variantData.variantConfiguration.buildType.name
              ...
  
          }
      }
  </code></pre>
  
  <p>app level gradle file</p>
  
  <pre><code>dependencies {
          classpath 'com.android.tools.build:gradle:4.0.0'
          classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
      }
  </code></pre>