Set --sdk_root for accepting licenses

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

No files matched your search

+5 -1
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,