Here is the steps I took on my Mac Mini:
- I run this homebrew in the terminal on Android Studio:
$ brew update && brew install gradle
- I then ran this line in the same terminal:
./gradlew wrapper --gradle-version=4.0 --distribution-type=bin
- Then I changed the
distributionUrl
in thegradle-wrapper.properties
file todistributionUrl=https\://services.gradle.org/distributions/gradle-4.0-all.zip
I then changed the project's (top-level) build.gradle file's
buildscript
to: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' } }
But I still get the error Error:This Gradle plugin requires Studio 3.0 minimum