TAKOYAKING’s blog 一覧

TAKOYAKING’s blog

たこ焼き系

unity2018からunity2019にあげるとAnima2d関連でエラーがでた

apps.apple.com
Auto Puppetのプロジェクトをunityを2018から2019.2へバージョンアップしようとしたらanima2dで
AmbiguousMatchException: Ambiguous match found.
というエラーがconsoleに出続ける現象に遭遇しました。
ただ普通に起動はできるみたいですが、気持ち悪いので直しました。

AmbiguousMatchException: Ambiguous match found.
System.RuntimeType.GetMethodImpl (System.String name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Reflection.CallingConventions callConv, System.Type[] types, System.Reflection.ParameterModifier[] modifiers) (at <437ba245d8404784b9fbab9b439ac908>:0)
System.Type.GetMethod (System.String name, System.Reflection.BindingFlags bindingAttr) (at <437ba245d8404784b9fbab9b439ac908>:0)
Anima2D.AnimationWindowImpl_51_52_53.InitializeReflection () (at Assets/Anima2D/Scripts/Editor/AnimationWindowExtra/AnimationWindowImpl_51_52_53.cs:58)
Anima2D.AnimationWindowImpl_54.InitializeReflection () (at Assets/Anima2D/Scripts/Editor/AnimationWindowExtra/AnimationWindowImpl_54.cs:15)
Anima2D.AnimationWindowImpl_55.InitializeReflection () (at Assets/Anima2D/Scripts/Editor/AnimationWindowExtra/AnimationWindowImpl_55.cs:18)
Anima2D.AnimationWindowImpl_56.InitializeReflection () (at Assets/Anima2D/Scripts/Editor/AnimationWindowExtra/AnimationWindowImpl_56.cs:18)
Anima2D.AnimationWindowImpl_2017_1.InitializeReflection () (at Assets/Anima2D/Scripts/Editor/AnimationWindowExtra/AnimationWindowImpl_2017_1.cs:17)
Anima2D.AnimationWindowExtra..cctor () (at Assets/Anima2D/Scripts/Editor/AnimationWindowExtra/AnimationWindowExtra.cs:57)
Rethrow as TypeInitializationException: The type initializer for 'Anima2D.AnimationWindowExtra' threw an exception.
Anima2D.EditorUpdater.AnimationWindowTimeCheck () (at Assets/Anima2D/Scripts/Editor/EditorUpdater.cs:108)
Anima2D.EditorUpdater.Update () (at Assets/Anima2D/Scripts/Editor/EditorUpdater.cs:185)
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <437ba245d8404784b9fbab9b439ac908>:0)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <437ba245d8404784b9fbab9b439ac908>:0)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <437ba245d8404784b9fbab9b439ac908>:0)
System.Delegate.DynamicInvokeImpl (System.Object[] args) (at <437ba245d8404784b9fbab9b439ac908>:0)
System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) (at <437ba245d8404784b9fbab9b439ac908>:0)
System.Delegate.DynamicInvoke (System.Object[] args) (at <437ba245d8404784b9fbab9b439ac908>:0)
UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at /Users/builduser/buildslave/unity/build/Editor/Mono/EditorApplication.cs:310)
環境
  • 2018.2.2f1 -> 2019.2.16f1 のアップデート
  • Mac
対処法
  1. unityをアップデート
  2. エラーが出るのでいったんanima2dフォルダをまるごと削除してAsset Storeからanima2dを再度インポート