Unity IL2CPP构建错误' DirectoryNotFoundException '



这是我的第一个问题,我对开发真的很陌生。所以我希望我能得到帮助来解决这个问题,我不能解决现在的天。当我尝试为IL2CPP构建时,我得到以下错误:

DirectoryNotFoundException: Could not find a part of path "C:UsersPublicDocumentsWondershareCreatorTemptmp517a91d3.tmp"System.IO.FileStream . .男星(系统。字符串路径,System. io . filemode模式,System. io . fileaccess访问,System. io . fileshare共享,System. io . filemode模式。Int32 bufferSize, System。Boolean匿名,System.IO.FileOptions选项)(<9577ac7a62ef43179789031239ba8798>:0)(System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,bool,System.IO.FileOptions)System.IO.Path.GetTempFileName () (at <9577ac7a62ef43179789031239ba8798>:0)UnityEditor.MonoAssemblyStripping.GenerateLinkXmlToPreserveDerivedTypes(系统。字符串库文件夹,unityeeditor。RuntimeClassRegistry usedClasses) (at <8f44d91b549e47c9883e180579f26ef6>:0)UnityEditorInternal.AssemblyStripper.RunAssemblyStripper (UnityEditorInternal。UnityLinkerRunInformation runInformation) (at <8f44d91b549e47c9883e180579f26ef6>:0)UnityEditorInternal.AssemblyStripper.StripAssemblies(系统。字符串managedAssemblyFolderPath, UnityEditorInternal。unitylinkplatformprovider, UnityEditorInternal。il2cppPlatformProvider, unityeeditor。RuntimeClassRegistry rcr, unityeeditor。ManagedStrippingLevel) (at <8f44d91b549e47c9883e180579f26ef6>:0)UnityEditorInternal.IL2CPPBuilder。Run () (at <8f44d91b549e47c9883e180579f26ef6>:0)UnityEditorInternal.IL2CPPUtils。RunIl2Cpp(系统。字符串tempFolder, System。字符串stagingAreaData, UnityEditorInternal。cppplatformprovider平台提供商,系统。动作1[T] modifyOutputBeforeCompile, unityeeditor。RuntimeClassRegistry) (at <8f44d91b549e47c9883e180579f26ef6>:0)UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp。(UnityEditor.Android.PostProcessor执行。PostProcessorContext上下文)(at <7b4f8e7483ca4be7941768c84eb1011d>:0)UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor。PostProcessorContext上下文)(at <7b4f8e7483ca4be7941768c84eb1011d>:0)UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor。目标,系统。字符串stagingAreaData,系统。字符串stagingArea, System。字符串playerPackage,系统。安装路径,系统。字符串公司名称,系统。String productName, UnityEditor。BuildOptions选项,unityeeditor。RuntimeClassRegistry使用了classregistry, UnityEditor.Build.Reporting.BuildReport报告)(在<7b4f8e7483ca4be7941768c84eb1011d>:0)UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules。unityeitor . buildproperties&outProperties) (at <7b4f8e7483ca4be7941768c84eb1011d>:0)UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor。BuildTargetGroup, targetGroup, unityeeditor。目标,系统。安装路径,系统。字符串公司名称,系统。String productName, System。Int32宽度,系统。Int32高度,unityeeditor。BuildOptions选项,unityeeditor。RuntimeClassRegistry使用了classregistry, UnityEditor.Build.Reporting.BuildReport报告)(在<8f44d91b549e47c9883e180579f26ef6>:0)UnityEngine。{{{}}}

此错误仅在使用IL2CPP构建时发生,并且即使在新项目中也会持续存在。在我为unity添加了facebook sdk之后,它就开始出现了。对于我的项目,解决了依赖关系并更改了系统变量。以下是我到目前为止所做的尝试:

-删除facebook sdk,并改变了一些相关的依赖关系。-删除回系统变量我添加(https://answers.unity.com/questions/616484/open-ssl-not-found.html)。-从pc上删除了与wondershare相关的文件夹。-清除。gradle文件夹在我的用户。-在我的项目中删除了库和临时文件夹。-重新安装android的构建工具(与unity一起安装)。

我不确定我是否有什么越界的地方,任何帮助都将非常感激。

我仍然不知道是什么原因导致了这个问题,但我已经在路径中创建了丢失的文件夹,tmp文件开始出现。我现在可以毫无问题地建造了。

最新更新