我正在尝试将Firebase添加到我的Unity项目中,但是它总是给我一个烦人的错误。我尝试过自己使用generate_xml_from_google_services_json.exe,但是那并没有解决问题。我还尝试编辑generate_xml_from_google_services_json.py python脚本以更改默认位置(设置为“正常”android应用程序路径),但也没有起作用。我完全按照Firebase文档Firebase docs的步骤操作,并将google-services.json文件粘贴到assets文件夹的根目录中,但仍然出现以下错误:
No google-services.json files found in your project so it is not possible to
generate Firebase Android resources file google-services.xml.
Building without Firebase Android resources (google-services.xml) will result in an app that will fail to initialize.
To resolve this problem, follow the setup instructions at https://firebase.google.com/docs/unity/setup#setup_for_android
UnityEngine.Debug:LogError(Object)
Firebase.Editor.GenerateXmlFromGoogleServicesJson:LogErrorIfEnabled(String)
Firebase.Editor.GenerateXmlFromGoogleServicesJson:FindGoogleServicesFile(ConfigFileType, String, FindGoogleServicesFileMode, LogMessage, LogMessage)
Firebase.Editor.GenerateXmlFromGoogleServicesJson:ReadProjectFields()
Firebase.Editor.SettingsWindow:OnFocus()
UnityEditor.DockArea:OnEnable()
之前有人遇到过这个错误吗(因为我找不到其他有这个问题的人),你是如何解决的?