Failed to resolve: com.google.android.gms:play-services-places:16.0.0

Just place google() before jcenter() In project build.gradle file or just copy and paste below build.gradle code in your project build.gradle file. And build project again see the problem is resolved.

see build.grdle file

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.3.0'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        google()
        jcenter()
    }
}

If it says google() not found (not resolved or etc..) then replace google() with maven url see below.

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        maven {
            url "https://maven.google.com/"
        }
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.3.0'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        maven {
            url "https://maven.google.com/"
        }
        jcenter()
    }
}

Leave a Reply

Your email address will not be published. Required fields are marked *