Can't Build with IL2CPP for Android after 2018.3.0 Update(Empty Project)
There was no problem with versions of 2018.2xxx after I upgraded the Unity to 2018.3 I can't build il2cpp for Android.I can built with Mono but it can be reverse-engineering easily so I have to use il2cpp but I can't. I know I am using the right NDK version and I've already tried to change other settings like target api level-api compability level bla bla bla ... By the way I am trying to build an empty project They changed so many things on this new version embedded jdks, .Net 4.x bla bla bla ... I tried to change all of them and give it a try for each setting none of them works either I always got 2 errors when building Here is a full log Anyone have any idea how to fix this problem? Failed running C:\Program Files\Unity\Editor\Data\il2cpp\build/UnityLinker.exe -out="C:\Users\Umut BAYIR\Documents\UnityGameProjects\BuildDeneme\Temp\StagingArea\assets\bin\Data\Managed\tempStrip" -x="C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Whitelists\Core.xml" -x "C:\Users\Umut BAYIR\Documents\UnityGameProjects\BuildDeneme\Temp\StagingArea\assets\bin\Data\Managed..\platform_native_link.xml" -d "C:\Users\Umut BAYIR\Documents\UnityGameProjects\BuildDeneme\Temp\StagingArea\assets\bin\Data\Managed" --dotnetruntime=il2cpp --dotnetprofile=unityaot --use-editor-options --include-directory="C:\Users\Umut BAYIR\Documents\UnityGameProjects\BuildDeneme\Temp\StagingArea\assets\bin\Data\Managed" --rule-set=Conservative
stdout: Unknown arguments : --include-directory=C:\Users\Umut BAYIR\Documents\UnityGameProjects\BuildDeneme\Temp\StagingArea\assets\bin\Data\Managed stderr:
UnityEngine.Debug:LogError(Object) UnityEditorInternal.Runner:RunProgram(Program, String, String, String, CompilerOutputParserBase) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:128) UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action`1) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:73) UnityEditorInternal.AssemblyStripper:RunAssemblyLinker(IEnumerable`1, String&, String&, String, String) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:192) UnityEditorInternal.AssemblyStripper:StripAssembliesTo(String[], String[], String, String, String&, String&, String, IIl2CppPlatformProvider, IEnumerable`1, BuildTargetGroup, ManagedStrippingLevel) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:124) UnityEditorInternal.AssemblyStripper:RunAssemblyStripper(IEnumerable, String, String[], String[], String, IIl2CppPlatformProvider, RuntimeClassRegistry, ManagedStrippingLevel) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:323) UnityEditorInternal.AssemblyStripper:StripAssemblies(String, IIl2CppPlatformProvider, RuntimeClassRegistry, ManagedStrippingLevel) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:216) UnityEditorInternal.IL2CPPBuilder:Run() (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:203) UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:35) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) The 2nd error log is below --> Exception: C:\Program Files\Unity\Editor\Data\il2cpp\build/UnityLinker.exe did not run properly! UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:130) UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:73) UnityEditorInternal.AssemblyStripper.RunAssemblyLinker (System.Collections.Generic.IEnumerable`1[T] args, System.String& out, System.String& err, System.String linkerPath, System.String workingDirectory) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:192) UnityEditorInternal.AssemblyStripper.StripAssembliesTo (System.String[] assemblies, System.String[] searchDirs, System.String outputFolder, System.String workingDirectory, System.String& output, System.String& error, System.String linkerPath, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Collections.Generic.IEnumerable`1[T] additionalBlacklist, UnityEditor.BuildTargetGroup buildTargetGroup, UnityEditor.ManagedStrippingLevel managedStrippingLevel) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:124) UnityEditorInternal.AssemblyStripper.RunAssemblyStripper (System.Collections.IEnumerable assemblies, System.String managedAssemblyFolderPath, System.String[] assembliesToStrip, System.String[] searchDirs, System.String monoLinkerPath, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, UnityEditor.RuntimeClassRegistry rcr, UnityEditor.ManagedStrippingLevel managedStrippingLevel) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:323) UnityEditorInternal.AssemblyStripper.StripAssemblies (System.String managedAssemblyFolderPath, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, UnityEditor.RuntimeClassRegistry rcr, UnityEditor.ManagedStrippingLevel managedStrippingLevel) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:216) UnityEditorInternal.IL2CPPBuilder.Run () (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:203) UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:35) UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at :0) UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at :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 :0) UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at :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 C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:286) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
There might be another error message after this with more details after this. Can you check for it and provide it here?
Answer by ShadedMelee · Jan 05, 2019 at 04:00 PM
I found the solution! Problem is the system regional settings / locale.
For those experiencing "unknown arguments" error from UnityLinker.exe set your system language / region and locale to English(US) to fix it.
Somehow the UnityLinker.exe expects wrong command line arguments such as "--ınclude..." when system locale is not English.
The error effects both Windows and MacOS - IOS il2cpp builds.
Thank you man it really worked.I've appreciated to you. I still got a yellow warning says
But the build works fine on my android phone.(Still Empty Project). Thank you! By the way I am sure that I've installed higher than SD$$anonymous$$ tool 25 here are my Android Studio SD$$anonymous$$ tools screenshots.
By the way Unity 2018.2.20 works totally fine.
I do not see the attached screenshots . Can you re-post them?
I've reposted the screenshots should be work now
I've also installed the version 25 sdk Am I missing something with the SD$$anonymous$$s?
Your answer
Follow this Question
Related Questions
Unity says that I'm missing my NDK and SDK libraries, but I have them installed via Unity hub? 1 Answer
Android building process gets stuck on "Building native binary with IL2CPP" 2 Answers
Failed Running UnityLinker.exe and UnityLinker.exe did not run properly! 0 Answers
Android build error 1 Answer
UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors 0 Answers