iBicha / EmojiTexture

A Unity plugin to render Emojis ☺ ❤ 🍆 🍑 to a texture
Other
62 stars 9 forks source link

NoSuchMethodError on android 12 and above #29

Closed jevan-smith closed 1 year ago

jevan-smith commented 1 year ago

Error:

java.lang.NoSuchMethodError · no non-static method "Ljava/nio/DirectByteBuffer;.(JI)V"

Stacktrace:

Native Method com.unity3d.player.UnityPlayer.nativeRender() Unknown Source com.unity3d.player.UnityPlayer.access$300() Unknown Source:95 com.unity3d.player.UnityPlayer$e$1.handleMessage() Handler.java:102 ndroid.os.Handler.dispatchMessage() Looper.java:226 ndroid.os.Looper.loopOnce() Looper.java:313 ndroid.os.Looper.loop() Unknown Source:20 com.unity3d.player.UnityPlayer$e.run() unknown UnityEngine.AndroidJNISafe.CheckException() System.IntPtr obj, System.String name, System.String sig UnityEngine.AndroidJNISafe.GetMethodID() System.IntPtr jclass, System.String signature UnityEngine._AndroidJNIHelper.GetConstructorID() System.String className, System.Object[] args UnityEngine.AndroidJavaObject._AndroidJavaObject() System.String text, System.Int32 width, System.Int32 height iBicha.EmojiTexture..ctor() TMPro.TMP_Text tmp_Text iBicha.TMPro.TMProEmojiAsset.HookTMP()

jevan-smith commented 1 year ago

This is an API 31 issue.