maestro
maestro copied to clipboard
Maestro doesn't recognize an emulator even if 'adb devices' does
I've been setting up Maestro on two Windows computers. On one of them, it works perfectly, but I have an issue on the other.
I finished the whole setup process and it seemed to work perfectly fine, with adb devices
showing emulator-5554. However, when I try to run maestro test <filename>
in the project folder, it doesn't recognize the emulator. If I specify the device in the command, it says that there is no "emulator-5554" device connected. This happens no matter if the app is running on the emulator or not.
Perhaps it's related, but I also noticed that every time I close WSL or Powershell or restart the PC, I have to re-do this sequence of the setup:
On Powershell:
-
adb kill-server
-
adb -a -P 5037 nodaemon server
On WSL:
-
adb kill-server
-
export ADB_SERVER_SOCKET=tcp:<WINDOWS_IPV4_ADDR>:5037
-
adb devices
I find this strange as this doesn't happen on the first computer - there this setup needed to be done only the first time. If I don't do this or quit Powershell and then run adb devices
on WSL, it never outputs anything and gets stuck indefinitely.