Add to collection
Md Riyazuddin

Md Riyazuddin

Verified

How to resolve the error Gradle build fails: Unable to find method 'org.gradle.api.tasks.testing.Test.getTestClassesDirs() Lorg/gradle/api/file/FileCollection;' in Android

In this, we can resolve the error by just changing the distributionUrl variable in the gradle-wrapper.properties file.

You have to change the distributionUrl variable in the gradle-wrapper.properties file to distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip.

distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
Tagged with: Android

Comments 0

  • Sorry!! No comment posted yet. Become the first user to give comment.
Add a comment

Would you like to write for w3 sniff?

Become part of an amazing group of contributors and authors and start writing for us

Join Now
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
Feedback submitted successfully.