我也遇到了相同的问题,打包后在Windows平台运行,但是提示如下。(已经运行过CopyAotDllS指令并重新打包,问题依旧没有得到解决。)求各位大佬帮助。
WindowsPlayer “PCBJ2302014” System.ExecutionEngineException: metadata type not match
at HybridCLR.RuntimeApi.LoadMetadataForAOTAssembly (System.Byte[] dllBytes, HybridCLR.HomologousImageMode mode) [0×00000] in <00000000000000000000000000000000>:0
at ET.HybridCLRHelper.Load () [0×00000] in <00000000000000000000000000000000>:0
at ET.CodeLoader.Start () [0×00000] in <00000000000000000000000000000000>:0
at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0×00000] in <00000000000000000000000000000000>:0
at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run () [0×00000] in <00000000000000000000000000000000>:0
at System.Threading.Tasks.AwaitTaskContinuation.RunCallback (System.Threading.ContextCallback callback, System.Object state, System.Threading.Tasks.Task& currentTask) [0×00000] in <00000000000000000000000000000000>:0
at System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation.Run (System.Threading.Tasks.Task ignored, System.Boolean canInlineContinuationTask) [0×00000] in <00000000000000000000000000000000>:0
at System.Threading.Tasks.Task.FinishContinuations () [0×00000] in <00000000000000000000000000000000>:0
at System.Threading.Tasks.Task`1[TResult].TrySetResult (TResult result) [0×00000] in <00000000000000000000000000000000>:0
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].SetResult (TResult result) [0×00000] in <00000000000000000000000000000000>:0
at ET.AssetsBundleHelper.LoadBundle (System.String assetBundleName, System.Boolean isbuyweb) [0×00000] in <00000000000000000000000000000000>:0
at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0×00000] in <00000000000000000000000000000000>:0
at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run () [0×00000] in <00000000000000000000000000000000>:0
at ET.AssetsBundleHelper.CheckHotfixAsync () [0×00000] in <00000000000000000000000000000000>:0
at ET.AssetComponent.CheckAllBundlePackageUpdate (System.Collections.Generic.Dictionary`2[TKey,TValue] bundlePackageNames, System.Boolean IsfirstStartGame) [0×00000] in <00000000000000000000000000000000>:0
at ET.AssetComponent.CalcNeedUpdateBundleFileCRC (ET.UpdateBundleDataInfo updateBundleDataInfo, System.String bundlePackageName, System.String[] remoteVersionData, System.String[] localVersionData) [0×00000] in <00000000000000000000000000000000>:0
at ET.AssetComponent.CheckFileCRC (System.String remoteVersionDataLine, System.String bundlePackageName, System.Collections.Generic.Dictionary`2[TKey,TValue] needUpdateBundles, ET.ETTask finishTcs) [0×00000] in <00000000000000000000000000000000>:0
at ET.VerifyHelper.GetFileCRC32 (System.String filePath) [0×00000] in <00000000000000000000000000000000>:0
at UnityEngine.AsyncOperation.InvokeCompletionEvent () [0×00000] in <00000000000000000000000000000000>:0
--- End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_0 (System.Object state) [0×00000] in <00000000000000000000000000000000>:0
at ET.ThreadSynchronizationContext.Update () [0×00000] in <00000000000000000000000000000000>:0
at ET.Game.Update () [0×00000] in <00000000000000000000000000000000>:0