Reputation: 7
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
Upvotes: 1
Views: 160
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