gpt4 book ai didi

java - google_app_id 丢失且 Google 服务初始化失败

转载 作者:行者123 更新时间:2023-12-02 08:42:01 27 4
gpt4 key购买 nike

我已经从桌面导入了一个已经构建并运行的项目。但是当在我的计算机上尝试时,它给了我以下错误。谷歌应用程序 ID 是什么意思?造成此类错误的原因可能是什么。提前致谢。

日志猫:

02-08 13:14:46.328 23043-23043/ E/GMPM: 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.02-08 13:14:46.328 23043-23043/ E/GMPM: Scheduler not set. Not logging error/warn.02-08 13:14:46.358 23043-23073/ E/GMPM: Uploading is not possible. App measurement disabled02-08 13:14:46.500 23043-23043/E/F: NO ACCOUNT ID

最佳答案

可能你忘了添加

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

到 build.gradle 的底部。

您可以通过 https://firebase.google.com/docs/android/setup 获取更多信息

关于java - google_app_id 丢失且 Google 服务初始化失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35264850/

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