I had a project working well on cordova 6.3.1 .
Then I updated cordova and my project to 6.4.0 . After this, first time I built, gradle got automatically updated to
This issue has been solved: https://issues.apache.org/jira/browse/CB-12159
As of now you can use cordova platform add android@6.2.0-nightly.2016.12.9.6c60dc5d
or cordova platform add https://github.com/apache/cordova-android
Keep in mind that the second command adds the latest version and it may introduce other bugs....
In the future you may use cordova platform add android@6.2.0 but as of now 6.2.0 does not exist. (Check here: https://github.com/apache/cordova-android/releases)