gradle issues details in discription

Solution 1:

I resolved the error by downgrading gradle. To do so, in the gradle-wrapper.properties file, I made the following changes.

It was:

distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

It is now:

distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-all.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME

Solution 2:

If you are using IntelliJ Community Edition, upgrading the IDE to IntelliJ IDEA 2021.1.2 (Community Edition) solved the problem for me. Previously I was using the 2019 version and I was getting the same error.

Solution 3:

I had the same problem. I solved it, when I update Android Studio with Gradle.

Solution 4:

Upgrading IntelliJ version from 2019 to 2021 fixed the issue for me