diff --git a/build/BuildContext.cs b/build/BuildContext.cs index a55e85efc5f..a1f801bb3d9 100644 --- a/build/BuildContext.cs +++ b/build/BuildContext.cs @@ -45,7 +45,7 @@ public BuildContext(ICakeContext context) : base(context) DotNetMSBuildSettings = new DotNetMSBuildSettings(); DotNetMSBuildSettings.WithProperty("Version", Version); DotNetMSBuildSettings.WithProperty("RepositoryUrl", repositoryUrl); - DotNetMSBuildSettings.WithProperty("AndroidSdkDirectory", context.EnvironmentVariable("ANDROID_SDK_ROOT")); + DotNetMSBuildSettings.WithProperty("AndroidSdkDirectory", context.EnvironmentVariable("ANDROID_HOME")); DotNetBuildSettings = new DotNetBuildSettings { @@ -69,6 +69,7 @@ public BuildContext(ICakeContext context) : base(context) }; MSBuildSettings.WithProperty(nameof(Version), Version); MSBuildSettings.WithProperty(nameof(repositoryUrl), repositoryUrl); + MSBuildSettings.WithProperty("AndroidSdkDirectory", context.EnvironmentVariable("ANDROID_HOME")); MSPackSettings = new MSBuildSettings {