【发布时间】:2020-04-28 01:42:40
【问题描述】:
我的 Xamarin.Android 应用程序在用户打开应用程序后崩溃,我相信它与 Firebase 有关,但我无法弄清楚。如果您对如何解决此错误有任何建议,能否告诉我?
FirebaseInstanceId.get_Instance() Java.Lang.IllegalStateException:默认 FirebaseApp 未在此过程中初始化“应用程序名称”确保首先调用 FirebaseApp.initializeApp(Context)。
JniEnvironment+StaticMethods.CallStaticObjectMethod(Java.Interop.JniObjectReference 类型,Java.Interop.JniMethodInfo 方法,Java.Interop.JniArgumentValue* args) JniPeerMembers+JniStaticMethods.InvokeObjectMethod(System.String encodedMember,Java.Interop.JniArgumentValue* 参数) FirebaseInstanceId.get_Instance () NewUpdateActivity.RunRegistration(System.Collections.Generic.List`1[T] 类别) AsyncMethodBuilderCore+c.b__7_1(System.Object 状态)
【问题讨论】:
-
错误信息非常明确:
Default FirebaseApp is not initialized in this process "App Name" Make sure to call FirebaseApp.initializeApp(Context) first.你打电话给FirebaseApp.initializeApp(Context)了吗?如果您认为自己做到了,请编辑您的问题以包含 minimum code with which any of us can reproduce the problem(请阅读链接,因为它包含有关如何使某人最有可能提供帮助的有用信息。
标签: firebase xamarin xamarin.android visual-studio-app-center