javaandroidmavengradleandroid-studio-3.1

Could not find android-maven-gradle-plugin.jar while updating android studio 3.0.1 to 3.1


I am facing with following issue while updating android studio 3.0.1 to 3.1

Could not find android-maven-gradle-plugin.jar (com.github.dcendents:android-maven-gradle-plugin:1.5). Searched in the following locations: https://jcenter.bintray.com/com/github/dcendents/android-maven-gradle-plugin/1.5/android-maven-gradle-plugin-1.5.jar

Below is my build.gradle

buildscript {
    repositories {
        jcenter()
        maven {
            url 'https://maven.google.com/'
            name 'Google'
        }
        maven {
            url 'https://maven.fabric.io/public'
        }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.1.0'
        classpath 'com.google.gms:google-services:3.0.0'
        classpath 'com.novoda:bintray-release:0.3.4'
        classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
        classpath 'io.fabric.tools:gradle:1.24.4'
    }
}

Please help


Solution

  • Got solution, error resolved by updating

    classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
    

    to

    classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'
    

    In gradle-wrapper.properties use this :

    distributionUrl=https://services.gradle.org/distributions/gradle-4.4-all.zip
    

    and update buildToolsVersion to 27.0.3