before adding everything you find on the internet to system files^^ --> you can set the env variable temporary for your shell/bash instance.
open a new shell --> run "export ANDROID_HOME=PATHTOSDK"
In your codeblock your set the correct path in the first line. but you overwrite it in the third one i think...
after you run the command above you can try to build your app in this shell window.