更新到统一 5.6 后,我无法加载 Fabric。执行 API 更新时,API 更新程序失败。经过调查,删除 Crashlytics / 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'
即使我手动整理这些弃用,我仍然无法运行织物。似乎我不是唯一遇到此问题的人,请参阅 twittercommunity 的此链接
谢谢