title: Unsupported method: AndroidProject.getVariantNames() in Android Studio 3.4
body: <p>I just updated to <strong>Android Studio 3.4 (Canary 5)</strong>. Then I opened my existing project (which worked perfectly on Android Studio 3.3 Beta) and received this error:</p>
  
  <pre><code>ERROR: Unsupported method: AndroidProject.getVariantNames().
  The version of Gradle you connect to does not support that method.
  To resolve the problem you can change/upgrade the target version of Gradle you connect to.
  Alternatively, you can ignore this exception and read other information from the model.
  </code></pre>
  
  <p>Full clean &amp; rebuild, Invalidate cache &amp; restart, re-import project does not work. </p>
  
  <p><strong>gradle-wrapper.properties</strong>:</p>
  
  <pre><code>distributionBase=GRADLE_USER_HOME
  distributionPath=wrapper/dists
  zipStoreBase=GRADLE_USER_HOME
  zipStorePath=wrapper/dists
  distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
  </code></pre>
  
  <p><strong>build.gradle</strong> (project level):</p>
  
  <pre><code>dependencies {
          classpath 'com.android.tools.build:gradle:3.1.3'
  }
  </code></pre>
  
  <p>About Android Studio</p>
  
  <pre><code>Android Studio 3.4 Canary 5
  Build #AI-183.4284.36.34.5141831, built on November 20, 2018
  JRE: 1.8.0_152-release-1248-b01 amd64
  JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
  Linux 4.15.0-39-generic
  </code></pre>
  
  <p>How to solve this?</p>