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
Md Riyazuddin
Verified
In this, we can resolve the error by just changing the distributionUrl variable in the gradle-wrapper.properties file.
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
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.
Comments
Leave a Comment