1

I followed this tutorial.

I've done a quite of bit of research trying to fix this problem. I updated google services and google repository in the sdk manager. Iv'e tried about everything that was suggested but still can't sync my android project and now I can't even build or run my project since I first tried to sync. Here is a screen shot of my project. Everything went well until this point.

Error

enter image description here

Vega
  • 27,856
  • 27
  • 95
  • 103
  • Possible duplicate of [Unable to update the Firebase dependency(com.google.firebase)](https://stackoverflow.com/questions/40858208/unable-to-update-the-firebase-dependencycom-google-firebase) – Rapunzel Van Winkle Oct 07 '17 at 01:24

1 Answers1

2

The build.gradle file you posted is the project-level file. Remove the last line:

apply plugin: 'com.google.gms.google-services'

and instead, place it as the last line of your app module build.gradle file (the one under app).

Bob Snyder
  • 37,759
  • 6
  • 111
  • 158