Replace deprecated ANDROID_SDK_ROOT with ANDROID_HOME.

This commit is contained in:
Yang
2023-01-10 17:24:00 +11:00
committed by Yang
parent 8d5c4be650
commit e1248ae048
4 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ export async function launchEmulator(
// start emulator
console.log('Starting emulator.');
await exec.exec(`sh -c \\"${process.env.ANDROID_SDK_ROOT}/emulator/emulator -avd "${avdName}" ${emulatorOptions} &"`, [], {
await exec.exec(`sh -c \\"${process.env.ANDROID_HOME}/emulator/emulator -avd "${avdName}" ${emulatorOptions} &"`, [], {
listeners: {
stderr: (data: Buffer) => {
if (data.toString().includes('invalid command-line parameter')) {