Error: Could not find com.google.gms:google-services:1.0. when adding google service plugin in build.gradle in android studio

前端 未结 20 987
被撕碎了的回忆
被撕碎了的回忆 2020-12-03 04:12

I am integrating OAuth login for Google+ on my android application, following the tutorial.

According to the tutorial, I should add the Google Service plugin by addi

20条回答
  •  再見小時候
    2020-12-03 04:46

    I was trying to setup firebase for my android app when I faced this problem. Following screenshot should clarify things -

    Couple of things I would like to point out - 1. Once you

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

    This line should be at the bottom of the app level gradle file. Not sure why but putting at the top did not workout for me.

提交回复
热议问题