首页 > 解决方案 > 当“com.google.gms:google-services:4.3.8”升级到“com.google.gms:google-services:4.3.10”时出现“default_web_client_id”错误

问题描述

当我尝试将 com.google.gms:google-services:4.3.8 升级到 com.google.gms:google-services:4.3.10 时,我遇到了 Google 签名选项的 default_web_client_id 的唯一错误。

buildscript {
    repositories {
        google()
        mavenCentral() // New line
        jcenter()
        maven { url "https://www.jitpack.io" }

    }
    dependencies {

        classpath 'com.android.tools.build:gradle:7.0.1'
        classpath 'com.google.gms:google-services:4.3.10'
        //classpath 'com.google.gms:google-services:4.3.8'

        
    }
}

当我将其降级到 com.google.gms:google-services:4.3.8 时出错。需要做什么来纠正这个问题?

甚至应用程序也运行良好。尽管显示此错误,但我的应用程序正在通过 google 登录。

错误屏幕截图以获得更多说明: 错误屏幕截图

标签: androidauthenticationfirebase-authenticationgoogle-signin

解决方案


推荐阅读