Skip to content

Commit 7ff545c

Browse files
committed
update cmdline-tools path.
1 parent 7e1c968 commit 7ff545c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/sdk-installer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function installAndroidSdk(apiLevel, target, arch, channelId, emulatorBuild, ndk
6161
yield io.mv(`${cmdlineToolsPath}/cmdline-tools`, `${cmdlineToolsPath}/latest`);
6262
}
6363
// add paths for commandline-tools and platform-tools
64-
core.addPath(`${cmdlineToolsPath}/latest:${cmdlineToolsPath}/latest/bin:${process.env.ANDROID_HOME}/platform-tools`);
64+
core.addPath(`${cmdlineToolsPath}/12.0:${cmdlineToolsPath}/12.0/bin:${process.env.ANDROID_HOME}/platform-tools`);
6565
// set standard AVD path
6666
core.exportVariable('ANDROID_AVD_HOME', `${process.env.HOME}/.android/avd`);
6767
// accept all Android SDK licenses

src/sdk-installer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export async function installAndroidSdk(apiLevel: string, target: string, arch:
2929
}
3030

3131
// add paths for commandline-tools and platform-tools
32-
core.addPath(`${cmdlineToolsPath}/latest:${cmdlineToolsPath}/latest/bin:${process.env.ANDROID_HOME}/platform-tools`);
32+
core.addPath(`${cmdlineToolsPath}/12.0:${cmdlineToolsPath}/12.0/bin:${process.env.ANDROID_HOME}/platform-tools`);
3333

3434
// set standard AVD path
3535
core.exportVariable('ANDROID_AVD_HOME', `${process.env.HOME}/.android/avd`);

0 commit comments

Comments
 (0)