当我尝试升级到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中的一个在构建时会自行重建。我已经恢复到早期的工作版本,并尝试重复步骤升级到最新版本。我不知所措,欢迎所有想法。
1条答案
按热度按时间v6ylcynt1#
只删除
Assets/StreamingAssets/UnityServicesProjectConfiguration.json
上的json文件对我们来说很有用。