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

前端 未结 20 957
被撕碎了的回忆
被撕碎了的回忆 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:54

    I recently updated to Android Studio 2.3 and somehow apply plugin doesn't work.

    After that, I tried various ways and then what work is when I commented out app's build.gradle:

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

    and then I add this to top-level build.gradle (below classpath 'com.android.tools.build:gradle:2.2.3'):

    classpath 'com.google.gms:google-services:3.0.0'
    

    and then it works.

提交回复
热议问题