EvilMindDevs / hms-sdk-unity

Unity C# wrapper SDK for Huawei Mobile Services kits.
MIT License
25 stars 23 forks source link

MissingMethodException: Constructor on type 'HuaweiMobileServices.Id.HuaweiIdAuthService' not found. #48

Closed m0skit0 closed 4 years ago

m0skit0 commented 4 years ago

Reported here: https://github.com/EvilMindDevs/hms-unity-plugin/issues/31

MissingMethodException: Constructor on type 'HuaweiMobileServices.Id.HuaweiIdAuthService' not found.
System.RuntimeType.CreateInstanceImpl (System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Object[] args, System.Globalization.CultureInfo culture, System.Object[] activationAttributes, System.Threading.StackCrawlMark& stackMark) (at <00000000000000000000000000000000>:0)
System.Activator.CreateInstance (System.Type type, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Object[] args, System.Globalization.CultureInfo culture, System.Object[] activationAttributes) (at <00000000000000000000000000000000>:0)
System.Activator.CreateInstance (System.Type type, System.Object[] args) (at <00000000000000000000000000000000>:0)
HuaweiMobileServices.Utils.AndroidJavaObjectExtensions.AsWrapper[T] (UnityEngine.AndroidJavaObject javaObject) (at <00000000000000000000000000000000>:0)
HmsPlugin.AccountManager.Start () (at <00000000000000000000000000000000>:0)
m0skit0 commented 4 years ago

HuaweiIdAuthService has the correct constructor as expected by AsWrapper()

public HuaweiIdAuthService(AndroidJavaObject javaObject) : base(javaObject) { }