gpt4 book ai didi

android - GoogleService 初始化失败,状态 : 10, 缺少名称为 google_app_id 的字符串资源中的 google app id 值

转载 作者:太空宇宙 更新时间:2023-11-03 12:14:02 25 4
gpt4 key购买 nike

我莫名其妙地收到这个错误,它以前工作得很好。这是我所拥有的:

在 app.gradle 依赖中:

implementation "com.google.firebase:firebase-core:16.0.1"
implementation "com.google.firebase:firebase-messaging:17.3.1"

在 app.gradle 文件末尾:

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

在项目gradle文件中:

 dependencies {
classpath 'com.android.tools.build:gradle:3.3.0-alpha10'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'io.fabric.tools:gradle:1.+'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'com.google.gms:google-services:4.1.0'
}

并且 google-services.json 位于我项目的几乎每个文件夹中,只是为了查看它是否正常工作。

但仍然出现上述错误。

最佳答案

更新到 Android Studio 3.3 后,我开始遇到同样的错误。事实证明,com.google.gms:google-services4.1.0 版本在 Android Studio 3.3 中存在一个已知问题。

更新到 com.google.gms:google-services:4.2.0 为我解决了这个问题。

关于android - GoogleService 初始化失败,状态 : 10, 缺少名称为 google_app_id 的字符串资源中的 google app id 值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52374463/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com