android - 当“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 登录。
错误屏幕截图以获得更多说明: 错误屏幕截图
解决方案
推荐阅读
- javascript - React Native 中的 Fetch() api 失败 - “未处理的承诺拒绝”
- c++ - 如何在 Visual Studio 2017 中启动 cocos2d-x-3.17 的新 android 游戏项目?
- c++ - Invalid conversion error when trying to keep array from changing when called by a function
- javascript - How do I make div disappear on click and show what is under it
- c# - What's wrong with this async/await method?
- python - 仅 1900 个样本的 10 类图像分类问题的推荐机器学习算法
- c++ - How to give a instance a function from a library in C?
- android - 如何在 Android camera2 API 中同时配置前后两个摄像头?
- java - 如何使用 Typescript 处理来自云函数 (functions.https.HttpsError) 的客户端 (Android) 错误
- php - how to get the correct time with php