I am using your unity asset - In App Purchase in Unity4.6.1 for building old android game.
But I faced one issue.

This shows following error in logcat.

2019-03-17 23:43:21.129 13600-13600/com.zerosum.fingerfantasy I/IAP: Billing service connected.
2019-03-17 23:43:21.187 13600-13600/com.zerosum.fingerfantasy E/mono: Unhandled Exception: System.ArgumentException: CompareBaseObjectsInternal can only be called from the main thread.
Constructors and field initializers will be executed from the loading thread when loading a scene.
Don't use this function in the constructor or field initializers, instead move initialization code to the Awake or Start function.
at UnityEngine.Object.CompareBaseObjects (UnityEngine.Object lhs, UnityEngine.Object rhs) [0x00000] in <filename unknown>:0
at UnityEngine.Object.op_Inequality (UnityEngine.Object x, UnityEngine.Object y) [0x00000] in <filename unknown>:0
at Sdkbox.IAP.sdkboxIAPCallback (System.String method, System.String jsonString) [0x00000] in /Volumes/Works/Cockcrow_Workshop/Lancers_Work/AOETask/Src/Pinball/Assets/SDKBOX/iap/Assets/IAP.cs:185
at (wrapper native-to-managed) Sdkbox.IAP:sdkboxIAPCallback (intptr,intptr)

What’s wrong with it?
I’ll appreciate if you instruct me so that I can resolve it.

Thank you.


yinjimmy answered


    yinjimmy answered

      Question stats

      • Active
      • Views102 times
      • Answers1 answer
      • Followers1 follower