Found com.google.android.gms:play-services-gcm:8.3.0, but version 8.1.0 is needed

Bakus123 picture Bakus123 · Nov 6, 2015 · Viewed 29.6k times · Source

I just updated Google play services to the latest release - 23 - in the Android SDK Manager. Next I updated dependency in my project to: com.google.android.gms:play-services-gcm:8.3.0

But I got:

Found com.google.android.gms:play-services-gcm:8.3.0, but version 8.1.0 is needed
Found com.google.android.gms:play-services-gcm:8.3.0, but version 8.1.0 is needed
Found com.google.android.gms:play-services-gcm:8.3.0, but version 8.1.0 is needed
Found com.google.android.gms:play-services-gcm:8.3.0, but version 8.1.0 is needed
Found com.google.android.gms:play-services-gcm:8.3.0, but version 8.1.0 is needed
:app:processDebugGoogleServices FAILED
Error:Execution failed for task ':app:processDebugGoogleServices'.
> Please fix the version conflict.

What is wrong? Do you have this problem also?

Answer

Jeff Sutton picture Jeff Sutton · Nov 6, 2015

In your top-level build.gradle file you need to update the dependencies to use

classpath 'com.google.gms:google-services:1.5.0-beta2'

Extra Info: The latest version of this can be found by looking at the entry on JFrog Bintray

Further Update: Yes this has been updated since I answered the question. The latest version is:

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

However, it's always worth following the provided link to find the latest version.