本文介绍了例外:IL2CPP.exe无法正常运行! Unity 3D构建问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的统一版本2019.3.12f1

my unity version 2019.3.12f1

您好,我在构建Android游戏时遇到问题.当我想使用IL2CPP时,我无法构建游戏.在控制台中会出现以下错误:

Hello, I have problem with build my Android game. When i want use IL2CPP, i cant build my game. In console is this errors:

异常:C:\ Program Files \ Unity \ Editor \ Data \ il2cpp/build/deploy/net471/il2cpp.exe无法正常运行!

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

异常:C:\ Program Files \ Unity \ Editor \ Data \ il2cpp/build/deploy/net471/il2cpp.exe无法正常运行!UnityEditorInternal.Runner.RunProgram(UnityEditor.Utils.Program p,System.String exe,System.String args,System.String workingDirectory,UnityEditor.Scripting.Compilers.CompilerOutputParserBase解析器)(位于:0)UnityEditorInternal.Runner.RunManagedProgram(System.String exe,System.String args,System.String workingDirectory,UnityEditor.Scripting.Compilers.CompilerOutputParserBase解析器,System.Action 1[T] setupStartInfo) (at <ffcf2f9855fe46038192299154f37a45>:0)UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List 1 [T]参数,System.Action 1[T] setupStartInfo, System.String workingDirectory) (at <ffcf2f9855fe46038192299154f37a45>:0)UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (UnityEditor.Il2Cpp.Il2CppBuildPipelineData data, System.String outputDirectory, System.String workingDirectory, System.Boolean platformSupportsManagedDebugging) (at <ffcf2f9855fe46038192299154f37a45>:0)UnityEditorInternal.IL2CPPBuilder.Run () (at <ffcf2f9855fe46038192299154f37a45>:0)UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action 1 [ T] ModifyOutputBeforeCompile,UnityEditor.RuntimeClassRegistry runtimeClassRegistry)(在:0)UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.Execute(UnityEditor.Android.PostProcessor.PostProcessorContext上下文)(在< 3167064085404657b0d6c498207da025>:0)UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTask​​s(UnityEditor.Android.PostProcessor.PostProcessorContext上下文)(位于< 3167064085404657b0d6c498207da025>:0)UnityEditor.Android.PostProcessAndroidPlayer.PostProcess(UnityEditor.BuildTarget目标,System.String stagingAreaData,System.String stagingArea,System.String playerPackage,System.String installPath,System.String companyName,System.String productName,UnityEditor.BuildOptions选项,UnityEditor. RuntimeClassRegistry使用的ClassRegistry,UnityEditor.Build.Reporting.BuildReport报告)(位于< 3167064085404657b0d6c498207da025>:0)UnityEditor.Android.AndroidBuildPostprocessor.PostProcess(UnityEditor.Modules.BuildPostProcessArgs args,UnityEditor.BuildProperties& outProperties)(在< 3167064085404657b0d6c498207da025>:0)UnityEditor.PostprocessBuildPlayer.Postprocess(UnityEditor.BuildTargetGroup targetGroup,UnityEditor.BuildTarget目标,System.String installPath,System.String companyName,System.String productName,System.Int32宽度,System.Int32高度,UnityEditor.BuildOptions选项,UnityEditor.RuntimeClassRegistry usedClassRegistry ,UnityEditor.Build.Reporting.BuildReport报告)(位于:0)UnityEngine.GUIUtility:ProcessEvent(Int32,IntPtr)

Exception: C:\Program Files\Unity\Editor\Data\il2cpp/build/deploy/net471/il2cpp.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 :0)UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action1[T] setupStartInfo) (at <ffcf2f9855fe46038192299154f37a45>:0)UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List1[T] arguments, System.Action1[T] setupStartInfo, System.String workingDirectory) (at <ffcf2f9855fe46038192299154f37a45>:0)UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (UnityEditor.Il2Cpp.Il2CppBuildPipelineData data, System.String outputDirectory, System.String workingDirectory, System.Boolean platformSupportsManagedDebugging) (at <ffcf2f9855fe46038192299154f37a45>:0)UnityEditorInternal.IL2CPPBuilder.Run () (at <ffcf2f9855fe46038192299154f37a45>:0)UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at :0)UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <3167064085404657b0d6c498207da025>:0)UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <3167064085404657b0d6c498207da025>: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 <3167064085404657b0d6c498207da025>:0)UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <3167064085404657b0d6c498207da025>: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 :0)UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

请,我该如何解决?

当我使用Mono时,建筑物正在运行.当我使用ILC2PP时,建筑无法正常工作.

When i use Mono, building is working.When i use ILC2PP, building is not working.

推荐答案

已解决

最终解决了此问题...问题是此Unity资产名称是否在图片中,您的文件夹名称是.."VacuumShaders"我删除了此资产,我的项目构建在IL2CPP中成功了感谢上帝

这篇关于例外:IL2CPP.exe无法正常运行! Unity 3D构建问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-14 08:30