My App was working fine, then i add com.splunk:mint-android-sdk, which required upper version of gradle, so i upgrade the gradle to from 2.1 to 3.3. after that i am facing i
This version of the gradle plugin doesn't exist.
classpath 'com.android.tools.build:gradle:3.3'
use the latest beta release:
classpath 'com.android.tools.build:gradle:3.0.0-beta6'
Instead if you would like to update gradle, update the distributionUrl
in gradle-wrapper.properties
.
I updated following line of
code: classpath 'com.android.tools.build:gradle:2.3.3'
classpath 'com.google.gms:google-services:3.0.0'
and distributionUrl in gradle-wrapper.properties 'distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip'
and MOST IMPORTANT is FILE>SETTING>Build,Execution,Deployment>Build Tools>Gradles: Project-level settings: checked :Use default gradle wrapper(recommended)
Go to the gradle wrapper properties
and see if the gradle version
in the distribution url matches the one in the build.gradle
classpath's
In my case, I add maven { url 'https://maven.google.com' }
at top of build script.
Inside buildscript add google() then open terminal write command-- gradlew build and press enter.
repositories {
google()
jcenter()
}
NB: Make sure you are in active network connection
You changed Gradle plugin version, not Gradle version
Set your Gradle Plugin version to 2.3
Then open gradle/wrapper/gradle-wrapper.properties
and change Gradle version at line distributionUrl