Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug Android il2cpp build fails due to System.IO.DirectoryNotFoundException after upgrading to 2021.2.2f1

Discussion in 'Editor & General Support' started by csengor, Nov 16, 2021.

  1. csengor

    csengor

    Joined:
    Jan 13, 2019
    Posts:
    3
    Hello,

    I used to be able to get a build of my game in 2021.1.28f and I can still get a build if I chose Mono; however I can't get a il2cpp build.

    What I have tried so far:
    • Delete Library and restart
    • Reinstall 2021.2.2f1

    Build errors:
    Code (csharp):
    1. Internal build system error. BuildProgram exited with code -2147024893.
    2. System.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\Unity\2021.2.2f1\Editor\Data\PlaybackEngines\AndroidPlayer\Variations\il2cpp\Release\StaticLibs\armeabi-v7a\compile.rsp'.
    3.    at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle)
    4.    at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options)
    5.    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
    6.    at System.IO.StreamReader.ValidateArgsAndOpenPath(String path, Encoding encoding, Int32 bufferSize)
    7.    at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks)
    8.    at System.IO.File.InternalReadAllText(String path, Encoding encoding)
    9.    at System.IO.File.ReadAllText(String path)
    10.    at NiceIO.NPath.SystemIOFileSystem.File_ReadAllText(NPath path)
    11.    at NiceIO.NPath.WindowsFileSystem.File_ReadAllText(NPath path)
    12.    at Bee.Core.Stevedore.VirtualFileSystem.File_ReadAllText(NPath path)
    13.    at NiceIO.NPath.RelayingFileSystem.File_ReadAllText(NPath path)
    14.    at Bee.Core.BuildProgramFileSystem.File_ReadAllText(NPath path)
    15.    at NiceIO.NPath.ReadAllText()
    16.    at AndroidPlayerBuildProgram.AndroidPlayerBuildProgram.SetupCompile(AndroidSharedLibraryConfiguration config, String name, AndroidTargetDeviceType deviceType, NPath sourceFilePath)
    17.    at AndroidPlayerBuildProgram.AndroidPlayerBuildProgram.SetupLibUnityLibrary()+MoveNext()
    18.    at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)
    19.    at System.Collections.Generic.List`1.AddRange(IEnumerable`1 collection)
    20.    at AndroidPlayerBuildProgram.AndroidPlayerBuildProgram.SetupPlayerBuild()
    21.    at PlayerBuildProgramLibrary.PlayerBuildProgramBase.RunBuildProgram()
    22.    at PlayerBuildProgramTypeWrapper.Run(String[] args)
    23.    at Program.Main(String[] args)
    24. 0x00007ff601c3815d (Unity) StackWalker::GetCurrentCallstack
    25. 0x00007ff601c3eeb9 (Unity) StackWalker::ShowCallstack
    26. 0x00007ff602b87503 (Unity) GetStacktrace
    27. 0x00007ff60320b4bd (Unity) DebugStringToFile
    28. 0x00007ff600dcd412 (Unity) DebugLogHandler_CUSTOM_Internal_Log
    29. 0x00000252851bd963 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)
    30. 0x00000252851bd5db (Mono JIT Code) UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
    31. 0x00000252851bd320 (Mono JIT Code) UnityEngine.Logger:Log (UnityEngine.LogType,object)
    32. 0x000002536500f895 (Mono JIT Code) UnityEngine.Debug:LogError (object)
    33. 0x000002536500f793 (Mono JIT Code) UnityEditor.Modules.BeeBuildPostprocessor:ReportBuildResults (Bee.BeeDriver.BeeDriverResult)
    34. 0x0000025364f75763 (Mono JIT Code) UnityEditor.Modules.BeeBuildPostprocessor:PostProcess (UnityEditor.Modules.BuildPostProcessArgs)
    35. 0x0000025364f750cb (Mono JIT Code) UnityEditor.Modules.DefaultBuildPostprocessor:PostProcess (UnityEditor.Modules.BuildPostProcessArgs,UnityEditor.BuildProperties&)
    36. 0x0000025364f730eb (Mono JIT Code) UnityEditor.Android.AndroidBuildPostprocessor:PostProcess (UnityEditor.Modules.BuildPostProcessArgs,UnityEditor.BuildProperties&)
    37. 0x0000025364f728b8 (Mono JIT Code) UnityEditor.PostprocessBuildPlayer:Postprocess (UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,int,string,string,string,int,int,UnityEditor.BuildOptions,UnityEditor.RuntimeClassRegistry,UnityEditor.Build.Reporting.BuildReport)
    38. 0x0000025364f72be5 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_int_int_int_object_object_object_int_int_int_object_object (object,intptr,intptr,intptr)
    39. 0x00007ffa2c29e034 (mono-2.0-bdwgc) [mini-runtime.c:3445] mono_jit_runtime_invoke
    40. 0x00007ffa2c1de724 (mono-2.0-bdwgc) [object.c:3064] do_runtime_invoke
    41. 0x00007ffa2c1de8bc (mono-2.0-bdwgc) [object.c:3111] mono_runtime_invoke
    42. 0x00007ff601b5d9d4 (Unity) scripting_method_invoke
    43. 0x00007ff601b58654 (Unity) ScriptingInvocation::Invoke
    44. 0x00007ff603573781 (Unity) CallMono
    45. 0x00007ff60357ac77 (Unity) PostprocessPlayer
    46. 0x00007ff60357677f (Unity) DoBuildPlayer_PostBuild
    47. 0x00007ff60357482e (Unity) DoBuildPlayer
    48. 0x00007ff6035687fd (Unity) BuildPlayer
    49. 0x00007ff6014540bd (Unity) BuildPipeline::BuildPlayerInternalNoCheck
    50. 0x00007ff60127c1bf (Unity) BuildPipeline_CUSTOM_BuildPlayerInternalNoCheck
    51. 0x000002535d2d3d37 (Mono JIT Code) (wrapper managed-to-native) UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck (string[],string,string,UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,int,UnityEditor.BuildOptions,string[],bool)
    52. 0x000002535d2d3453 (Mono JIT Code) UnityEditor.BuildPlayerWindow/DefaultBuildMethods:BuildPlayer (UnityEditor.BuildPlayerOptions)
    53. 0x000002535d2bfd93 (Mono JIT Code) UnityEditor.BuildPlayerWindow:CallBuildMethods (bool,UnityEditor.BuildOptions)
    54. 0x0000025333bb86b3 (Mono JIT Code) UnityEditor.BuildPlayerWindow:GUIBuildButtons (UnityEditor.Modules.IBuildWindowExtension,bool,bool,bool,UnityEditor.Build.BuildPlatform,UnityEditor.Modules.IBuildPostprocessor)
    55. 0x0000025333b9e853 (Mono JIT Code) UnityEditor.BuildPlayerWindow:ShowBuildTargetSettings ()
    56. 0x000002532a0286d3 (Mono JIT Code) UnityEditor.BuildPlayerWindow:OnGUI ()
    57. 0x0000025329b45b7a (Mono JIT Code) UnityEditor.HostView:InvokeOnGUI (UnityEngine.Rect)
    58. 0x0000025329b45993 (Mono JIT Code) UnityEditor.DockArea:DrawView (UnityEngine.Rect)
    59. 0x0000025329b366ab (Mono JIT Code) UnityEditor.DockArea:OldOnGUI ()
    60. 0x0000025328a95c0f (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:DoOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect,System.Action,bool)
    61. 0x0000025329b3481b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,System.Action,bool)
    62. 0x000002535d1d45db (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,System.Action,bool)
    63. 0x000002535d1d4463 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,bool)
    64. 0x000002535d1d3cab (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase,bool,bool)
    65. 0x000002535d1d0fc3 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUI (UnityEngine.UIElements.EventBase,bool,bool)
    66. 0x0000025322f4b1cb (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleEvent (UnityEngine.UIElements.EventBase)
    67. 0x0000025322f33778 (Mono JIT Code) UnityEngine.UIElements.CallbackEventHandler:HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase)
    68. 0x000002535d18e44b (Mono JIT Code) UnityEngine.UIElements.MouseCaptureDispatchingStrategy:DispatchEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
    69. 0x0000025322f3198e (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,bool)
    70. 0x0000025322f3148b (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
    71. 0x0000025322f37abb (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEventQueue ()
    72. 0x0000025322f35ec3 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:OpenGate ()
    73. 0x0000025322f35dfb (Mono JIT Code) UnityEngine.UIElements.EventDispatcherGate:Dispose ()
    74. 0x0000025322f31713 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
    75. 0x0000025322f30dc3 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:Dispatch (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,UnityEngine.UIElements.DispatchMode)
    76. 0x0000025322f30c3b (Mono JIT Code) UnityEngine.UIElements.BaseVisualElementPanel:SendEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.DispatchMode)
    77. 0x000002532403b22b (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel)
    78. 0x000002532403acd3 (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (int,intptr,bool&)
    79. 0x000002532403aa8f (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration:ProcessEvent (int,intptr)
    80. 0x000002532403a9ab (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration/<>c:<.cctor>b__1_2 (int,intptr)
    81. 0x000002532403a7fd (Mono JIT Code) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
    82. 0x000002532403a8b6 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_int_intptr_intptr& (object,intptr,intptr,intptr)
    83. 0x00007ffa2c29e034 (mono-2.0-bdwgc) [mini-runtime.c:3445] mono_jit_runtime_invoke
    84. 0x00007ffa2c1de724 (mono-2.0-bdwgc) [object.c:3064] do_runtime_invoke
    85. 0x00007ffa2c1de8bc (mono-2.0-bdwgc) [object.c:3111] mono_runtime_invoke
    86. 0x00007ff601b5d9d4 (Unity) scripting_method_invoke
    87. 0x00007ff601b58654 (Unity) ScriptingInvocation::Invoke
    88. 0x00007ff601b52005 (Unity) ScriptingInvocation::Invoke<void>
    89. 0x00007ff601c7d58a (Unity) Scripting::UnityEngine::GUIUtilityProxy::ProcessEvent
    90. 0x00007ff602681fe6 (Unity) GUIView::ProcessRetainedMode
    91. 0x00007ff602bb76ab (Unity) GUIView::OnInputEvent
    92. 0x00007ff602681df7 (Unity) GUIView::ProcessInputEvent
    93. 0x00007ff602bb85c7 (Unity) GUIView::ProcessEventMessages
    94. 0x00007ff602bb2173 (Unity) GUIView::GUIViewWndProc
    95. 0x00007ffab965e7e8 (USER32) CallWindowProcW
    96. 0x00007ffab965e229 (USER32) DispatchMessageW
    97. 0x00007ff602b8d553 (Unity) MainMessageLoop
    98. 0x00007ff602b91eeb (Unity) WinMain
    99. 0x00007ff603ea0942 (Unity) __scrt_common_main_seh
    100. 0x00007ffab95a7034 (KERNEL32) BaseThreadInitThunk
    101. 0x00007ffabaec2651 (ntdll) RtlUserThreadStart
    Code (CSharp):
    1. BuildFailedException: Incremental Player build failed!
    2. UnityEditor.Modules.BeeBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at <e314fed7187a40f29f2169b6d14b65cd>:0)
    3. UnityEditor.Modules.DefaultBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <e314fed7187a40f29f2169b6d14b65cd>:0)
    4. UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <fe09d4144b8a453ca8e59e1ecff72d70>:0)
    5. UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.Int32 subtarget, 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 <e314fed7187a40f29f2169b6d14b65cd>:0)
    6. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
    Code (CSharp):
    1. Build completed with a result of 'Failed' in 19 seconds (19384 ms)
    2. 0x00007ff601c3815d (Unity) StackWalker::GetCurrentCallstack
    3. 0x00007ff601c3eeb9 (Unity) StackWalker::ShowCallstack
    4. 0x00007ff602b87503 (Unity) GetStacktrace
    5. 0x00007ff60320b4bd (Unity) DebugStringToFile
    6. 0x00007ff600dcd412 (Unity) DebugLogHandler_CUSTOM_Internal_Log
    7. 0x00000252851bd963 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)
    8. 0x00000252851bd5db (Mono JIT Code) UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
    9. 0x00000252851bd320 (Mono JIT Code) UnityEngine.Logger:Log (UnityEngine.LogType,object)
    10. 0x000002536500f895 (Mono JIT Code) UnityEngine.Debug:LogError (object)
    11. 0x000002535d2d373b (Mono JIT Code) UnityEditor.BuildPlayerWindow/DefaultBuildMethods:BuildPlayer (UnityEditor.BuildPlayerOptions)
    12. 0x000002535d2bfd93 (Mono JIT Code) UnityEditor.BuildPlayerWindow:CallBuildMethods (bool,UnityEditor.BuildOptions)
    13. 0x0000025333bb86b3 (Mono JIT Code) UnityEditor.BuildPlayerWindow:GUIBuildButtons (UnityEditor.Modules.IBuildWindowExtension,bool,bool,bool,UnityEditor.Build.BuildPlatform,UnityEditor.Modules.IBuildPostprocessor)
    14. 0x0000025333b9e853 (Mono JIT Code) UnityEditor.BuildPlayerWindow:ShowBuildTargetSettings ()
    15. 0x000002532a0286d3 (Mono JIT Code) UnityEditor.BuildPlayerWindow:OnGUI ()
    16. 0x0000025329b45b7a (Mono JIT Code) UnityEditor.HostView:InvokeOnGUI (UnityEngine.Rect)
    17. 0x0000025329b45993 (Mono JIT Code) UnityEditor.DockArea:DrawView (UnityEngine.Rect)
    18. 0x0000025329b366ab (Mono JIT Code) UnityEditor.DockArea:OldOnGUI ()
    19. 0x0000025328a95c0f (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:DoOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect,System.Action,bool)
    20. 0x0000025329b3481b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,System.Action,bool)
    21. 0x000002535d1d45db (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,System.Action,bool)
    22. 0x000002535d1d4463 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,bool)
    23. 0x000002535d1d3cab (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase,bool,bool)
    24. 0x000002535d1d0fc3 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUI (UnityEngine.UIElements.EventBase,bool,bool)
    25. 0x0000025322f4b1cb (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleEvent (UnityEngine.UIElements.EventBase)
    26. 0x0000025322f33778 (Mono JIT Code) UnityEngine.UIElements.CallbackEventHandler:HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase)
    27. 0x000002535d18e44b (Mono JIT Code) UnityEngine.UIElements.MouseCaptureDispatchingStrategy:DispatchEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
    28. 0x0000025322f3198e (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,bool)
    29. 0x0000025322f3148b (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
    30. 0x0000025322f37abb (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEventQueue ()
    31. 0x0000025322f35ec3 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:OpenGate ()
    32. 0x0000025322f35dfb (Mono JIT Code) UnityEngine.UIElements.EventDispatcherGate:Dispose ()
    33. 0x0000025322f31713 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
    34. 0x0000025322f30dc3 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:Dispatch (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,UnityEngine.UIElements.DispatchMode)
    35. 0x0000025322f30c3b (Mono JIT Code) UnityEngine.UIElements.BaseVisualElementPanel:SendEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.DispatchMode)
    36. 0x000002532403b22b (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel)
    37. 0x000002532403acd3 (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (int,intptr,bool&)
    38. 0x000002532403aa8f (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration:ProcessEvent (int,intptr)
    39. 0x000002532403a9ab (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration/<>c:<.cctor>b__1_2 (int,intptr)
    40. 0x000002532403a7fd (Mono JIT Code) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
    41. 0x000002532403a8b6 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_int_intptr_intptr& (object,intptr,intptr,intptr)
    42. 0x00007ffa2c29e034 (mono-2.0-bdwgc) [mini-runtime.c:3445] mono_jit_runtime_invoke
    43. 0x00007ffa2c1de724 (mono-2.0-bdwgc) [object.c:3064] do_runtime_invoke
    44. 0x00007ffa2c1de8bc (mono-2.0-bdwgc) [object.c:3111] mono_runtime_invoke
    45. 0x00007ff601b5d9d4 (Unity) scripting_method_invoke
    46. 0x00007ff601b58654 (Unity) ScriptingInvocation::Invoke
    47. 0x00007ff601b52005 (Unity) ScriptingInvocation::Invoke<void>
    48. 0x00007ff601c7d58a (Unity) Scripting::UnityEngine::GUIUtilityProxy::ProcessEvent
    49. 0x00007ff602681fe6 (Unity) GUIView::ProcessRetainedMode
    50. 0x00007ff602bb76ab (Unity) GUIView::OnInputEvent
    51. 0x00007ff602681df7 (Unity) GUIView::ProcessInputEvent
    52. 0x00007ff602bb85c7 (Unity) GUIView::ProcessEventMessages
    53. 0x00007ff602bb2173 (Unity) GUIView::GUIViewWndProc
    54. 0x00007ffab965e7e8 (USER32) CallWindowProcW
    55. 0x00007ffab965e229 (USER32) DispatchMessageW
    56. 0x00007ff602b8d553 (Unity) MainMessageLoop
    57. 0x00007ff602b91eeb (Unity) WinMain
    58. 0x00007ff603ea0942 (Unity) __scrt_common_main_seh
    59. 0x00007ffab95a7034 (KERNEL32) BaseThreadInitThunk
    60. 0x00007ffabaec2651 (ntdll) RtlUserThreadStart
    Code (CSharp):
    1. UnityEditor.BuildPlayerWindow+BuildMethodException: 3 errors
    2.   at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002d8] in <e314fed7187a40f29f2169b6d14b65cd>:0
    3.   at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <e314fed7187a40f29f2169b6d14b65cd>:0
    4. 0x00007ff601c3815d (Unity) StackWalker::GetCurrentCallstack
    5. 0x00007ff601c3eeb9 (Unity) StackWalker::ShowCallstack
    6. 0x00007ff602b87503 (Unity) GetStacktrace
    7. 0x00007ff60320b4bd (Unity) DebugStringToFile
    8. 0x00007ff600dcd412 (Unity) DebugLogHandler_CUSTOM_Internal_Log
    9. 0x00000252851bd963 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)
    10. 0x00000252851bd5db (Mono JIT Code) UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
    11. 0x00000252851bd320 (Mono JIT Code) UnityEngine.Logger:Log (UnityEngine.LogType,object)
    12. 0x000002536500f895 (Mono JIT Code) UnityEngine.Debug:LogError (object)
    13. 0x000002535d2bfe0b (Mono JIT Code) UnityEditor.BuildPlayerWindow:CallBuildMethods (bool,UnityEditor.BuildOptions)
    14. 0x0000025333bb86b3 (Mono JIT Code) UnityEditor.BuildPlayerWindow:GUIBuildButtons (UnityEditor.Modules.IBuildWindowExtension,bool,bool,bool,UnityEditor.Build.BuildPlatform,UnityEditor.Modules.IBuildPostprocessor)
    15. 0x0000025333b9e853 (Mono JIT Code) UnityEditor.BuildPlayerWindow:ShowBuildTargetSettings ()
    16. 0x000002532a0286d3 (Mono JIT Code) UnityEditor.BuildPlayerWindow:OnGUI ()
    17. 0x0000025329b45b7a (Mono JIT Code) UnityEditor.HostView:InvokeOnGUI (UnityEngine.Rect)
    18. 0x0000025329b45993 (Mono JIT Code) UnityEditor.DockArea:DrawView (UnityEngine.Rect)
    19. 0x0000025329b366ab (Mono JIT Code) UnityEditor.DockArea:OldOnGUI ()
    20. 0x0000025328a95c0f (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:DoOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect,System.Action,bool)
    21. 0x0000025329b3481b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,System.Action,bool)
    22. 0x000002535d1d45db (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,System.Action,bool)
    23. 0x000002535d1d4463 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,bool)
    24. 0x000002535d1d3cab (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase,bool,bool)
    25. 0x000002535d1d0fc3 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUI (UnityEngine.UIElements.EventBase,bool,bool)
    26. 0x0000025322f4b1cb (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleEvent (UnityEngine.UIElements.EventBase)
    27. 0x0000025322f33778 (Mono JIT Code) UnityEngine.UIElements.CallbackEventHandler:HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase)
    28. 0x000002535d18e44b (Mono JIT Code) UnityEngine.UIElements.MouseCaptureDispatchingStrategy:DispatchEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
    29. 0x0000025322f3198e (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,bool)
    30. 0x0000025322f3148b (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
    31. 0x0000025322f37abb (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEventQueue ()
    32. 0x0000025322f35ec3 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:OpenGate ()
    33. 0x0000025322f35dfb (Mono JIT Code) UnityEngine.UIElements.EventDispatcherGate:Dispose ()
    34. 0x0000025322f31713 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
    35. 0x0000025322f30dc3 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:Dispatch (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,UnityEngine.UIElements.DispatchMode)
    36. 0x0000025322f30c3b (Mono JIT Code) UnityEngine.UIElements.BaseVisualElementPanel:SendEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.DispatchMode)
    37. 0x000002532403b22b (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel)
    38. 0x000002532403acd3 (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (int,intptr,bool&)
    39. 0x000002532403aa8f (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration:ProcessEvent (int,intptr)
    40. 0x000002532403a9ab (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration/<>c:<.cctor>b__1_2 (int,intptr)
    41. 0x000002532403a7fd (Mono JIT Code) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
    42. 0x000002532403a8b6 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_int_intptr_intptr& (object,intptr,intptr,intptr)
    43. 0x00007ffa2c29e034 (mono-2.0-bdwgc) [mini-runtime.c:3445] mono_jit_runtime_invoke
    44. 0x00007ffa2c1de724 (mono-2.0-bdwgc) [object.c:3064] do_runtime_invoke
    45. 0x00007ffa2c1de8bc (mono-2.0-bdwgc) [object.c:3111] mono_runtime_invoke
    46. 0x00007ff601b5d9d4 (Unity) scripting_method_invoke
    47. 0x00007ff601b58654 (Unity) ScriptingInvocation::Invoke
    48. 0x00007ff601b52005 (Unity) ScriptingInvocation::Invoke<void>
    49. 0x00007ff601c7d58a (Unity) Scripting::UnityEngine::GUIUtilityProxy::ProcessEvent
    50. 0x00007ff602681fe6 (Unity) GUIView::ProcessRetainedMode
    51. 0x00007ff602bb76ab (Unity) GUIView::OnInputEvent
    52. 0x00007ff602681df7 (Unity) GUIView::ProcessInputEvent
    53. 0x00007ff602bb85c7 (Unity) GUIView::ProcessEventMessages
    54. 0x00007ff602bb2173 (Unity) GUIView::GUIViewWndProc
    55. 0x00007ffab965e7e8 (USER32) CallWindowProcW
    56. 0x00007ffab965e229 (USER32) DispatchMessageW
    57. 0x00007ff602b8d553 (Unity) MainMessageLoop
    58. 0x00007ff602b91eeb (Unity) WinMain
    59. 0x00007ff603ea0942 (Unity) __scrt_common_main_seh
    60. 0x00007ffab95a7034 (KERNEL32) BaseThreadInitThunk
    61. 0x00007ffabaec2651 (ntdll) RtlUserThreadStart
    Thank you,
     
  2. DejaMooGames

    DejaMooGames

    Joined:
    Apr 1, 2019
    Posts:
    108
    Do you have the windows build support module added to your unity install? Not the universal one but the il2cpp module.
     
  3. csengor

    csengor

    Joined:
    Jan 13, 2019
    Posts:
    3
    No, I only have the Android module. I just checked Unity Hub and see that a new version (2021.2.3f1) is available. I will download it and the Windows il2cpp module. I will post later today about how it goes.
     
  4. csengor

    csengor

    Joined:
    Jan 13, 2019
    Posts:
    3
    I upgraded to 2021.2.3f1 and installed Android and Windows IL2CPP modules, but I still get the same errors when building to Android with il2cpp. The only difference is that the line
    Code (CSharp):
    1. System.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\Unity\2021.2.2f1\Editor\Data\PlaybackEngines\AndroidPlayer\Variations\il2cpp\Release\StaticLibs\armeabi-v7a\compile.rsp'.
    now reads
    Code (CSharp):
    1. System.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\Unity\2021.2.3f1\Editor\Data\PlaybackEngines\AndroidPlayer\Variations\il2cpp\Release\StaticLibs\armeabi-v7a\compile.rsp'.
    instead.