Set --sdk_root for accepting licenses

This commit is contained in:
Dave Olsthoorn 2020-07-25 19:37:43 +02:00
parent 023a8c2e99
commit 2381fc9bef
2 changed files with 6 additions and 2 deletions

2
dist/main/index.js vendored

File diff suppressed because one or more lines are too long

View file

@ -49,7 +49,11 @@ export async function install(): Promise<void> {
core.error(`Unsupported platform: ${process.platform}`)
}
exec.exec(sdkManager, ['--licenses'], {input: acceptBuffer})
await exec.exec(
sdkManager,
['--licenses', `--sdk_root=${ANDROID_SDK_ROOT}`],
{input: acceptBuffer}
)
exec.exec(
sdkManager,