Skip to content

Instantly share code, notes, and snippets.

@Tahmeed156
Last active October 21, 2018 06:46
Show Gist options
  • Save Tahmeed156/e61789fb27459d36d78276dbb60b3e19 to your computer and use it in GitHub Desktop.
Save Tahmeed156/e61789fb27459d36d78276dbb60b3e19 to your computer and use it in GitHub Desktop.
Gradle error: Minimum supported Gradle version is 4.1 and method not found: 'google()' -- Problems with gradle installation
buildscript {
repositories {
maven {
url 'https://maven.google.com'
} // Instead of google() to make it work
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
classpath 'com.google.gms:google-services:3.1.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
....
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment