From 8b613c26cafaaee4a7af4c173e5e985143b55a2e Mon Sep 17 00:00:00 2001 From: Peter Collins Date: Wed, 12 Jul 2023 10:26:41 -0400 Subject: [PATCH] [AndroidDependenciesTests] Use platform-tools 34.0.4 (#8184) The `InstallAndroidDependenciesTest` test has been failing: _AndroidSdkDirectory not set to new SDK path /Users/runner/work/1/a/TestRelease/07-11_21.59.53/temp/InstallAndroidDependenciesTest/android-sdk, probably because Google's repository has a newer platform-tools package! repository2-3.xml contains platform-tools 34.0.4; expected 34.0.3! Fix this by bumping the platform-tools version that we try to install during this test to 34.0.4. --- .../Xamarin.Android.Build.Tests/AndroidDependenciesTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/AndroidDependenciesTests.cs b/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/AndroidDependenciesTests.cs index 372d0746881..8da53fde3e3 100644 --- a/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/AndroidDependenciesTests.cs +++ b/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/AndroidDependenciesTests.cs @@ -36,7 +36,7 @@ public void InstallAndroidDependenciesTest () var proj = new XamarinAndroidApplicationProject { TargetSdkVersion = apiLevel.ToString (), }; - const string ExpectedPlatformToolsVersion = "34.0.3"; + const string ExpectedPlatformToolsVersion = "34.0.4"; using (var b = CreateApkBuilder ()) { b.CleanupAfterSuccessfulBuild = false; string defaultTarget = b.Target;