- Home /
Unity as a Plugin JNI error
So I've added unity as an Activity into my android app. I also added an app that overlays onto the UnityPlayerActivity that calls finish() to close out that activity and return back to my main activity. I've found that if I just quickly start unity and close it, no problem. But, if I let unity run for a little bit (10-20 seconds+) and I tap the button, I get the message in logcat starting with:
JNI DETECTED ERROR IN APPLICATION: use of deleted global reference 0x7d3736
from boolean com.unity3d.player.NativeLoader.unload()
...
From this point on, my UI is entirely stuck and I receive JavaBinder errors:
!!! FAILED BINDER TRANSACTION !!! (parcel size = 1388)
Error in monitored listener. android.os.DeadObjectException: Transaction failed on small parcel; remote process probably died
I'm honestly so lost. How can I close out the UnityPlayerActivity without causing errors?
Your answer
Follow this Question
Related Questions
Unable to locate player settings. bin/Data/settings.xml 3 Answers
android app dont start on device after inistalation 2 Answers
Android Plugin OnCreate() function? (Unity project automatically open android peoject) 0 Answers
Error while importing confluent packages and bundling it into an APK 0 Answers