It is caused by the Gradle distribution version used. To fix this, either downgrade your Gradle version to the previous or upgrade it to the next stable one. These are the [Gradle distribution][1] versions available.
Go to
> android / gradle / wrapper / gradle-wrapper.properties
and replace the current Gradle version this (or choose another from Gradle distribution)
> distributionUrl=https://services.gradle.org/distributions/gradle-6.0.1-all.zip
[1]: https://services.gradle.org/distributions/
It is caused by the Gradle distribution version used. To fix this, either downgrade your Gradle version to the previous or upgrade it to the next stable one. These are the [Gradle distribution][1] versions available.
Go to
> android / gradle / wrapper / gradle-wrapper.properties
and replace the current Gradle version this (or choose another from [Gradle distribution][1])
> distributionUrl=https\://services.gradle.org/distributions/gradle-6.0.1-all.zip
[![screenshot][2]][2]
I upgraded my Gradle version from 5.6.2 to 6.0.1, and it works fine with me.
[1]: https://services.gradle.org/distributions/
[2]: https://i.stack.imgur.com/bvzPx.png