Skip to content

Commit 5da4d94

Browse files
Patrick Martinchkuang-g
Patrick Martin
authored andcommitted
Fixed the call to GetMethod for GetApplicationIdentifier so that the method lookup is no longer ambiguous in Unity 2021.2
1 parent 2c4ed46 commit 5da4d94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/AndroidResolver/src/UnityCompat.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ private static BuildTargetGroup ConvertBuildTargetToBuildTargetGroup(BuildTarget
444444
/// <returns>Application identifier if it can be retrieved, null otherwise.</returns>
445445
private static string GetUnity56AndAboveApplicationIdentifier(BuildTarget buildTarget) {
446446
var getApplicationIdentifierMethod =
447-
typeof(UnityEditor.PlayerSettings).GetMethod("GetApplicationIdentifier");
447+
typeof(UnityEditor.PlayerSettings).GetMethod("GetApplicationIdentifier", new[]{typeof(BuildTargetGroup)});
448448
if (getApplicationIdentifierMethod == null) return null;
449449
var buildTargetGroup = ConvertBuildTargetToBuildTargetGroup(buildTarget);
450450
if (buildTargetGroup == BuildTargetGroup.Unknown) return null;

0 commit comments

Comments
 (0)