Screenshot of error
I am running [ Android Studio 2.3 Build #AI-162.3764568, built on February 24, 2017 JRE: 1.8.0_112-release-b06 amd64
If you are on a *nix system, you should locate $ANDROID_HOME. Mine is installed inside /opt. Given that this directory belongs to root, you will need to invoke sudo before running your command.
$ANDROID_HOME
/opt
root
sudo