When I Run: cordova build, I got this:
Running command:/Users/tyrant/workspace/ideaProject/hello/platforms/android/cordova/build
ANDROID_HOME=/Users/tyrant/s
This is because you have already downloaded a corrupt version of the Gradle package in your system directory. (Maybe due to internet connection issues?) Just go to your local path below and remove all contents inside it.
/Users/tyrant/.gradle/wrapper/dists/gradle-2.2.1-all/2m8005s69iu8v0oiejfej094b/
Run cordova build again. This will fix your issue for sure.