title: How to use Gradle 4.0 in Android Studio 2.3
body: <p>Here is the steps I took on my Mac Mini:</p>
  
  <ol>
  <li>I run this homebrew in the terminal on Android Studio: 
  <code>$ brew update &amp;&amp; brew install gradle</code></li>
  <li>I then ran this line in the same terminal: <code>./gradlew wrapper --gradle-version=4.0 --distribution-type=bin</code></li>
  <li>Then I changed the <code>distributionUrl</code> in the <code>gradle-wrapper.properties</code> file to <code>distributionUrl=https\://services.gradle.org/distributions/gradle-4.0-all.zip</code></li>
  <li><p>I then changed the project's (top-level) build.gradle file's <code>buildscript</code> to:</p>
  
  <pre><code>buildscript {
      repositories {
          maven { url 'https://maven.google.com' }
          jcenter()
          mavenCentral()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:3.0.0-alpha1'
          classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
          classpath 'com.google.gms:google-services:3.0.0'
      }
  }
  </code></pre></li>
  </ol>
  
  <p>But I still get the error <code>Error:This Gradle plugin requires Studio 3.0 minimum</code></p>