I went trough about 20 stackoverflows to make sure my $ANDROID_HOME is correctly set.
Currently even after a reboot of my macbook a simple echo $ANDROID_HOME is showing the RIGHT location directly without any hazzle.
Strangely though the build command in ionic for my apk is failing with the following error:
id | 12
status | FAILED
platform | Android
mode | debug
profile | os_v1_cert
started | 2017-06-30T10:34:13.434Z
Error: Could not find gradle wrapper within Android SDK. Might need to update your Android SDK.
Looked here: /opt/android-sdk/tools/templates/gradle/wrapper
The ANDROID_HOME mentioned in that error is not the right location and is not what echo $ANDROID_HOME is returning in my bash.
So for today I gave up searching and hope maybe someone here has some new ideas for me.