AppsFlyerSDK / appsflyer-unity-plugin

AppsFlyer Unity Plugin
MIT License
156 stars 64 forks source link

Exception in Unity 2021.2.3f1 - AmbiguousMatchException: Ambiguous match found. #138

Closed Dimosfil closed 2 years ago

Dimosfil commented 2 years ago

After install packadge of pluging last version appsflyer-unity-plugin-6.4.41 editor throw exception

AmbiguousMatchException: Ambiguous match found.

System.RuntimeType.GetMethodImplCommon (System.String name, System.Int32 genericParameterCount, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Reflection.CallingConventions callConv, System.Type[] types, System.Reflection.ParameterModifier[] modifiers) (at <00c558282d074245ab3496e2d108079b>:0) 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 <00c558282d074245ab3496e2d108079b>:0) System.Type.GetMethod (System.String name, System.Reflection.BindingFlags bindingAttr) (at <00c558282d074245ab3496e2d108079b>:0) System.Type.GetMethod (System.String name) (at <00c558282d074245ab3496e2d108079b>:0) GooglePlayServices.UnityCompat.GetUnity56AndAboveApplicationIdentifier (UnityEditor.BuildTarget buildTarget) (at /Users/smiles/dev/src/unity-jar-resolver/source/AndroidResolver/src/UnityCompat.cs:437) GooglePlayServices.UnityCompat.GetApplicationId (UnityEditor.BuildTarget buildTarget) (at /Users/smiles/dev/src/unity-jar-resolver/source/AndroidResolver/src/UnityCompat.cs:491) GooglePlayServices.PlayServicesResolver.GetAndroidApplicationId () (at /Users/smiles/dev/src/unity-jar-resolver/source/AndroidResolver/src/PlayServicesResolver.cs:977) GooglePlayServices.PlayServicesResolver.m__31 () (at /Users/smiles/dev/src/unity-jar-resolver/source/AndroidResolver/src/PlayServicesResolver.cs:1351) GooglePlayServices.PlayServicesResolver+PropertyPoller1[T].Poll (System.Func1[TResult] getCurrentValue, GooglePlayServices.PlayServicesResolver+PropertyPoller`1+Changed[T] changed) (at /Users/smiles/dev/src/unity-jar-resolver/source/AndroidResolver/src/PlayServicesResolver.cs:343) GooglePlayServices.PlayServicesResolver.PollBundleId () (at /Users/smiles/dev/src/unity-jar-resolver/source/AndroidResolver/src/PlayServicesResolver.cs:1351) UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at :0)

Dimosfil commented 2 years ago

Issue resolved. packadge was installed without ExternalDependencyManager. Take a last version ExternalDependencyManager from https://github.com/googlesamples/unity-jar-resolver/blob/master/external-dependency-manager-latest.unitypackage .