BranchMetrics / unity-branch-deep-linking-attribution

The Branch Unity SDK for deep linking and attribution. Branch helps mobile apps grow with deep links / deeplinks that power paid acquisition and re-engagement campaigns, referral programs, content sharing, deep linked emails, smart banners, custom user onboarding, and more.
https://docs.branch.io/apps/unity/
MIT License
118 stars 24 forks source link

[Solved] AmbiguousMatchException: Ambiguous match found. #201

Closed thedrhax14 closed 2 years ago

thedrhax14 commented 2 years ago

Hello everyone,

I just imported the Branch SDK unitypackage to a Unity Project (2021.3.1f1) and unable to test at all on Android because of following error:

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 <e38a6d3ee47c43eb9b2e49c63fc0aa48>: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 <e38a6d3ee47c43eb9b2e49c63fc0aa48>:0) System.Type.GetMethod (System.String name, System.Reflection.BindingFlags bindingAttr) (at <e38a6d3ee47c43eb9b2e49c63fc0aa48>:0) System.Type.GetMethod (System.String name) (at <e38a6d3ee47c43eb9b2e49c63fc0aa48>:0) GooglePlayServices.UnityCompat.GetUnity56AndAboveApplicationIdentifier (UnityEditor.BuildTarget buildTarget) (at <4b7656cfe9964e9daa618a6c91f80015>:0) GooglePlayServices.UnityCompat.GetApplicationId (UnityEditor.BuildTarget buildTarget) (at <4b7656cfe9964e9daa618a6c91f80015>:0) GooglePlayServices.PlayServicesResolver.GetAndroidApplicationId () (at <4b7656cfe9964e9daa618a6c91f80015>:0) GooglePlayServices.PlayServicesResolver.<PollBundleId>m__36 () (at <4b7656cfe9964e9daa618a6c91f80015>:0) GooglePlayServices.PlayServicesResolver+PropertyPoller1[T].Poll (System.Func1[TResult] getCurrentValue, GooglePlayServices.PlayServicesResolver+PropertyPoller1+Changed[T] changed) (at <4b7656cfe9964e9daa618a6c91f80015>:0) GooglePlayServices.PlayServicesResolver.PollBundleId () (at <4b7656cfe9964e9daa618a6c91f80015>:0) UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at /Users/bokken/buildslave/unity/build/Editor/Mono/EditorApplication.cs:356) ` The same error just keep getting printed every second

thedrhax14 commented 2 years ago

Nevermind, I just had one more jar file that is also Dependency Resolver and it was conflicting with the Branch.io one