gradle Unity 2021.3.16f1升级中断,回调提供的流媒体资产文件与项目中已存在的文件冲突

b91juud3  于 2023-01-05  发布在  其他
关注(0)|答案(1)|浏览(407)

当我尝试升级到2021.3.16f1,更具体地说是目标API 31-33时,我无法成功构建我的项目,我收到此错误:

error: Callback provided streaming assets file conflicts with file already present in project. Project file 'StreamingAssets/UnityServicesProjectConfiguration.json'. Callback provided file 'Library/com.unity.services.core/UnityServicesProjectConfiguration.json'.
System.ArgumentException: Callback provided streaming assets file conflicts with file already present in project. Project file 'StreamingAssets/UnityServicesProjectConfiguration.json'. Callback provided file 'Library/com.unity.services.core/UnityServicesProjectConfiguration.json'.
   at PlayerBuildProgramLibrary.PlayerBuildProgramBase.SetupDataFiles()
   at PlayerBuildProgramLibrary.PlayerBuildProgramBase.SetupPlayerBuild()
   at AndroidPlayerBuildProgram.AndroidPlayerBuildProgram.SetupPlayerBuild()
   at PlayerBuildProgramLibrary.PlayerBuildProgramBase.RunBuildProgram()
   at PlayerBuildProgramTypeWrapper.Run(String[] args)
   at Program.Main(String[] args)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

我已经尝试删除两个位置的.json,库文件中的一个导致了不同的gradle构建错误,我没有运气解决,而Steaming assets中的一个在构建时会自行重建。我已经恢复到早期的工作版本,并尝试重复步骤升级到最新版本。我不知所措,欢迎所有想法。

v6ylcynt

v6ylcynt1#

只删除Assets/StreamingAssets/UnityServicesProjectConfiguration.json上的json文件对我们来说很有用。

相关问题