I keep getting the following build exception when I run
cordova run android --verbose
Try just open the file project/platforms/android/build.gradle and update
dependencies {
classpath 'com.android.tools.build:gradle:X.X.X'
}
and
task wrapper(type: Wrapper) {
gradleVersion = 'X.X'
}
see the reference here https://developer.android.com/studio/releases/gradle-plugin.html#updating-gradle
to change the X.X