Search Unity

Exception: Failed running UnityLinker.exe 2020.3.12f1

Discussion in 'Android' started by monu98, Jul 1, 2021.

  1. monu98

    monu98

    Joined:
    Sep 7, 2020
    Posts:
    5
    hello guys,
    when i am upgrading my project from 2018.4.30f1 to 2020.3.12f1
    i am facing this error when i am trying to build in IL2CPP Scripting Backend

    Exception: Failed running D:\unity_versions\Unity\Hub\Editor\2020.3.12f1\Unity\Editor\Data\il2cpp\build/deploy/netcoreapp3.1/UnityLinker.exe @"D:/bingo world master gitlab/Temp/StagingArea/assets/bin/Data/Managed/response.rsp"

    stdout:
    Fatal error in Unity CIL Linker
    Mono.Linker.MarkException: Error processing method: 'System.Int32 AdvanceUtils.MyUtilities::GetBTicketBonus(System.String,System.Int32,System.Int32)' in assembly: 'DLLTest.dll'
    ---> System.InvalidOperationException: No action for the assembly DLLTest, Version=1.0.7086.27088, Culture=neutral, PublicKeyToken=null defined
    at Mono.Linker.AnnotationStore.GetAction(AssemblyDefinition assembly)
    at Mono.Linker.Steps.MarkStep.IsFullyPreserved(TypeDefinition type)
    at Mono.Linker.Steps.MarkStep.MarkType(TypeReference reference)
    at Mono.Linker.Steps.MarkStep.ProcessMethod(MethodDefinition method)
    at Unity.Linker.Steps.UnityMarkStep.ProcessMethod(MethodDefinition method)
    at Mono.Linker.Steps.MarkStep.ProcessQueue()
    --- End of inner exception stack trace ---
    at Mono.Linker.Steps.MarkStep.ProcessQueue()
    at Mono.Linker.Steps.MarkStep.ProcessPrimaryQueue()
    at Mono.Linker.Steps.MarkStep.Process()
    at Mono.Linker.Steps.MarkStep.Process(LinkContext context)
    at Unity.Linker.Steps.UnityMarkStep.Process(LinkContext context)
    at Mono.Linker.Pipeline.ProcessStep(LinkContext context, IStep step)
    at Unity.Linker.UnityPipeline.ProcessStep(LinkContext context, IStep step)
    at Mono.Linker.Pipeline.Process(LinkContext context)
    at Unity.Linker.UnityDriver.UnityRun(ILogger customLogger)
    at Unity.Linker.UnityDriver.RunDriverWithoutErrorHandling(ILogger customLogger)
    at Unity.Linker.UnityDriver.RunDriver()
    stderr:

    UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at <dc14d30a5e0540ee9311ed6df63d9074>:0)
    UnityEditorInternal.Runner.RunNetCoreProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at <dc14d30a5e0540ee9311ed6df63d9074>:0)
    UnityEditorInternal.AssemblyStripper.RunAssemblyLinker (System.Collections.Generic.IEnumerable`1[T] args, System.String& out, System.String& err, System.String linkerPath, System.String workingDirectory) (at <dc14d30a5e0540ee9311ed6df63d9074>:0)
    UnityEditorInternal.AssemblyStripper.StripAssembliesTo (System.String outputFolder, System.String& output, System.String& error, System.Collections.Generic.IEnumerable`1[T] linkXmlFiles, UnityEditorInternal.UnityLinkerRunInformation runInformation) (at <dc14d30a5e0540ee9311ed6df63d9074>:0)
    UnityEditorInternal.AssemblyStripper.RunAssemblyStripper (UnityEditorInternal.UnityLinkerRunInformation runInformation) (at <dc14d30a5e0540ee9311ed6df63d9074>:0)
    UnityEditorInternal.AssemblyStripper.StripAssemblies (System.String managedAssemblyFolderPath, UnityEditorInternal.BaseUnityLinkerPlatformProvider unityLinkerPlatformProvider, UnityEditorInternal.IIl2CppPlatformProvider il2cppPlatformProvider, UnityEditor.RuntimeClassRegistry rcr, UnityEditor.ManagedStrippingLevel managedStrippingLevel) (at <dc14d30a5e0540ee9311ed6df63d9074>:0)
    UnityEditorInternal.IL2CPPBuilder.Run () (at <dc14d30a5e0540ee9311ed6df63d9074>:0)
    UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at <dc14d30a5e0540ee9311ed6df63d9074>:0)
    UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <2c6e9a95f1dd4e06ad71afcd2684dcb7>:0)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <2c6e9a95f1dd4e06ad71afcd2684dcb7>:0)
    UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <2c6e9a95f1dd4e06ad71afcd2684dcb7>:0)
    UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <2c6e9a95f1dd4e06ad71afcd2684dcb7>:0)
    UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <dc14d30a5e0540ee9311ed6df63d9074>:0)
    UnityEngine.GUIUtilityProcessEvent(Int32, IntPtr, Boolean&)

    Anyone know what this error is and how to solve this ?
    thank you
     
  2. lay_cn

    lay_cn

    Joined:
    Jun 6, 2023
    Posts:
    1
    • I have the same problem. Did you solve it?