简体   繁体   English

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

[英]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.

相关问题 安装 react-native-firebase/app 后,Build 将在 react-native ios 中失败 - After installing react-native-firebase/app it's Build will failed in react-native ios FirebaseError:Firebase:需要提供选项,当没有通过源部署到托管时。 (应用程序/无选项) - FirebaseError: Firebase: Need to provide options, when not being deployed to hosting via source. (app/no-options) 在 Flutter 上读取从 Firebase 更改的值 - Read values that change from Firebase on Flutter 将 Firebase 添加到 flutter 应用程序后,iOS 构建失败 - iOS build failed after adding Firebase to flutter app 从 firebase flutter 读取文档和字段 - Read Documents and fields from firebase flutter Flutter web 和 Firebase 身份验证类型错误:无法读取未定义的属性“应用程序” - Flutter web and Firebase authentication TypeError: Cannot read property 'app' of undefined 从实时数据库读取不工作 Firebase - Read from real time database not working Firebase 无法使用 html 从 firebase 读取数据 - unable to read data from firebase using html 如何从 Android 应用程序中删除 Firebase 用户? - How to delete a Firebase user from Android App? firebase 云错误无法从源加载 function 定义 - firebase cloud error Failed to load function definition from source
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM