簡體   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