gpt4 book ai didi

c# - 无法在 unity 5.6 中导入 Fabric

转载 作者:太空宇宙 更新时间:2023-11-03 23:00:34 24 4
gpt4 key购买 nike

更新到 unity 5.6 后,我无法加载 Fabric。执行 API 更新时,API 更新程序失败。经过调查,问题在移除 Crashlytics/Fabric 后消失了。

从 fabric 站点安装统一包后,API 更新程序失败并显示以下神秘消息:

System.InvalidOperationException: Sequence contains more than one element
at System.Linq.Enumerable.SingleOrDefault[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x000a3] in <776c86d7978548379a28dce0f5e4ccbb>:0

如果我取消 api 更新程序,我会从 unity 收到以下弃用警告:

Assets/Fabric/Editor/GUI/Controller/PluginController.cs(58,45): error CS0619: `UnityEditor.PlayerSettings.bundleIdentifier' is obsolete: `Use PlayerSettings.applicationIdentifier instead (UnityUpgradable) -> UnityEditor.PlayerSettings.applicationIdentifier'

Assets/Fabric/Editor/Postbuild/FabricBuildEventAndroid.cs(36,34): error CS0619: `UnityEditor.PlayerSettings.bundleIdentifier' is obsolete: `Use PlayerSettings.applicationIdentifier instead (UnityUpgradable) -> UnityEditor.PlayerSettings.applicationIdentifier'

Assets/Fabric/Editor/Prebuild/AndroidBuildPropertiesManager.cs(30,38): error CS0619: `UnityEditor.PlayerSettings.bundleIdentifier' is obsolete: `Use PlayerSettings.applicationIdentifier instead (UnityUpgradable) -> UnityEditor.PlayerSettings.applicationIdentifier'

即使我手动解决了这些弃用问题,我仍然无法运行 fabric。看来我不是唯一遇到此问题的人,see this link from twittercommunity

谢谢

最佳答案

我已经从“Editor Default Resources”文件夹中删除了 Fabric 设置 asset 文件,并且在(手动)解决了弃用问题之后,我终于能够启动 fabric 并下载 crashlytics 工具包。

关于c# - 无法在 unity 5.6 中导入 Fabric,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43260448/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com