我有如下指令從https://github.com/firebase/quickstart-unity/blob/master/database/testapp/Assets/TestApp/UIHandler.csInvalidOperationException異常:該火力點實時數據庫尚未正確初始化
我對UnityEditor測試OK,但是當我的Android設備 上運行它扔
InvalidOperationException: The firebase realtime database has not been properly initialized. 11-12 10:39:31.724 28717 28760 I Unity : at Firebase.Database.Core.FirebaseConfigExtensions.CreatePlatform (Firebase.FirebaseApp app) [0x00000] in <filename unknown>:0 11-12 10:39:31.724 28717 28760 I Unity : at Firebase.Database.Internal.Core.Context.GetPlatform() [0x00000] in <filename unknown>:0 11-12 10:39:31.724 28717 28760 I Unity : at Firebase.Database.Internal.Core.Context.EnsureLogger() [0x00000] in <filename unknown>:0 11-12 10:39:31.724 28717 28760 I Unity : at Firebase.Database.Internal.Core.Context.InitServices() [0x00000] in <filename unknown>:0 11-12 10:39:31.724 28717 28760 I Unity : at Firebase.Database.Internal.Core.Context.Freeze() [0x00000] in <filename unknown>:0 11-12 10:39:31.724 28717 28760 I Unity : at Firebase.Database.Internal.Core.RepoManager.CreateLocalRepo (Firebase.Database.Internal.Core.Context ctx, Firebase.Database.Internal.Core.RepoInfo info, Firebase.Database.FirebaseDatabase firebaseDatabase) [0x00000] in <filename unknown>:0 11-12 10:39:31.724 28717 28760 I Unity : at Firebase.Database.Internal.Core.RepoManager.CreateRepo (Firebase.Database.Internal.Core.Context ctx, Firebase.Database.Internal.Core.RepoInfo info, Firebase.Database.Fireba
我沒有發現這個問題的建議。任何這樣的理想?
我使用auth和analytic進行了測試,它工作。