- Home /
AndroidJNI reports lots of exceptions that don't propagate to Unity
I'm working on a plugin for Android, and I set AndroidJNI.debug = true
. My code is working, and I'm getting the correct output from Java in the C#-side, the JNI itself logs a lot of exceptions. For example:
11-11 19:12:38.084: D/Unity(10003): AndroidJNI_CUSTOM_FindClass()
11-11 19:12:38.092: D/Unity(10003): AndroidJNI_CUSTOM_ExceptionOccurred()
11-11 19:12:38.092: D/Unity(10003): AndroidJNI_CUSTOM_NewGlobalRef()
11-11 19:12:38.131: D/Unity(10003): AndroidJNI_CUSTOM_FindClass()
11-11 19:12:38.131: D/Unity(10003): AndroidJNI_CUSTOM_ExceptionOccurred()
11-11 19:12:38.131: D/Unity(10003): AndroidJNI_CUSTOM_NewGlobalRef()
These exceptions don't propagate to Unity, and my code is working, but these logs don't look healthy, if only from a performance perspective.
Any insight greatly appreciated!
I have the same problem. I use the same call in different Unity project (much smaller) and there is no this problem. So mayby it depends on call place. Did you find some solution?
Your answer
Follow this Question
Related Questions
Is it possible to cast AndroidJavaObject to its java subclass in C#? 1 Answer
What is the difference between AndroidJavaClass.Call and AndroidJavaObject.Call 2 Answers
Bugsense in unity(android) 1 Answer
error running the apk created with Unity on an android device. 0 Answers
Unable to merge android manifests Google Play Games Services 23 Answers