on ubuntu here is my solution ... no need to manually create dir ~/.android ... the system will auto create ~/.android once following is issued
see what architectures you currently have defined
dpkg --print-architecture
dpkg --print-foreign-architectures # see what you already have
typically on a 64 bit box you do not have 32 bit architecture enabled ... do that now
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libncurses5:i386 libstdc++6:i386 zlib1g:i386 -y
above will install the necessary 32 bit libraries needed by aapt which is a 32 bit binary bundled in the android tool stack which is failing to execute properly ... now it will