Appium 2.0: To set ANDROID_HOME and ANDROID_SDK_ROOT every-time on Mac?

Hi everyone,

Recently I am facing an issue on Mac machine using Appium 2.0, where each time when I run my scripts for Android automation, I have to set ‘ANDROID_HOME’ and ‘ANDROID_SDK_ROOT’ via terminal.
Am I missing any configuration setting here or is it some kind of obvious issue?

Further more information:
IDE: IDEA IntelliJ 2023.3.1 (Community Edition)
Appium 2.0
Emulator: Pixel 6, API level 34

Thank you!

Possibly your terminal mode in one mode while you set home paths for another mode.

https://stackoverflow.com/questions/10341271/switching-from-zsh-to-bash-on-os-x-and-back-again

1.Check your current mode.
2. Check how you set android home

1 Like