After updating my google play services to rev 28 i\'m getting this error. Im not sure why this is happening as it was working fine before.
here is my build.gradl
I too had the same problem when i was a newbie to Android Development. Though you had everything in place like below
compile 'com.google.android.gms:play-services:10.0.1'
compile 'com.google.firebase:firebase-messaging:10.0.1'
and you might be placed even the below line in your build.gradle(app level)
apply plugin: 'com.google.gms.google-services'
placing the above piece of code at the bottom of your build.gradle file fix your error
More important thing check your build.gradle(project level) file
apply plugin: dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
classpath 'com.google.gms:google-services:3.0.0'
}'
com.google.gms:google-services:3.0.0 is placed or not .it won't support old verisons