Added Crashlytics to the project, but it doesn’t seem to be initializing correctly.
I’ve added the Crashlytics GameObjects to the first scene that loads in the game (a loading screen).
I’ve also added a fallback manual initialization to the first script that runs on awake in the project’s loading scene, just in case:
private void Awake ()
{
//init crashlytics
Fabric.Runtime.Fabric.Initialize();
}
However, whenever running the scene from the editor, as soon as the next scene is loaded, I receive the Following fabric warning:
[Fabric] Couldn't find Crashlytics's GameObject
UnityEngine.Debug:LogWarning(Object)
(In fact, it seems like any time a new scene is loaded, I get the same warning)
I’ve built the project and run from Android. When debugging via ADB, If I trigger a non-fatal exception, I get a Null Reference Exception:
NullReferenceException: Object reference not set to an instance of an object
09-27 15:11:15.541 21963 22047 I Unity : at Fabric.Crashlytics.Internal.Impl.ThrowNonFatal () [0x00000] in <filename unknown>:0
09-27 15:11:15.541 21963 22047 I Unity : at Fabric.Crashlytics.Crashlytics.ThrowNonFatal () [0x00000] in <filename unknown>:0
09-27 15:11:15.541 21963 22047 I Unity : at ShopManager.doThrowNonFatal () [0x00000] in <filename unknown>:0
09-27 15:11:15.541 21963 22047 I Unity : at UnityEngine.Events.InvokableCall.Invoke (System.Object[] args) [0x00000] in <filename unknown>:0
09-27 15:11:15.541 21963 22047 I Unity : at UnityEngine.Events.InvokableCallList.Invoke (System.Object[] parameters) [0x00000] in <filename unknown>:0
09-27 15:11:15.541 21963 22047 I Unity : at UnityEngine.Events.UnityEventBase.Invoke (System.Object[] parameters) [0x00000] in <filename unknown>:0
09-27 15:11:15.541 21963 22047 I Unity : at UnityEngine.Events.UnityEvent.Invoke () [0x00000] in <filename unknown>:0
09-27 15:11:15.541 21963 22047 I Unity : at UnityEngine.UI.Button.Press () [0x00000] in <filename unknown>:0
09-27 15:11:15.541 21963 22047 I Unity : at UnityEngine.UI.Button.OnPointerClick (UnityEngine.EventSystems.PointerEventData eventData) [0x00000] in <filename unknown>:0
09-27 15:11:15.541 21963 22047 I Unity : at UnityEngine.EventSystems.ExecuteEvents.Execute (IPointerClickHandler handler, UnityE
Needless to say, I can’t get to the Fabric dashboard.
Any thoughts on what could be causing this issue? Thanks!