Could not get unknown property 'ANDROID_SUPPORT_V4_VERSION' for object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler

these should be the properties to resolve most such gradle build issue:

target=android-27

android.library.reference.1=CordovaLib

android.library.reference.2=app

cordova.system.library.1=com.google.android.gms:play-services-base:9.2.1

cordova.system.library.2=com.google.android.gms:play-services-ads:9.2.1

cordova.system.library.3=com.android.support:support-v4:24.1.1+