Skip to content

[Bug] Unity 2021.2 fails to compile  #440

Closed
@joaquingrech

Description

@joaquingrech

Unity 2021.2 alpha 20 currently fails to compile anything with the resolver on it.

The error is this:

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 <84b303d55b854255908e55ea69da0924>: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 <84b303d55b854255908e55ea69da0924>:0)
System.Type.GetMethod (System.String name, System.Reflection.BindingFlags bindingAttr) (at <84b303d55b854255908e55ea69da0924>:0)
System.Type.GetMethod (System.String name) (at <84b303d55b854255908e55ea69da0924>:0)
GooglePlayServices.UnityCompat.GetUnity56AndAboveApplicationIdentifier (UnityEditor.BuildTarget buildTarget) (at /Users/chkuang/Workspace/Git/unity-jar-resolver/source/AndroidResolver/src/UnityCompat.cs:446)
GooglePlayServices.UnityCompat.GetApplicationId (UnityEditor.BuildTarget buildTarget) (at /Users/chkuang/Workspace/Git/unity-jar-resolver/source/AndroidResolver/src/UnityCompat.cs:500)
GooglePlayServices.PlayServicesResolver.GetAndroidApplicationId () (at /Users/chkuang/Workspace/Git/unity-jar-resolver/source/AndroidResolver/src/PlayServicesResolver.cs:1043)
GooglePlayServices.PlayServicesResolver.m__36 () (at /Users/chkuang/Workspace/Git/unity-jar-resolver/source/AndroidResolver/src/PlayServicesResolver.cs:1431)
GooglePlayServices.PlayServicesResolver+PropertyPoller1[T].Poll (System.Func1[TResult] getCurrentValue, GooglePlayServices.PlayServicesResolver+PropertyPoller`1+Changed[T] changed) (at /Users/chkuang/Workspace/Git/unity-jar-resolver/source/AndroidResolver/src/PlayServicesResolver.cs:343)
GooglePlayServices.PlayServicesResolver.PollBundleId () (at /Users/chkuang/Workspace/Git/unity-jar-resolver/source/AndroidResolver/src/PlayServicesResolver.cs:1431)
UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at <034d8b3a8a0343ceb752ecf3815d6e99>:0)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions