My app was crashed because of sendmessage before splash screen.

Hello.
I’m Shin.

I have an issue on my app.
It was working on Andorid with UNITY5.3.5.
However, After updating UNITY5.4, it was crashed because of sendmessage when it is starting .
If it is downgrading to 5.3.5, it is able to work.

The crash log is shown the logs which is following .

08-26 15:27:17.861: E/art(28750): Failed to register native method com.unity3d.player.UnityPlayer.nativeUnitySendMessage(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V in /data/app/kemco.execreate.trap-2/base.apk
08-26 15:27:17.861: A/art(28750): art/runtime/jni_internal.cc:774] JNI FatalError called: com/unity3d/player/UnityPlayer

If you have informations, please tell me.

Best

This is because the UnityPlayer classes between Unity 5.3 and 5.4 drastically change. The solution is to replace Unity 5.3 classes.jar in your project with the Unity 5.4 classes.jar file (i.e. that shipped with Unity 5.4).

Where to find the Unity classes.jar file.

  • On Unity 5.4 for Mac OS X:
    /Applications/Unity/Contents/PlaybackEngines/AndroidPlayer/Variations/[“mono” | “il2cpp”]/Release/Classes/classes.jar
  • For Unity 5.4 on Windows 10:
    C:\Program Files\Unity5.3\Editor\Data\PlaybackEngines\AndroidPlayer\Variations[“mono” | “il2cpp”]\Release\Classes\classes.jar