Open mycks opened 4 years ago
在android上报的错,unity里面测试的时候没有报错 c#--代码 [IFix.Patch] public void RefreshFastGuaJiPoint(object[] data) { ULockConfig uLockConfig = ConfigDataManager.Instance.GetConfigData< ULockConfig >(41); }
如果你一个泛型在线上版本没用过,而且泛型参数是个值类型就会报这错误。 这是il2cpp的限制。
2020-08-21 14:21:52.038 1826-1889/? E/Unity: ExecutionEngineException: Attempting to call method 'ConfigDataManager::GetConfigData' for which no ahead of time (AOT) code was generated.
at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <00000000000000000000000000000000>:0
at IFix.Core.ReflectionMethodInvoker.Invoke (IFix.Core.VirtualMachine virtualMachine, IFix.Core.Call& call, System.Boolean isInstantiate) [0x00000] in <00000000000000000000000000000000>:0
at IFix.Core.ExternInvoker.Invoke (IFix.Core.VirtualMachine vm, IFix.Core.Call& call, System.Boolean isInstantiate) [0x00000] in <00000000000000000000000000000000>:0
at IFix.Core.VirtualMachine.Execute (IFix.Core.Instruction pc, IFix.Core.Value argumentBase, System.Object[] managedStack, IFix.Core.Value* evaluationStackBase, System.Int32 argsCount, System.Int32 methodIndex, System.Int32 refCount, IFi
c#-------------------------------------- [IFix.Patch] public void RefreshFastGuaJiPoint(object[] data) { ULockConfig uLockConfig = ConfigDataManager.Instance.GetConfigData(41);
}