I found the solution Do change in your cordovaLib file build.gradle file
dependencies { classpath 'com.android.tools.build:gradle:3.1.0' }
and now make changes in you,
platforms\android\gradle\wrapper\gradle-wrapper.properties
distributionUrl=\
https://services.gradle.org/distributions/gradle-4.4-all.zip
this works for.