{"id":4625,"date":"2022-12-03T20:20:47","date_gmt":"2022-12-03T12:20:47","guid":{"rendered":"http:\/\/blog.coolcoding.cn\/?p=4625"},"modified":"2022-12-03T20:21:08","modified_gmt":"2022-12-03T12:21:08","slug":"unity%e6%89%93android%e5%8c%85%e5%bc%82%e5%b8%b8","status":"publish","type":"post","link":"https:\/\/blog.coolcoding.cn\/?p=4625","title":{"rendered":"Unity\u6253Android\u5305\u5f02\u5e38"},"content":{"rendered":"\n<p>A\u5de5\u7a0b\u5728\u51faAndroid\u5305\u65f6\uff0c\u51fa\u4ee5\u4e0b\u9519\u8bef\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Exception: C:\\Program Files\\Unity\\Hub\\Editor\\2019.4.38f1\\Editor\\Data\\il2cpp\\build\/deploy\/net471\/UnityLinker.exe did not run properly!\n\nFailed running \"C:\\Program Files\\Unity\\Hub\\Editor\\2019.4.38f1\\Editor\\Data\\il2cpp\\build\/deploy\/net471\/UnityLinker.exe\" @D:\/depot\/uwproj\/develop\/client\/UWGame\/Temp\/StagingArea\/assets\/bin\/Data\/Managed\/response.rsp \n\nstdout:\nFatal error in Unity CIL Linker\nSystem.ArgumentException: ??????????????????\ue863\n   ?? System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)\n   ?? System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)\n   ?? Unity.Linker.EngineStripping.EngineModuleResolver.Initialize(UnityLinkContext context, AssemblyDefinition unityEngineFacade, ModulesAssetFile modulesAssetFile)\n   ?? Unity.Linker.EngineStripping.EngineStrippingContext.Initialize(AssemblyDefinition unityEngineFacade)\n   ?? Unity.Linker.Steps.InitializeEngineStrippingStep.Process()\n   ?? Mono.Linker.Steps.BaseStep.Process(LinkContext context)\n   ?? Mono.Linker.Pipeline.ProcessStep(LinkContext context, IStep step)\n   ?? Unity.Linker.UnityPipeline.ProcessStep(LinkContext context, IStep step)\n   ?? Mono.Linker.Pipeline.Process(LinkContext context)\n   ?? Unity.Linker.UnityDriver.Run()\n   ?? Unity.Linker.UnityDriver.RunDriverWithoutErrorHandling()\n   ?? Unity.Linker.UnityDriver.RunDriver()\nstderr:\n\nUnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at &lt;20984e470d9848a29f910d0b91cc5402>:0)\nUnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at &lt;20984e470d9848a29f910d0b91cc5402>:0)\nUnityEditorInternal.AssemblyStripper.RunAssemblyLinker (System.Collections.Generic.IEnumerable`1[T] args, System.String&amp; out, System.String&amp; err, System.String linkerPath, System.String workingDirectory) (at &lt;20984e470d9848a29f910d0b91cc5402>:0)\nUnityEditorInternal.AssemblyStripper.StripAssembliesTo (System.String outputFolder, System.String&amp; output, System.String&amp; error, System.Collections.Generic.IEnumerable`1[T] linkXmlFiles, UnityEditorInternal.UnityLinkerRunInformation runInformation) (at &lt;20984e470d9848a29f910d0b91cc5402>:0)\nUnityEditorInternal.AssemblyStripper.RunAssemblyStripper (UnityEditorInternal.UnityLinkerRunInformation runInformation) (at &lt;20984e470d9848a29f910d0b91cc5402>:0)\nUnityEditorInternal.AssemblyStripper.StripAssemblies (System.String managedAssemblyFolderPath, UnityEditorInternal.BaseUnityLinkerPlatformProvider unityLinkerPlatformProvider, UnityEditorInternal.IIl2CppPlatformProvider il2cppPlatformProvider, UnityEditor.RuntimeClassRegistry rcr, UnityEditor.ManagedStrippingLevel managedStrippingLevel) (at &lt;20984e470d9848a29f910d0b91cc5402>:0)\nUnityEditorInternal.IL2CPPBuilder.Run () (at &lt;20984e470d9848a29f910d0b91cc5402>:0)\nUnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at &lt;20984e470d9848a29f910d0b91cc5402>:0)\nUnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at &lt;b0b2e60bb77549c6b5ce993fd741c713>:0)\nUnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at &lt;b0b2e60bb77549c6b5ce993fd741c713>:0)\nUnityEditor.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 &lt;b0b2e60bb77549c6b5ce993fd741c713>:0)\nUnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties&amp; outProperties) (at &lt;b0b2e60bb77549c6b5ce993fd741c713>:0)\nUnityEditor.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 &lt;20984e470d9848a29f910d0b91cc5402>:0)\nUnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)<\/code><\/pre>\n\n\n\n<p>1\u3001A\u5de5\u7a0b\uff1a\u5220\u9664Library\uff0c\u91cd\u5f00Unity\uff0c\u51fa\u9519<\/p>\n\n\n\n<p>2\u3001\u65b0\u5efa\u4e00\u4e2a\u7a7a\u5de5\u7a0b\uff1aB\u5de5\u7a0b\uff0c\u6253Android\u5305\uff0c\u6b63\u5e38<\/p>\n\n\n\n<p>3\u3001A\u5de5\u7a0b\uff1a\u7531IL2CPP\u5207\u5230Mono\u6a21\u5f0f\uff0c\u6b63\u5e38<\/p>\n\n\n\n<p>4\u3001A\u5de5\u7a0b\uff1a\u628aUnity2019.4.38f1\u5207\u6362\u52302019.4.40f1\uff0c\u51fa\u9519<\/p>\n\n\n\n<p>5\u3001\u628a\u6574\u4e2a\u5de5\u7a0b\u5168\u90e8\u5220\u5149\uff0c\u5168\u90e8\u62c9\u65b0\u5de5\u7a0b\uff0c\u91cd\u5f00Unity\uff0c\u6b63\u5e38<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A\u5de5\u7a0b\u5728\u51faAndroid\u5305\u65f6\uff0c\u51fa\u4ee5\u4e0b\u9519\u8bef\uff1a 1\u3001A\u5de5\u7a0b\uff1a\u5220\u9664Library\uff0c\u91cd\u5f00Unity\uff0c\u51fa\u9519 2\u3001\u65b0\u5efa\u4e00\u4e2a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/4625"}],"collection":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4625"}],"version-history":[{"count":2,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/4625\/revisions"}],"predecessor-version":[{"id":4627,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/4625\/revisions\/4627"}],"wp:attachment":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4625"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4625"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4625"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}