1

更新到统一 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 的此链接

谢谢

4

1 回答 1

3

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

于 2017-04-06T16:23:20.520 回答