The slashes at the end of HOME locations (line 1, 4, and 9)
Because you first export HOME location with the slash at the end, i.e. export ANDROID_HOME="/Android/sdk/"
then you export the path with the slash before the necessary folder, i.e. export PATH=$ANDROID_HOME/platform-tools:$PATH
so the PATH will be recognized as “/Android/sdk//platform-tools” (double slash after sdk). This was the root of my problems with setting the path. At least I think it was.
If you are facing the same issues as I am and can not solve it, then I can send you the whole variables that are working which I have set at the moment, but only tomorrow when I get to work.
@crujzo - I kept getting an error of “Bin directory for $JAVA_HOME is not set” from Appium doctor. Adding export JAVA_HOME=$(/usr/libexec/java_home) and export PATH=${JAVA_HOME}/bin:$PATH seems to have fixed the issue. Thanks!
On side note, I will recommend to use Mac OS for appium related automation; it’s best suited for mobile automation and will surely give much less headaches