ERROR : Exception: ExtractAssemblyTypeInfo: Failed to process Packages/com.unity.analytics/AnalyticsStandardEvents/Unity.Analytics.StandardEvents.dll,

does anyone have any idea how to fix this issue, I upgraded my unity project to 2019.4+
all is working fine, and I can play the game,
but whenever I want to build apk or aab file I get this weird error

Exception: ExtractAssemblyTypeInfo: Failed to process Packages/com.unity.analytics/AnalyticsStandardEvents/Unity.Analytics.StandardEvents.dll…
at System.IO.FileStream…ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0019e] in <9577ac7a62ef43179789031239ba8798>:0
at System.IO.FileStream…ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share) [0x00000] in <9577ac7a62ef43179789031239ba8798>:0
at (wrapper remoting-invoke-with-check) System.IO.FileStream…ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
at Mono.Cecil.ModuleDefinition.GetFileStream (System.String fileName, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share) [0x00006] in <28cdca1704d2491781795499c297b78b>:0
at Mono.Cecil.ModuleDefinition.ReadModule (System.String fileName, Mono.Cecil.ReaderParameters parameters) [0x00008] in <28cdca1704d2491781795499c297b78b>:0
at Mono.Cecil.AssemblyDefinition.ReadAssembly (System.String fileName, Mono.Cecil.ReaderParameters parameters) [0x00000] in <28cdca1704d2491781795499c297b78b>:0
at UnityEditor.AssemblyTypeInfoGenerator…ctor (System.String assembly, System.String searchDirs) [0x00032] in :0
at UnityEditor.AssemblyHelper.ExtractAssemblyTypeInfo (UnityEditor.BuildTarget targetPlatform, System.Boolean isEditor, System.String assemblyPathName, System.String searchDirs) [0x00002] in :0
UnityEditor.AssemblyHelper.ExtractAssemblyTypeInfo (UnityEditor.BuildTarget targetPlatform, System.Boolean isEditor, System.String assemblyPathName, System.String searchDirs) (at :0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

I am having this exact same issue with 2019.3.2. I need to make a standalone build for Windows, but no matter what I try, I keep getting this very error message (on top of a few others). I’ve tried building in a different folder, I’ve tried changing the API compatibility level, I’ve tried uninstalling and reinstalling Unity, I’ve tried upgrading and downgrading. I’ve pretty much tried everything I can find that doesn’t involve digging through the code (I am completely unfamiliar with that sort of thing; this is for a school project that revolves around audio implementation into simple games). Below is a screenshot of the error messages I’ve been getting every time I try to make a build.


I’ve been trying since last night to find a solution, and this is the only instance I could find of this particular problem. I’m frustrated that no fix has been found for it. I’m just here to say you’re not the only one having this problem, OP, and I hope somebody figures this out soon.