- Home /
Facebook SDK throws ExceptionInInitializerError in ActivateApp on Android device. Can it bring the app down?
I've just integrated the Facebook SDK to track Ad App Install. It seemed working so I've deployed the app on Google Play. Anyway, I got an error in my log from some user's device. It was thrown calling FB.ActivateApp(), in fact with the exception of FB.Init(), that is the only code from the SDK I use.
My concern is if it is bringing the app down or not (if it spoils lunching of the app). I wished to find how UnityEngine.AndroidJNISafe.CheckException () to estimate if the exception is handled without causing the app to crash, but I could not find any reference.
Any comments about
damage by the exception
cause of the exception
the exception handling
are most welcome. Cheers
Log:
AndroidJavaException: java.lang.ExceptionInInitializerError
UnityEngine.AndroidJNISafe.CheckException ()
UnityEngine.AndroidJNISafe.CallStaticVoidMethod (IntPtr clazz, IntPtr methodID, UnityEngine.jvalue[] args)
UnityEngine.AndroidJavaObject._CallStatic (System.String methodName, System.Object[] args)
UnityEngine.AndroidJavaObject.CallStatic (System.String methodName, System.Object[] args)
Facebook.AndroidFacebook.CallFB (System.String method, System.String args)
Facebook.AndroidFacebook.ActivateApp (System.String appId)
FB.ActivateApp ()
StartScene.OnFBInitComplete ()
Facebook.AndroidFacebook.OnInitComplete (System.String message)
Probably it is not that damaging as I see game scores co$$anonymous$$g from those devices where the error log occured, anyway, it would be nice to have some deeper insight into UnityEngine.AndroidJNISafe.
Your answer