pro tip blogs are usually poor quality
but seriously, your problems appear to be related to PATH
what do you get from
does it contain
/usr/bin:/bin ?
my guess is no
something must have gone wrong with the ~/.bash_profile and/or ~/.bashrc edits
first lets fix the PATH
Code:
PATH="/usr/bin:/bin:$PATH"
that "guide" seems to be a bit broken
Pro Tip: a keyboard typically contains three or more locks
one part
Code:
export JAVA_HOME="$HOME/jdk1.8.0_181" // Or your version of the jdk
export PATH=$PATH: "$JAVA_HOME/bin"
export ANDROID_HOME=$HOME/Android/Sdk export
PATH=$PATH:$ANDROID_HOME/tools export
PATH=$PATH:$ANDROID_HOME/tools/bin export
PATH=$PATH:$ANDROID_HOME/platform-tools export
PATH=$PATH:$ANDROID_HOME/emulator
#
the
exports at the end of the lines *should* be at the start of the next line
( like the first 3 lines )
Pro Tip: water is wet
also , I don't like the look of
Code:
export PATH=$PATH: "$JAVA_HOME/bin"
there should be no space between : and "
Code:
export PATH=$PATH:"$JAVA_HOME/bin"
but I don't see how any of those would break the PATH, so I guess some typo crept it
maybe a missing $PATH or just a $
will know more once I see the output of that echo
EDIT:
it also asks you to edit /.bash_profile
I suspect that should be ~/.bash_profile
~ is shorthand for $HOME