Skip to content

Commit

Permalink
Add newer cmd linetools paths to cake (#24828)
Browse files Browse the repository at this point in the history
  • Loading branch information
PureWeen committed Sep 19, 2024
1 parent 14c7719 commit a7e3ff8
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion eng/devices/android.cake
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,17 @@ void PerformCleanupIfNeeded(bool cleanupEnabled)
void SetAndroidEnvironmentVariables(string sdkRoot)
{
// Set up Android SDK environment variables and paths
string[] paths = { $"{sdkRoot}/tools/bin", $"{sdkRoot}/cmdline-tools/latest/bin", $"{sdkRoot}/cmdline-tools/5.0/bin", $"{sdkRoot}/cmdline-tools/7.0/bin", $"{sdkRoot}/platform-tools", $"{sdkRoot}/emulator" };
string[] paths = {
$"{sdkRoot}/tools/bin",
$"{sdkRoot}/cmdline-tools/latest/bin",
$"{sdkRoot}/cmdline-tools/5.0/bin",
$"{sdkRoot}/cmdline-tools/7.0/bin",
$"{sdkRoot}/cmdline-tools/11.0/bin",
$"{sdkRoot}/cmdline-tools/12.0/bin",
$"{sdkRoot}/cmdline-tools/13.0/bin",
$"{sdkRoot}/platform-tools",
$"{sdkRoot}/emulator" };

foreach (var path in paths)
{
SetEnvironmentVariable("PATH", path, prepend: true);
Expand Down

0 comments on commit a7e3ff8

Please sign in to comment.