Ga.SetOnTracker causes java.lang.NoSuchMethodError Error
opened this issue · comments
Hi all,
I am trying to use custom identifier for google analytics for better track returning and new users.
Here is the code snippet.
Ga.SetOnTracker(Fields.USER_ID, UserId);
This code perfectly working on iOS and I can see the result on Google Analytics wep page;however, I am unable to do same thing in Android Devices.
Below you can see the detailed error.
AndroidJavaException: java.lang.NoSuchMethodError: no method with name='set' signature='(Ljava/lang/String;J)V' in class Lcom/google/android/gms/analytics/Tracker;
java.lang.NoSuchMethodError: no method with name='set' signature='(Ljava/lang/String;J)V' in class Lcom/google/android/gms/analytics/Tracker;
at com.unity3d.player.UnityPlayer.nativeRender(Native Method)
at com.unity3d.player.UnityPlayer.a(Unknown Source)
at com.unity3d.player.UnityPlayer$b.run(Unknown Source)
at UnityEngine.AndroidJNISafe.CheckException () [0x00000] in <filename unknown>:0
at UnityEngine.AndroidJNISafe.GetMethodID (IntPtr obj, System.String name, System.String sig) [0x00000] in <filename unknown>:0
at UnityEngine._AndroidJNIHelper.GetMethodID (IntPtr jclass, System.String methodName, System.String signature, Boolean isStatic) [0x00000] in <filename unknown>:0
at UnityEngine.AndroidJNIHelper.GetMethodID (IntPtr javaClass, System.String methodName, System.String signature, Boolean isStatic) [0x00000] in <filename unkn
Can you please help me on this issue.
Thank you.