title: Unable to find method 'com.android.build.gradle.api.BaseVariant.getOutputs()Ljava/util/List;'
body: <p>build.gradle</p>
  
  <pre><code>buildscript {
      ext.kotlin_version = '1.1.51'
      repositories {
          jcenter()
          mavenCentral()
          maven { url "https://jitpack.io" }
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:3.0.0'
          classpath 'me.tatarka:gradle-retrolambda:3.6.1'
          classpath 'com.google.gms:google-services:3.1.0'
          classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
      }
  }
  </code></pre>
  
  <p>app/build.gradle</p>
  
  <pre><code>buildscript {
      repositories {
          jcenter()
      }
      dependencies {
          classpath 'com.jakewharton:butterknife-gradle-plugin:8.7.0'
      }
  }
  
  
        android{
              compileSdkVersion = 26  
              buildToolsVersion = "26.0.2"
      defaultConfig {
              minSdkVersion = 16
              targetSdkVersion = 26
  
          }
      ...
      applicationVariants.all { variant -&gt;
  
          variant.outputs.all { output -&gt;
              outputFileName = "newApkName.apk"
          }
      }
  }
  </code></pre>
  
  <p>How to solve issue: </p>
  
  <blockquote>
  <pre><code>Unable to find method 'com.android.build.gradle.api.BaseVariant.getOutputs()Ljava/util/List;'.
  </code></pre>
    
    <p>Possible causes for this unexpected error include:
        Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.) Re-download dependencies and sync
    project (requires network)
        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)
        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.
        In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.</p>
  </blockquote>