首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Firebase SDK生成Firebase Android资源文件google-services.xml失败

Firebase SDK生成Firebase Android资源文件google-services.xml失败
EN

Stack Overflow用户
提问于 2020-12-11 13:31:44
回答 1查看 986关注 0票数 0

所以,我不知道这是否是发布这篇文章的地方,但是我已经在项目SDK的Github页面上发布了,没有人回答,所以我想问不会有什么坏处。

我试图通过Firebase进行身份验证和分析。我遵循了他们文档中列出的所有步骤,并使其在某种程度上发挥了作用。

八月开始工作了。我可以注册新用户,它给了我正确的errorCodes (异常)。这是它变得奇怪的地方。统一的一些基本功能停止工作,如改变场景、动态更改文本等。

这就是我一直在犯的错误:

从资产/ Firebase /GoogleService-Info.plist生成Firebase Android资源文件google-services.xml失败。

如果您没有在应用程序中包含有效的Firebase Android资源,它将无法初始化。

"python“"/Users/xxxxx/Documents/ProgrammingCloud/Unity/yyyyy/Assets/Firebase/Editor/generate_xml_from_google_services_json.py”-i“资产/Firebase/GoogleService-Info.plist”-l -plist

无法在plist文件中找到密钥: DATABASE_URL

您可以通过从命令行执行“python”"/Users/xxxxx/Documents/ProgrammingCloud/Unity/yyyyy/Assets/Firebase/Editor/generate_xml_from_google_services_json.py“-i”资产/Firebase/GoogleServiceInfo.plist“-l -plist来诊断此问题。

UnityEngine.Debug:LogError(对象)

Firebase.Editor.GenerateXmlFromGoogleServicesJson:RunResourceGenerator(IEnumerable`1,字符串,布尔值)(在Z:/tmp/tmp.DPw5MV1I7c/firebase/app/client/unity/editor/src/GenerateXmlFromGoogleServicesJson.cs:542)

Firebase.Editor.GenerateXmlFromGoogleServicesJson:ReadBundleIds(String) (at Z:/tmp/tmp.DPw5MV1I7c/firebase/app/client/unity/editor/src/GenerateXmlFromGoogleServicesJson.cs:407) )

Firebase.Editor.GenerateXmlFromGoogleServicesJson:UpdateConfigFileDirectory() (at Z:/tmp/tmp.DPw5MV1I7c/firebase/app/client/unity/editor/src/GenerateXmlFromGoogleServicesJson.cs:295) )

Firebase.Editor.GenerateXmlFromGoogleServicesJson:CheckConfiguration() (at Z:/tmp/tmp.DPw5MV1I7c/firebase/app/client/unity/editor/src/GenerateXmlFromGoogleServicesJson.cs:246) )

Firebase.Editor.GenerateXmlFromGoogleServicesJson:m__1() (at Z:/tmp/tmp.DPw5MV1I7c/firebase/app/client/unity/editor/src/GenerateXmlFromGoogleServicesJson.cs:103) )

( Z:/tmp/tmp.Ujmedx6O9O/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/EditorInitializer.cs:60) ) Google.c__AnonStorey0:<>m__0()

( Z:/tmp/tmp.Ujmedx6O9O/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:409) ) Google.RunOnMainThread:ExecutePollingJobs()

( Z:/tmp/tmp.Ujmedx6O9O/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:541) ) Google.RunOnMainThread:m__1()

Z:/tmp/tmp.Ujmedx6O9O/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:343) Google.RunOnMainThread:RunAction(行动)

Google.RunOnMainThread:ExecuteAllUnnested(Boolean) (at Z:/tmp/tmp.Ujmedx6O9O/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:530) )

( Z:/tmp/tmp.Ujmedx6O9O/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:512) ) Google.RunOnMainThread:ExecuteAll()

UnityEditor.EditorApplication:Internal_CallUpdateFunctions() (at /Users/builduser/buildslave/unity/build/Editor/Mono/EditorApplication.cs:332) )

这是GitHub页面中的文章:https://github.com/firebase/quickstart-unity/issues/892

我会感谢你的帮助。很绝望,我一整天都在做这件事。

EN

回答 1

Stack Overflow用户

发布于 2020-12-11 15:29:36

GoogleService-Info.plist包含用于与Firebase项目通信的iOS应用程序的配置信息,但您说您正在构建Android应用程序。您确定您定义了正确的应用程序类型,并将正确的配置文件添加到Android项目中吗?

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/65252289

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档