-1

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

DirectoryNotFoundException:找不到路径“C:\Users\Public\Documents\Wondershare\CreatorTemp\tmp517a91d3.tmp”的一部分。System.IO.FileStream..ctor(System.String 路径、System.IO.FileMode 模式、System.IO.FileAccess 访问、System.IO.FileShare 共享、System.Int32 bufferSize、System.Boolean 匿名、System.IO.FileOptions options) (at <9577ac7a62ef43179789031239ba8798>:0) (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int ,bool,System.IO.FileOptions) System.IO.Path.GetTempFileName () (at <9577ac7a62ef43179789031239ba8798>:0) UnityEditor.MonoAssemblyStripping.GenerateLinkXmlToPreserveDerivedTypes (System.String libraryFolder, UnityEditor.RuntimeClassRegistry usedClasses) (at <49f464d93>18057e:0

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

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

我不确定我是否超越了某些东西,任何帮助将不胜感激。

4

1 回答 1

0

我仍然不知道是什么导致了问题,但我在路径中创建了丢失的文件夹,并且 tmp 文件开始出现。我现在可以毫无问题地构建。

于 2021-03-08T20:46:34.120 回答