title: Android Studio 3.0 - Unable to find method 'com.android.build.gradle.internal.variant.BaseVariantData.getOutputs()Ljava/util/List'
body: <p>Trying to start a new Kotlin project with Android Studio 3.0 Canary 1 displays this error. Full trace:</p>
  
  <blockquote>
    <p>Error:Unable to find method
    'com.android.build.gradle.internal.variant.BaseVariantData.getOutputs()Ljava/util/List;'.
    Possible causes for this unexpected error include:<ul><li>Gradle's
    dependency cache may be corrupt (this sometimes occurs after a network
    connection timeout.) Re-download dependencies
    and sync project (requires network)</li><li>The state of a Gradle
    build process (daemon) may be corrupt. Stopping all Gradle daemons may
    solve this problem. Stop Gradle build
    processes (requires restart)</li><li>Your project may be using a
    third-party plugin which is not compatible with the other plugins in
    the project or the version of Gradle requested by the
    project.</li></ul>In the case of corrupt Gradle processes, you can
    also try closing the IDE and then killing all Java processes.</p>
  </blockquote>
  
  <p>I've tried the first two options and the third-party plugins are left as default.</p>
  
  <p><strong>gradle-wrapper.properties</strong></p>
  
  <pre><code>#Thu May 18 08:36:52 BST 2017
  distributionBase=GRADLE_USER_HOME
  distributionPath=wrapper/dists
  zipStoreBase=GRADLE_USER_HOME
  zipStorePath=wrapper/dists
  distributionUrl=https\://services.gradle.org/distributions/gradle-4.0-milestone-1-all.zip
  </code></pre>
  
  <p><strong>build.gradle</strong></p>
  
  <pre><code>// Top-level build file where you can add configuration options common to all sub-projects/modules.
  
  buildscript {
      ext.kotlin_version = '1.1.2-3'
      repositories {
          maven { url 'https://maven.google.com' }
          jcenter()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:3.0.0-alpha1'
          classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  
          // NOTE: Do not place your application dependencies here; they belong
          // in the individual module build.gradle files
      }
  }
  
  allprojects {
      repositories {
          jcenter()
          maven { url 'https://maven.google.com' }
          mavenCentral()
      }
  }
  
  task clean(type: Delete) {
      delete rootProject.buildDir
  }
  </code></pre>
  
  <p>I haven't touched any of these values myself, they're left as default. Creating a non-Kotlin new project does not have this problem.</p>