Define Custom ANDROID_HOME for appium

hi,
I need to define a custom ANDROID_HOME to launch avd’s from appium. Is there any way we can add a different android sdk in a different environment variable like ANDROID_HOME ?

Yes, do a google (or other search engine) search on, ‘dynamic environment variables’ if you need more info, but this should give you all you need:

https://cbednarski.com/articles/understanding-environment-variables-and-the-unix-path/

Pay special attention to how he uses ‘export’ to dynamically change an already existing environment variable.