繁体   English   中英

无法从应用程序资源中读取 Firebase 选项

[英]Failed to read Firebase options from the app's resources

我收到错误Failed to read Firebase options from the app's resources. Either make sure google-services.json is included in your build or specify options explicitly. Failed to read Firebase options from the app's resources. Either make sure google-services.json is included in your build or specify options explicitly. 在构建统一游戏到 android 时,即使它在编辑器中工作。

我已经尝试了以前问题的所有解决方案。 值得注意的是,我没有 mainTemplate.gradle 文件,并且在 /Plugins/Android 中我没有 firebase 文件夹。 我正在使用 .net 框架,并启用了 arm64。 我在资产文件夹和流资产文件夹中也有 googleservices.json。 还有其他解决方案吗? 谢谢!

当您想构建 android 项目时,您需要一个密钥库文件,而我没有。 这是一个解释如何创建密钥库文件的链接: https://github.com/firebase/quickstart-unity/tree/master/database/testapp

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM