Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HOT-FIX] - AndroidJavaException: java.lang.NoSuchFieldError: no field "SUPRESS" #316

Open
alkanyunus opened this issue Oct 23, 2024 · 1 comment

Comments

@alkanyunus
Copy link

alkanyunus commented Oct 23, 2024

Hello,

Adjust v5.0.4 installed via UPM

I think a hot-fix should be released asap because of log level issue on Unity wrapper. When you use suppress log level, android throws run time exception:

AndroidJavaException: java.lang.NoSuchFieldError: no "Ljava/lang/Object;" field "SUPRESS" in class "Lcom/adjust/sdk/LogLevel;" or its superclasses java.lang.NoSuchFieldError: no "Ljava/lang/Object;" field "SUPRESS" in class "Lcom/adjust/sdk/LogLevel;" or its superclasses at com.unity3d.player.UnityPlayer.nativeRender(Native Method) at com.unity3d.player.UnityPlayer.-$$Nest$mnativeRender(Unknown Source:0) at com.unity3d.player.B0.handleMessage(Unknown Source:122) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loopOnce(Looper.java:211) at android.os.Looper.loop(Looper.java:300) at com.unity3d.player.C0.run(Unknown Source:24) at UnityEngine.AndroidJNISafe.CheckException () [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.AndroidJNISafe.GetStaticFieldID (System.IntPtr clazz, System.String name, System.String sig) [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine._AndroidJNIHelper.GetFieldID (System.IntPtr jclass, System.String fieldName,

ajoLogLevel = new AndroidJavaClass("com.adjust.sdk.LogLevel").GetStatic<AndroidJavaObject>("SUPRESS");

"SUPRESS" should be replaced with "SUPPRESS".

@uerceg
Copy link
Contributor

uerceg commented Oct 23, 2024

Hello @alkanyunus,

Thanks for the report and nice catch. We'll address this in 5.0.5 patch update. I will keep you posted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants