Blake Stevens
Blake Stevens

Reputation: 7

Adding Firebase to Android Application

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

Upvotes: 1

Views: 160

Answers (1)

Bob Snyder
Bob Snyder

Reputation: 38289

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).

Upvotes: 2

Related Questions