我在UnityEditor上测试好了,但是当我在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进行了测试,它确实有用。