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
@@ -73,7 +73,7 @@ function launchEmulator(apiLevel, target, arch, profile, cores, ramSize, heapSiz
}
// start emulator
console.log('Starting emulator.');
yield exec.exec(`sh -c \\"${process.env.ANDROID_SDK_ROOT}/emulator/emulator -avd "${avdName}" ${emulatorOptions} &"`, [], {
yield exec.exec(`sh -c \\"${process.env.ANDROID_HOME}/emulator/emulator -avd "${avdName}" ${emulatorOptions} &"`, [], {
listeners: {
stderr: (data) => {
if (data.toString().includes('invalid command-line parameter')) {