3

I would like to use googlePlayServicesVersion 16.1.0, but than I get

Could not find com.google.android.gms:play-services-location:16.1.0

I have tried adding implementation 'com.google.android.gms:play-services-location:16.0.0' inside app/build.gradle dependencies

I have added googlePlayServicesVersion = "16.1.0" inside android/build.gradle

Gabriele Mariotti
  • 320,139
  • 94
  • 887
  • 841
Mirhat
  • 341
  • 3
  • 7
  • 20

1 Answers1

5

The version com.google.android.gms:play-services-location:16.1.0 doesn't exist.

You can use one of these:

com.google.android.gms:play-services-location:16.0.0
com.google.android.gms:play-services-location:17.0.0

You can also check the in maven google repo:

enter image description here

Gabriele Mariotti
  • 320,139
  • 94
  • 887
  • 841
  • In your `module/build.gradle` file use `dependencies { implementation 'com.google.android.gms:play-services-location:16.0.0' }` – Gabriele Mariotti Oct 17 '19 at 08:45
  • Sorry but my question was bad, I have just found that some external library was using googlePlayServicesVersion for play-services-location – Mirhat Oct 17 '19 at 08:48