This issue is due to incompatible of your plugin Verison and required Gradle version; they need to match with each other. I am sharing how my problem was solved.
plugin version
Required Gradle version is here
more compatibility you can see from here.
Android Plugin for Gradle Release Notes