[英]Failed to read Firebase options from the app's resources
I get the error 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.
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.
When building the unity game to android, even though it works in the editor.在构建统一游戏到 android 时,即使它在编辑器中工作。
I have tried all the solutions of previous questions.我已经尝试了以前问题的所有解决方案。 Notably, I don't have a mainTemplate.gradle file, and inside /Plugins/Android I don't have a firebase folder.
值得注意的是,我没有 mainTemplate.gradle 文件,并且在 /Plugins/Android 中我没有 firebase 文件夹。 I am using the .net framework, and I enabled arm64.
我正在使用 .net 框架,并启用了 arm64。 I also have the googleservices.json both in the assets folder and streamingassets folder.
我在资产文件夹和流资产文件夹中也有 googleservices.json。 Are there any other solutions?
还有其他解决方案吗? Thanks!
谢谢!
When you want to build to an android project, you need to have a keystore file and I didn't have one.当您想构建 android 项目时,您需要一个密钥库文件,而我没有。 Here is a link to explain how to create the keystore file: https://github.com/firebase/quickstart-unity/tree/master/database/testapp
这是一个解释如何创建密钥库文件的链接: https://github.com/firebase/quickstart-unity/tree/master/database/testapp
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.