From 660ac26f5bd4cb6c1d98b2143e66ded57bee724f Mon Sep 17 00:00:00 2001 From: Jordan Longstaff Date: Mon, 17 Aug 2026 07:44:08 -0400 Subject: [PATCH] Update SDK command-line tools to version 22.0 (#483) --- lib/sdk-installer.js | 7 ++++--- src/sdk-installer.ts | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/lib/sdk-installer.js b/lib/sdk-installer.js index 0e4f33eb..87621fdf 100644 --- a/lib/sdk-installer.js +++ b/lib/sdk-installer.js @@ -40,9 +40,10 @@ const io = __importStar(require("@actions/io")); const tc = __importStar(require("@actions/tool-cache")); const fs = __importStar(require("fs")); const BUILD_TOOLS_VERSION = '37.0.0'; -// SDK command-line tools 20.0 -const CMDLINE_TOOLS_URL_MAC = 'https://dl.google.com/android/repository/commandlinetools-mac-14742923_latest.zip'; -const CMDLINE_TOOLS_URL_LINUX = 'https://dl.google.com/android/repository/commandlinetools-linux-14742923_latest.zip'; +// SDK command-line tools 22.0 +const CMDLINE_TOOLS_VERSION = '15859902'; +const CMDLINE_TOOLS_URL_MAC = `https://dl.google.com/android/repository/commandlinetools-mac_x86_64-${CMDLINE_TOOLS_VERSION}_latest.zip`; +const CMDLINE_TOOLS_URL_LINUX = `https://dl.google.com/android/repository/commandlinetools-linux-${CMDLINE_TOOLS_VERSION}_latest.zip`; /** * Installs & updates the Android SDK for the macOS platform, including SDK platform for the chosen API level, latest build tools, platform tools, Android Emulator, * and the system image for the chosen API level, CPU arch, and target. diff --git a/src/sdk-installer.ts b/src/sdk-installer.ts index 6dfef13d..72b1d3ad 100644 --- a/src/sdk-installer.ts +++ b/src/sdk-installer.ts @@ -5,9 +5,10 @@ import * as tc from '@actions/tool-cache'; import * as fs from 'fs'; const BUILD_TOOLS_VERSION = '37.0.0'; -// SDK command-line tools 20.0 -const CMDLINE_TOOLS_URL_MAC = 'https://dl.google.com/android/repository/commandlinetools-mac-14742923_latest.zip'; -const CMDLINE_TOOLS_URL_LINUX = 'https://dl.google.com/android/repository/commandlinetools-linux-14742923_latest.zip'; +// SDK command-line tools 22.0 +const CMDLINE_TOOLS_VERSION = '15859902'; +const CMDLINE_TOOLS_URL_MAC = `https://dl.google.com/android/repository/commandlinetools-mac_x86_64-${CMDLINE_TOOLS_VERSION}_latest.zip`; +const CMDLINE_TOOLS_URL_LINUX = `https://dl.google.com/android/repository/commandlinetools-linux-${CMDLINE_TOOLS_VERSION}_latest.zip`; /** * Installs & updates the Android SDK for the macOS platform, including SDK platform for the chosen API level, latest build tools, platform tools, Android Emulator,