Gradle Error:Execution failed for task ':app:processDebugGoogleServices'

前端 未结 24 1951
灰色年华
灰色年华 2020-11-30 01:09

I am following this link to integrate Google sign-in in my android app.https://developers.google.com/identity/sign-in/android/start-integrating As given in last step on the

24条回答
  •  -上瘾入骨i
    2020-11-30 01:22

    Important note: You should only apply plugin at bottom of build.gradle (App level)

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

    I mistakenly apply this plugin at top of the build.gradle. So I get error.

    One more tips : You no need to remove even you use the 3.1.0 or above. Because google not officially announced

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

提交回复
热议问题