- Home /
Question by
Vu96 · Feb 17, 2019 at 11:45 AM ·
exceptioncrashreportjni
Passing System.Exception to JNI
Hello.
So i've implemented Firebase crashlytics in Unity, made a plugin and a c# wrapper for the java class and everything works fine except one thing.
public static void logException(Exception ex)
{
Crashlytics.logException(ex);
}
This is the java method that sends the exception to crashlytics services. However, when i try to pass an Exception through JNI to call this static method it throws this :
So my question would be, is there a way to pass System.Exception through JNI or convert it to java.Throwable somehow? Thanks!
Comment
whats in your block of code in
"Crashlytics.logException(ex);"
@zereda-games It's Firebase's Crashlytics method. I can try to decompile and check what's inside but i don't think it would help much as it expects the Exception(Throwable) by design.
@zereda-games Any ideas on this? Or should i try to do it differently