I'm trying to setup maestro on windows for my react native project. After following all of the instructions outlined in their documentation (https://maestro.mobile.dev/getting-started/installing-maestro/windows), I can run maestro, input my platform (android) and version (34) but then it fires the following error:
❌ Error: BlockingCoroutine is cancellingkotlinx.coroutines.JobCancellationException: BlockingCoroutine is cancelling; job=BlockingCoroutine{Cancelling}@70bf1611Caused by: maestro.cli.CliError: Could not detect Android home environment variable is not set. Ensure that either ANDROID_HOME or ANDROID_SDK_ROOT is set. at maestro.cli.util.AndroidEnvUtils.requireCommandLineTools(AndroidEnvUtils.kt:57) at maestro.cli.device.DeviceService.requireAvdManagerBinary(DeviceService.kt:465) at maestro.cli.device.DeviceService.getAvailablePixelDevices(DeviceService.kt:348) at maestro.cli.device.DeviceCreateUtil.getOrCreateAndroidDevice(DeviceCreateUtil.kt:99) at maestro.cli.device.DeviceCreateUtil.getOrCreateDevice(DeviceCreateUtil.kt:16) at maestro.cli.command.TestCommand$handleSessions$1$1$results$1$1.invokeSuspend(TestCommand.kt:233) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104) at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:111) at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:99) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:585) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:802) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:706) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:693)
I'm not sure why exactly maestro can't detect my Android home here since I've set it the way it was mentioned in the docs. When I run echo $ANDROID_HOME, it correctly returns the path of /home/fy50167/Android. When I inspect my installed wsl ubuntu files, I can confirm that the folder exists and contains the necessary files that were mentioned in the maestro documentation. I've also set my ANDROID_HOME env variable in my system, and running adb --version on both Powershell and WSL returns the same thing so I believe the installation is correct. Just not sure what the problem could be here since every other command indicates that the ANDROID_HOME variable is setup correctly and being detected, but then maestro says it can't find it. Could it be an error with the installed SDKs in my Android Studio? I've seen a number of similar questions but they were all for either CORDOVA or ionic so the solutions weren't applicable.