As could be guessed, there is a script that is being run behind the scene when you issue the "Cordova build android" command. This script needs to be found in order to see the config specified for Gradle version.
You must go and check the following js file:
$PROJECT_ROOT/platforms/android/cordova/lib/builders/GradleBuilder.js
Then find the line including the following variable in the file:
GradleBuilder.prototype.prepEnv
And check the distributionUrl variable:
var distributionUrl = process.env['CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL'] || 'http\://services.gradle.org/distributions/gradle-2.2.1-all.zip';
That's what you are looking for and what you need to change to gradle-2.10-all.zip URL;
Now you can run the build command, and there you go!
inspired from the following SO;
install gradle for using in cordova build android
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…