When I run ionic build android command in root of ionic project, I am getting this error:
FAILURE: Build failed with an exception.
I know this doesn't look related, especially given the error message, but I fixed this by installing a newer version of the Android SDK Build tools.