I had the same problem, but in my case I did not add any other dependencies, even my problem was solved by simply changing the position of the apply plugin: 'com.google.gms.google-services' in the build.gradle file (Modile: app )
Line
apply plugin: 'com.google.gms.google-services'
was recorded last in the gradle file. Remove it from here and add it at the top, under the line apply plugin: 'com.android.application' Like this:
apply plugin: 'com.android.application' apply plugin: 'com.google.gms.google-services'
and synchronization. The problem is resolved.
Rahul Sharma Feb 06 '17 at 8:16 2017-02-06 08:16
source share