Unity Android il2cpp Turkish Culture Problem

Hi,
When I try to build my Android game as apk, I get these error messages. I use Wndows 10 Pro in Turkish. Unity version: 2021.2.8f1.

Internal build system error. BuildProgram exited with code -2147024893.
System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Program Files\Unity\Hub\Editor\2021.2.8f1\Editor\Data\PlaybackEngines\AndroidPlayer\Variations\�l2cpp\Release\StaticLibs\armeabi-v7a\compile.rsp'.
   at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle)
   at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
   at System.IO.StreamReader.ValidateArgsAndOpenPath(String path, Encoding encoding, Int32 bufferSize)
   at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks)
   at System.IO.File.InternalReadAllText(String path, Encoding encoding)
   at System.IO.File.ReadAllText(String path)
   at NiceIO.NPath.SystemIOFileSystem.File_ReadAllText(NPath path)
   at NiceIO.NPath.WindowsFileSystem.File_ReadAllText(NPath path)
   at Bee.Core.Stevedore.VirtualFileSystem.File_ReadAllText(NPath path)
   at NiceIO.NPath.RelayingFileSystem.File_ReadAllText(NPath path)
   at Bee.Core.BuildProgramFileSystem.File_ReadAllText(NPath path)
   at NiceIO.NPath.ReadAllText()
   at AndroidPlayerBuildProgram.AndroidPlayerBuildProgram.SetupCompile(AndroidSharedLibraryConfiguration config, String name, AndroidTargetDeviceType deviceType, NPath sourceFilePath)
   at AndroidPlayerBuildProgram.AndroidPlayerBuildProgram.SetupLibUnityLibrary()+MoveNext()
   at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)
   at System.Collections.Generic.List`1.AddRange(IEnumerable`1 collection)
   at AndroidPlayerBuildProgram.AndroidPlayerBuildProgram.SetupPlayerBuild()
   at PlayerBuildProgramLibrary.PlayerBuildProgramBase.RunBuildProgram()
   at PlayerBuildProgramTypeWrapper.Run(String[] args)
   at Program.Main(String[] args)
0x00007ff75157f64d (Unity) StackWalker::GetCurrentCallstack
0x00007ff7515863a9 (Unity) StackWalker::ShowCallstack
0x00007ff7524d1ea3 (Unity) GetStacktrace
0x00007ff752b54e0d (Unity) DebugStringToFile
0x00007ff75068af12 (Unity) DebugLogHandler_CUSTOM_Internal_Log
0x000001d3c9501883 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)
0x000001d3c950179b (Mono JIT Code) UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
0x000001d3c95014e0 (Mono JIT Code) UnityEngine.Logger:Log (UnityEngine.LogType,object)
0x000001d3cd9af815 (Mono JIT Code) UnityEngine.Debug:LogError (object)
0x000001d3cd9af713 (Mono JIT Code) UnityEditor.Modules.BeeBuildPostprocessor:ReportBuildResults (Bee.BeeDriver.BeeDriverResult)
0x000001d3cd981333 (Mono JIT Code) UnityEditor.Modules.BeeBuildPostprocessor:PostProcess (UnityEditor.Modules.BuildPostProcessArgs)
0x000001d3cd980c9b (Mono JIT Code) UnityEditor.Modules.DefaultBuildPostprocessor:PostProcess (UnityEditor.Modules.BuildPostProcessArgs,UnityEditor.BuildProperties&)
0x000001d3cd95eb7b (Mono JIT Code) UnityEditor.Android.AndroidBuildPostprocessor:PostProcess (UnityEditor.Modules.BuildPostProcessArgs,UnityEditor.BuildProperties&)
0x000001d3cd95e348 (Mono JIT Code) UnityEditor.PostprocessBuildPlayer:Postprocess (UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,int,string,string,string,int,int,UnityEditor.BuildOptions,UnityEditor.RuntimeClassRegistry,UnityEditor.Build.Reporting.BuildReport)
0x000001d3cd95e675 (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)
0x00007ffb5475e034 (mono-2.0-bdwgc) [mini-runtime.c:3445] mono_jit_runtime_invoke
0x00007ffb5469e724 (mono-2.0-bdwgc) [object.c:3064] do_runtime_invoke
0x00007ffb5469e8bc (mono-2.0-bdwgc) [object.c:3111] mono_runtime_invoke
0x00007ff7514a4e44 (Unity) scripting_method_invoke
0x00007ff75149fa64 (Unity) ScriptingInvocation::Invoke
0x00007ff752ebe721 (Unity) CallMono
0x00007ff752ec5c37 (Unity) PostprocessPlayer
0x00007ff752ec171f (Unity) DoBuildPlayer_PostBuild
0x00007ff752ebf7ce (Unity) DoBuildPlayer
0x00007ff752eb379d (Unity) BuildPlayer
0x00007ff750d95fdd (Unity) BuildPipeline::BuildPlayerInternalNoCheck
0x00007ff750bf4f5f (Unity) BuildPipeline_CUSTOM_BuildPlayerInternalNoCheck
0x000001d3c8b7ad17 (Mono JIT Code) (wrapper managed-to-native) UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck (string[],string,string,UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,int,UnityEditor.BuildOptions,string[],bool)
0x000001d3c8b7a403 (Mono JIT Code) UnityEditor.BuildPlayerWindow/DefaultBuildMethods:BuildPlayer (UnityEditor.BuildPlayerOptions)
0x000001d3c8b76e03 (Mono JIT Code) UnityEditor.BuildPlayerWindow:CallBuildMethods (bool,UnityEditor.BuildOptions)
0x000001d3c82b41c3 (Mono JIT Code) UnityEditor.BuildPlayerWindow:GUIBuildButtons (UnityEditor.Modules.IBuildWindowExtension,bool,bool,bool,UnityEditor.Build.BuildPlatform,UnityEditor.Modules.IBuildPostprocessor)
0x000001d3c82a2183 (Mono JIT Code) UnityEditor.BuildPlayerWindow:ShowBuildTargetSettings ()
0x000001d3c627e753 (Mono JIT Code) UnityEditor.BuildPlayerWindow:OnGUI ()
0x000001d39cf9836a (Mono JIT Code) UnityEditor.HostView:InvokeOnGUI (UnityEngine.Rect)
0x000001d39cf98183 (Mono JIT Code) UnityEditor.DockArea:smile:rawView (UnityEngine.Rect)
0x000001d39cf8b38b (Mono JIT Code) UnityEditor.DockArea:OldOnGUI ()
0x000001d39cf708ef (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:smile:oOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect,System.Action,bool)
0x000001d397f8e45b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,System.Action,bool)
0x000001d3c625d34b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,System.Action,bool)
0x000001d3c625d1b3 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,bool)
0x000001d3c625c9fb (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase,bool,bool)
0x000001d3c6259f53 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUI (UnityEngine.UIElements.EventBase,bool,bool)
0x000001d397ccf69b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleEvent (UnityEngine.UIElements.EventBase)
0x000001d397cb6d78 (Mono JIT Code) UnityEngine.UIElements.CallbackEventHandler:HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase)
0x000001d3c625756b (Mono JIT Code) UnityEngine.UIElements.MouseCaptureDispatchingStrategy:smile:ispatchEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
0x000001d397cb4f8e (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,bool)
0x000001d397cb4a8b (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
0x000001d397cbb0bb (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEventQueue ()
0x000001d397cb94c3 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:OpenGate ()
0x000001d397cb93fb (Mono JIT Code) UnityEngine.UIElements.EventDispatcherGate:smile:ispose ()
0x000001d397cb4d13 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
0x000001d397cb43c3 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:smile:ispatch (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,UnityEngine.UIElements.DispatchMode)
0x000001d397cb423b (Mono JIT Code) UnityEngine.UIElements.BaseVisualElementPanel:SendEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.DispatchMode)
0x000001d397ea88db (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:smile:oDispatch (UnityEngine.UIElements.BaseVisualElementPanel)
0x000001d397ea8383 (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (int,intptr,bool&)
0x000001d397ea813f (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration:ProcessEvent (int,intptr)
0x000001d397ea805b (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration/<>c:<.cctor>b__1_2 (int,intptr)
0x000001d397ea7ead (Mono JIT Code) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
0x000001d397ea7f66 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_int_intptr_intptr& (object,intptr,intptr,intptr)
0x00007ffb5475e034 (mono-2.0-bdwgc) [mini-runtime.c:3445] mono_jit_runtime_invoke
0x00007ffb5469e724 (mono-2.0-bdwgc) [object.c:3064] do_runtime_invoke
0x00007ffb5469e8bc (mono-2.0-bdwgc) [object.c:3111] mono_runtime_invoke
0x00007ff7514a4e44 (Unity) scripting_method_invoke
0x00007ff75149fa64 (Unity) ScriptingInvocation::Invoke
0x00007ff7514993a5 (Unity) ScriptingInvocation::Invoke<void>
0x00007ff7515c4a6a (Unity) Scripting::UnityEngine::GUIUtilityProxy::ProcessEvent
0x00007ff751fcbef6 (Unity) GUIView::ProcessRetainedMode
0x00007ff752501d1b (Unity) GUIView::OnInputEvent
0x00007ff751fcbd07 (Unity) GUIView::ProcessInputEvent
0x00007ff752502c37 (Unity) GUIView::ProcessEventMessages
0x00007ff7524fc7e3 (Unity) GUIView::GUIViewWndProc
0x00007ffbc323e858 (USER32) CallWindowProcW
0x00007ffbc323e299 (USER32) DispatchMessageW
0x00007ff7524d7ec3 (Unity) MainMessageLoop
0x00007ff7524dc90b (Unity) WinMain
0x00007ff7537ed942 (Unity) __scrt_common_main_seh
0x00007ffbc2d77034 (KERNEL32) BaseThreadInitThunk
0x00007ffbc4762651 (ntdll) RtlUserThreadStart
BuildFailedException: Incremental Player build failed!
UnityEditor.Modules.BeeBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at <13c5ad68fffb46969f1ca1df233d1e4d>:0)
UnityEditor.Modules.DefaultBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <13c5ad68fffb46969f1ca1df233d1e4d>:0)
UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <7d63e054662d4a66a7ebdbe51d59ae2c>:0)
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 <13c5ad68fffb46969f1ca1df233d1e4d>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

I think the problem is folder name “il2cpp”. Here is a picture.7938949--1015258--Ekran Görüntüsü (420).png

It must be “il2cpp” not “ıl2cpp”. When I change Windows language to English I can build the game. Is there any way to build the game when Windows language set to Turkish?

Hi, try submit a bug report.
Help => Report a bug

1 Like

This bug has been corrected. Please try the latest Unity 2021.2 release: Unity 2021.2.14

2 Likes

Hi,
I tried Unity 2021.2.14f1 but unfortunately I get same errors.

Here is the original issue: https://issuetracker.unity3d.com/issues/windows-il2cpp-cant-build-on-windows-when-system-display-language-is-set-to-turkish

Internally, it looks like our QA team verified that it is corrected on 2021.2.14, so I wonder if you are seeing a different issue. Can you submit a new bug report for this case?

I submitted a bug report a few days ago and QA team said to me it should be fixed in Unity 2021.2.14f1. I will try Unity 2022.1. or older version.

Older versions didn’t work. I updated to 2021.2.14 again and couldn’t fix the problem.


Change region to America. It worked for me

1 Like

I reported the bug to QA Team. Here is the issue: Unity Issue Tracker - [Android][IL2CPP] Build is looking for &quot;�l2cpp&quot; folder instead of &quot;il2cpp&quot; when display language is set to Turkish

I updated to Unity 2021.2.17f1 and the problem is solved.