diff --git a/lib/sdk-installer.js b/lib/sdk-installer.js index 21f355728..5291fd44b 100644 --- a/lib/sdk-installer.js +++ b/lib/sdk-installer.js @@ -61,7 +61,7 @@ function installAndroidSdk(apiLevel, target, arch, channelId, emulatorBuild, ndk yield io.mv(`${cmdlineToolsPath}/cmdline-tools`, `${cmdlineToolsPath}/latest`); } // add paths for commandline-tools and platform-tools - core.addPath(`${cmdlineToolsPath}/latest:${cmdlineToolsPath}/latest/bin:${process.env.ANDROID_HOME}/platform-tools`); + core.addPath(`${cmdlineToolsPath}/12.0:${cmdlineToolsPath}/12.0/bin:${process.env.ANDROID_HOME}/platform-tools`); // set standard AVD path core.exportVariable('ANDROID_AVD_HOME', `${process.env.HOME}/.android/avd`); // accept all Android SDK licenses diff --git a/src/sdk-installer.ts b/src/sdk-installer.ts index fa0ee16fa..1cd49fbcf 100644 --- a/src/sdk-installer.ts +++ b/src/sdk-installer.ts @@ -29,7 +29,7 @@ export async function installAndroidSdk(apiLevel: string, target: string, arch: } // add paths for commandline-tools and platform-tools - core.addPath(`${cmdlineToolsPath}/latest:${cmdlineToolsPath}/latest/bin:${process.env.ANDROID_HOME}/platform-tools`); + core.addPath(`${cmdlineToolsPath}/12.0:${cmdlineToolsPath}/12.0/bin:${process.env.ANDROID_HOME}/platform-tools`); // set standard AVD path core.exportVariable('ANDROID_AVD_HOME', `${process.env.HOME}/.android/avd`);