error CS0433: The type ‘IProgress‘ exists in both ‘Unity.Compat’ または ‘Unity.Tasks’ …の対処法

Unityで以下のようなエラーが大量に吐き出された場合の対処法。

Assets/Plugins/UniRx/Scripts/UnityEngineBridge/AsyncOperationExtensions.cs(17,100): error CS0433: The type ‘IProgress‘ exists in both ‘Unity.Compat, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null’ and ‘mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=xxxxxxxx’

Assets/Plugins/UniRx/Scripts/Tasks/TaskObservableExtensions.cs(187,55): error CS0433: The type ‘Task‘ exists in both ‘Unity.Tasks, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null’ and ‘mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=xxxxxxxx’

Assets/Plugins/UniRx/Scripts/UnityEngineBridge/ObservableWWW.cs(162,101): error CS0433: The type ‘CancellationToken’ exists in both ‘Unity.Tasks, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null’ and ‘mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=xxxxxxxx’

Assets/Plugins/UniRx/Scripts/Tasks/TaskObservableExtensions.cs(204,24): error CS0433: The type ‘TaskContinuationOptions’ exists in both ‘Unity.Tasks, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null’ and ‘mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=xxxxxxxx’

Assets/Plugins/UniRx/Scripts/UnityEngineBridge/UnityEventExtensions.cs(23,35): error CS0433: The type ‘Tuple‘ exists in both ‘Unity.Compat, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null’ and ‘mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=xxxxxxxx’

原因と対処法

どうやらUniRxFirebaseの一部が競合している様子。

Firebaseについてきた

Assets/Parse/Plugin/Unity.Tasks.dll
Assets/Parse/Plugin/Unity.Compat.dll

の2つを削除すると、エラーは直りました。

コメント