Adding android platform for ionic on mac

I have tried to follow the steps for installing ionic on my macbook but when trying to add the android platform i keep getting this error


I found similar problems online and tried to solve mine with no luck

do you hava a env named ANDROID_HOME point to the android sdk path?

Assuming you have the Android SDK installed, run in Terminal the following:

export ANDROID_HOME=/Users/{{ your_username }}/Library/Android/sdk
export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools

Then open a new tab in your terminal or re-source your bash_profile.

1 Like

Solved, realised i got the path wrong.

Thanks all