I keep getting the following build exception when I run
cordova run android --verbose
I think is better to export the variable CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL
Example:
export
CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL=http\\://services.gradle.org/distributions/gradle-2.14.1-all.zip
If you are using a Mac, for example, add the export command in to the .bash_profile
nano ~/.bash_profile