0
Answered

Unity Build Player Window error

Denis 4 years ago in realvirtual.io Starter and Professional updated by Support 4 years ago 8

Hello , I have errors when i trying to build player window , its works when i delete game4automation , and if i add game4automation and trying to compile i get some errors , I want to mention that I did not add the s7 interface, I did not add anything

Image 330

Answer

Answer

Problem was solved by deleting Parts4Cad and Zip in Tools. Included ZIP is not compatible with UWP. We will change that in future.

Under review

It is hard to say based on the screendump. Try to change your compile settings eg. from il2cpp to mono. You will need to send the full log.

i cant change compile settings from il2cpp to mono

Exception: C:\Program Files\Unity\Hub\Editor\2019.4.14f1\Editor\Data\il2cpp\build/deploy/net471/UnityLinker.exe did not run properly!

Failed running "C:\Program Files\Unity\Hub\Editor\2019.4.14f1\Editor\Data\il2cpp\build/deploy/net471/UnityLinker.exe" -out="C:/Users/Denis/Desktop/Turbina Lukoil/Temp/StagingArea/Data/Managed/tempStrip" -x=C:/Users/Denis/AppData/Local/Temp/tmp709790ac.tmp -x="C:/Users/Denis/Desktop/Turbina Lukoil/Temp/StagingArea/Data/Managed/TypesInScenes.xml" -x="C:/Users/Denis/Desktop/Turbina Lukoil/Assets/MixedRealityToolkit.Generated/link.xml" -d="C:/Users/Denis/Desktop/Turbina Lukoil/Temp/StagingArea/Data/Managed" --include-unity-root-assembly="C:/Users/Denis/Desktop/Turbina Lukoil/Temp/StagingArea/Data/Managed/Assembly-CSharp.dll" --include-unity-root-assembly="C:/Users/Denis/Desktop/Turbina Lukoil/Temp/StagingArea/Data/Managed/Microsoft.MixedReality.Toolkit.Services.SceneSystem.dll" --include-unity-root-assembly="C:/Users/Denis/Desktop/Turbina Lukoil/Temp/StagingArea/Data/Managed/Microsoft.MixedReality.Toolkit.Providers.WindowsMixedReality.dll" --include-unity-root-assembly="C:/Users/Denis/Desktop/Turbina Lukoil/Temp/StagingArea/Data/Managed/Microsoft.MixedReality.Toolkit.Async.dll" --include-unity-root-assembly="C:/Users/Denis/Desktop/Turbina Lukoil/Temp/StagingArea/Data/Managed/game4automation.tools.naughtyattributes.dll" --include-unity-root-assembly="C:/Users/Denis/Desktop/Turbina Lukoil/Temp/StagingArea/Data/Managed/Microsoft.MixedReality.Toolkit.Providers.WindowsVoiceInput.dll" --include-unity-root-assembly="C:/Users/Denis/Desktop/Turbina Lukoil/Temp/StagingArea/Data/Managed/Microsoft.MixedReality.Toolkit.Gltf.dll" --include-unity-root-assembly="C:/Users/Denis/Desktop/Turbina Lukoil/Temp/StagingArea/Data/Managed/Microsoft.MixedReality.Toolkit.Providers.XRSDK.WindowsMixedReality.dll" --include-unity-root-assembly="C:/Users/Denis/Desktop/Turbina Lukoil/Temp/StagingArea/Data/Managed/Microsoft.MixedReality.Toolkit.Demos.Gltf.dll" --include-unity-root-assembly="C:/Users/Denis/Desktop/Turbina Lukoil/Temp/StagingArea/Data/Managed/Microsoft.MixedReality.Toolkit.Providers.WindowsMixedReality.Shared.dll" --include-unity-root-assembly="C:/Users/Denis/Desktop/Turbina Lukoil/Temp/StagingArea/Data/Managed/Microsoft.MixedReality.Toolkit.Demos.UX.Interactables.dll" --include-unity-root-assembly="C:/Users/Denis/Desktop/Turbina Lukoil/Temp/StagingArea/Data/Managed/Microsoft.MixedReality.Toolkit.dll" --include-unity-root-assembly="C:/Users/Denis/Desktop/Turbina Lukoil/Temp/StagingArea/Data/Managed/UnityEngine.UI.dll" --include-unity-root-assembly="C:/Users/Denis/Desktop/Turbina Lukoil/Temp/StagingArea/Data/Managed/Microsoft.MixedReality.Toolkit.Services.SpatialAwarenessSystem.dll" --include-unity-root-assembly="C:/Users/Denis/Desktop/Turbina Lukoil/Temp/StagingArea/Data/Managed/Microsoft.MixedReality.Toolkit.Services.CameraSystem.dll" --include-unity-root-assembly="C:/Users/Denis/Desktop/Turbina Lukoil/Temp/StagingArea/Data/Managed/Microsoft.MixedReality.Toolkit.SDK.dll" --include-unity-root-assembly="C:/Users/Denis/Desktop/Turbina Lukoil/Temp/StagingArea/Data/Managed/game4automation.spacenavigator.dll" --include-unity-root-assembly="C:/Users/Denis/Desktop/Turbina Lukoil/Temp/StagingArea/Data/Managed/Microsoft.MixedReality.Toolkit.Services.TeleportSystem.dll" --include-unity-root-assembly="C:/Users/Denis/Desktop/Turbina Lukoil/Temp/StagingArea/Data/Managed/Microsoft.MixedReality.Toolkit.Services.DiagnosticsSystem.dll" --include-unity-root-assembly="C:/Users/Denis/Desktop/Turbina Lukoil/Temp/StagingArea/Data/Managed/Microsoft.MixedReality.Toolkit.Services.InputSystem.dll" --include-unity-root-assembly="C:/Users/Denis/Desktop/Turbina Lukoil/Temp/StagingArea/Data/Managed/game4automation.interfaces.s7tcpip.dll" --include-unity-root-assembly="C:/Users/Denis/Desktop/Turbina Lukoil/Temp/StagingArea/Data/Managed/game4automation.parts4cad.dll" --include-unity-root-assembly="C:/Users/Denis/Desktop/Turbina Lukoil/Temp/StagingArea/Data/Managed/Microsoft.MixedReality.Toolkit.Services.InputAnimation.dll" --include-unity-root-assembly="C:/Users/Denis/Desktop/Turbina Lukoil/Temp/StagingArea/Data/Managed/game4automation.base.dll" --include-unity-root-assembly="C:/Users/Denis/Desktop/Turbina Lukoil/Temp/StagingArea/Data/Managed/Microsoft.MixedReality.Toolkit.Providers.XRSDK.dll" --include-unity-root-assembly="C:/Users/Denis/Desktop/Turbina Lukoil/Temp/StagingArea/Data/Managed/Microsoft.MixedReality.Toolkit.Services.BoundarySystem.dll" --include-unity-root-assembly="C:/Users/Denis/Desktop/Turbina Lukoil/Temp/StagingArea/Data/Managed/Unity.TextMeshPro.dll" --include-unity-root-assembly="C:/Users/Denis/Desktop/Turbina Lukoil/Temp/StagingArea/Data/Managed/Microsoft.MixedReality.Toolkit.Demos.InspectorFields.dll" --include-unity-root-assembly="C:/Users/Denis/Desktop/Turbina Lukoil/Temp/StagingArea/Data/Managed/Microsoft.MixedReality.Toolkit.Examples.dll" --include-unity-root-assembly="C:/Users/Denis/Desktop/Turbina Lukoil/Temp/StagingArea/Data/Managed/Microsoft.MixedReality.Toolkit.Services.InputSimulation.dll" --include-unity-root-assembly="C:/Users/Denis/Desktop/Turbina Lukoil/Temp/StagingArea/Data/Managed/I18N.CJK.dll" --include-unity-root-assembly="C:/Users/Denis/Desktop/Turbina Lukoil/Temp/StagingArea/Data/Managed/I18N.dll" --include-unity-root-assembly="C:/Users/Denis/Desktop/Turbina Lukoil/Temp/StagingArea/Data/Managed/I18N.MidEast.dll" --include-unity-root-assembly="C:/Users/Denis/Desktop/Turbina Lukoil/Temp/StagingArea/Data/Managed/I18N.Other.dll" --include-unity-root-assembly="C:/Users/Denis/Desktop/Turbina Lukoil/Temp/StagingArea/Data/Managed/I18N.Rare.dll" --include-unity-root-assembly="C:/Users/Denis/Desktop/Turbina Lukoil/Temp/StagingArea/Data/Managed/I18N.West.dll" --dotnetruntime=il2cpp --dotnetprofile=unityaot --use-editor-options --include-directory="C:/Users/Denis/Desktop/Turbina Lukoil/Temp/StagingArea/Data/Managed" --rule-set=Conservative --editor-data-file="C:/Users/Denis/Desktop/Turbina Lukoil/Temp/StagingArea/Data/Managed/EditorToUnityLinkerData.json" --platform=WinRT --engine-modules-asset-file="C:/Program Files/Unity/Hub/Editor/2019.4.14f1/Editor/Data/PlaybackEngines/MetroSupport/Whitelists/../modules.asset"

stdout:

Fatal error in Unity CIL Linker

Mono.Cecil.ResolutionException: Failed to resolve I18N.Common.MonoSafeEncoding

at Mono.Linker.BCL.EventTracingForWindows.IsEventSourceImplementation(TypeDefinition type, LinkContext context)

at Mono.Linker.Steps.MarkStep.MarkType(TypeReference reference)

at Mono.Linker.Steps.MarkStep.InitializeType(TypeDefinition type)

at Mono.Linker.Steps.MarkStep.InitializeAssembly(AssemblyDefinition assembly)

at Unity.Linker.Steps.UnityMarkStep.InitializeAssembly(AssemblyDefinition assembly)

at Mono.Linker.Steps.MarkStep.Initialize()

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.Run()

at Unity.Linker.UnityDriver.RunDriverWithoutErrorHandling()

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 <68af50843d0a45398c92799647332ec2>:0)

UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at <68af50843d0a45398c92799647332ec2>:0)

UnityEditorInternal.AssemblyStripper.RunAssemblyLinker (System.Collections.Generic.IEnumerable`1[T] args, System.String& out, System.String& err, System.String linkerPath, System.String workingDirectory) (at <68af50843d0a45398c92799647332ec2>:0)

UnityEditorInternal.AssemblyStripper.StripAssembliesTo (System.String outputFolder, System.String& output, System.String& error, System.Collections.Generic.IEnumerable`1[T] linkXmlFiles, UnityEditorInternal.UnityLinkerRunInformation runInformation) (at <68af50843d0a45398c92799647332ec2>:0)

UnityEditorInternal.AssemblyStripper.RunAssemblyStripper (UnityEditorInternal.UnityLinkerRunInformation runInformation) (at <68af50843d0a45398c92799647332ec2>:0)

UnityEditorInternal.AssemblyStripper.StripAssemblies (System.String managedAssemblyFolderPath, UnityEditorInternal.BaseUnityLinkerPlatformProvider unityLinkerPlatformProvider, UnityEditorInternal.IIl2CppPlatformProvider il2cppPlatformProvider, UnityEditor.RuntimeClassRegistry rcr, UnityEditor.ManagedStrippingLevel managedStrippingLevel) (at <68af50843d0a45398c92799647332ec2>:0)

UnityEditorInternal.IL2CPPBuilder.Run () (at <68af50843d0a45398c92799647332ec2>:0)

UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at <68af50843d0a45398c92799647332ec2>:0)

PostProcessWinRT.RunIL2CPPForProjectBuild () (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/PostProcessWinRT.cs:1929)

PostProcessWinRT.RunIL2CPP () (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/PostProcessWinRT.cs:1900)

PostProcessWinRT.Process () (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/PostProcessWinRT.cs:217)

UnityEditor.UWP.BuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ExtensionModule.cs:85)

Rethrow as BuildFailedException: Exception of type 'UnityEditor.Build.BuildFailedException' was thrown.

UnityEditor.UWP.BuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ExtensionModule.cs:89)

UnityEditor.Modules.DefaultBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <68af50843d0a45398c92799647332ec2>: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 <68af50843d0a45398c92799647332ec2>:0)

UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) --- FIRST

Build completed with a result of 'Failed' in 19 seconds (18849 ms)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)  --- 2nd

UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002bb] in <68af50843d0a45398c92799647332ec2>:0
at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <68af50843d0a45398c92799647332ec2>:0
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) --- 3th

Answered

I don't know what is exactly in your project and what platform you are building for. I just can say that building with g4a Starter  is working fine. It seems to be something like: 

https://forum.unity.com/threads/uwp-build-fails-with-i18n-dll-in-plugins-folder.962739/

if i delete game4automation from my project i can build .. if add again.. again i cant

change API compatibility level to :NET Standard2.0

Answer

Problem was solved by deleting Parts4Cad and Zip in Tools. Included ZIP is not compatible with UWP. We will change that in future.