I keep getting the following build exception when I run
cordova run android --verbose
This was happening to me because I wasn't building with the latest version of cordova-android. so:
cordova platform rm android
cordova platform add android@latest
Take not of the @latest directive.
Also be sure to update download the latest version of gradle and include it in the appropriate directory, as pointed out in the other answers.