gpt4 book ai didi

android - 在没有 google_play_services.json 或 gradle 的情况下设置 google_app_id

转载 作者:塔克拉玛干 更新时间:2023-11-02 21:42:49 31 4
gpt4 key购买 nike

02-17 18:16:09.870: E/GMPM(12680): GoogleService failed to initialize, status: 10, Missing an expected resource: 'R.string.google_app_id' for initializing Google services. Possible causes are missing google-services.json or com.google.gms.google-services gradle plugin.

我正在尝试删除此错误日志。我可以找到一些关于使用 google_play_services.json 文件解决此类问题的建议,如下链接: GoogleService failed to initialize

但是我的项目没有使用 gradle,所以我会在我的 strings.xml 中添加 google_app_id。现在我很困惑。 google_app_id 到底是什么?有人说是项目编号,有人说是项目 ID...即使在 google_play_services.json 文件中也有一些名为“project_id”、“project_number”、“mobilesdk_app_id”、“client_id”的属性,但仍然没有“google_app_id”属性。

每个应用的独特值(value)是否可以?如果是这样,它将使用项目 ID 或编号,但我不确定。

提前谢谢你。

最佳答案

我找到了另一个解决方案,只需从您的 string.xml 文件中删除“google_app_id”(这样可以避免重复)

关于android - 在没有 google_play_services.json 或 gradle 的情况下设置 google_app_id,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35470591/

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