You can export the variable CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL
For linux user, you can use this command:
export CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL=http\\://localhost/gradle-2.13-all.zip
If you are using a Mac, for example, add the export command in to the .bash_profile
nano ~/.bash_profile
and for window user
SET "CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL=http://localhost/gradle-2.13-all.zip"