所以,我不知道这是否是发布这篇文章的地方,但是我已经在项目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
我会感谢你的帮助。很绝望,我一整天都在做这件事。
发布于 2020-12-11 15:29:36
GoogleService-Info.plist
包含用于与Firebase项目通信的iOS应用程序的配置信息,但您说您正在构建Android应用程序。您确定您定义了正确的应用程序类型,并将正确的配置文件添加到Android项目中吗?
https://stackoverflow.com/questions/65252289
复制相似问题