From dd172a520731920efb58c96e49568f80fbf1de13 Mon Sep 17 00:00:00 2001 From: Peter Collins Date: Wed, 24 May 2023 17:43:34 -0400 Subject: [PATCH] [AndroidDependenciesTests] Use platform-tools 34.0.3 The `InstallAndroidDependenciesTest` has been failing: Failed InstallAndroidDependenciesTest [1 m 39 s] Error Message: Multiple failures or warnings in test: 1) _AndroidSdkDirectory not set to new SDK path `/Users/runner/work/1/a/TestDebug/05-24_20.34.58/temp/InstallAndroidDependenciesTest/android-sdk`, *probably* because Google's repository has a newer platform-tools package! repository2-3.xml contains platform-tools 34.0.3; expected 34.0.1! 2) _AndroidSdkDirectory was not set to new SDK path `/Users/runner/work/1/a/TestDebug/05-24_20.34.58/temp/InstallAndroidDependenciesTest/android-sdk`. Expected: True But was: False Attempt to fix this by bumping the platform-tools version that we try to install during this test to 34.0.3. --- .../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 c8a9e1d9f7f..297d8865bb0 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 @@ -31,7 +31,7 @@ public void InstallAndroidDependenciesTest () var proj = new XamarinAndroidApplicationProject { TargetSdkVersion = apiLevel.ToString (), }; - const string ExpectedPlatformToolsVersion = "34.0.1"; + const string ExpectedPlatformToolsVersion = "34.0.3"; using (var b = CreateApkBuilder ()) { b.CleanupAfterSuccessfulBuild = false; string defaultTarget = b.Target;