I’m trying to build the project with
cordova build android but it gets failed with “Failed to apply plugin [id ‘com.android.application’]”
Minimum supported Gradle version is 5.1.1. Current version is 4.10.3. If using the gradle wrapper, try editing the distributionUrl in ~/ProjectName/gradle/wrapper/gradle-wrapper.properties to gradle-5.1.1-all.zip
I have updated gradle version and changed in gradle-wrapper.properties file but after running
cordova build android command all changes revert and gave me BUILD FAILED error.
Please help me to resolve this issue.