0

How to solve this error?

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

I have given my dependency screenshot here.please help me out..

enter image description here

Gabriele Mariotti
  • 320,139
  • 94
  • 887
  • 841
  • Possible duplicate of [Failed to resolve: com.google.firebase:firebase-core:9.0.0](https://stackoverflow.com/questions/37310188/failed-to-resolve-com-google-firebasefirebase-core9-0-0) – Radesh Aug 21 '19 at 10:02
  • how to solve -> don't use this dependency. It's goddamn huge and you need only the smaller components – Tim Aug 21 '19 at 10:04

2 Answers2

0

You can check in the google maven repo

The last com.google.android.gms:play-services full-module is 12.0.1.

The dependency com.google.android.gms:play-services:16.0.1 doesn't exist.
Use only the single play-services components you need.

Gabriele Mariotti
  • 320,139
  • 94
  • 887
  • 841
0
Add this to project build.gradle

buildscript {
    repositories {
        google()
        jcenter()
        mavenCentral()
        }

    }
    dependencies {

        classpath 'com.google.gms:google-services:4.0.1'

    }
}
Marium Jawed
  • 391
  • 4
  • 9