I\'m new to android development and android studio IDE.
I\'ve checked-out a project from bitbucket and when I try to compile it I get the following error:
Simply change distributionUrl
to latest like this:
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1-all.zip
It will download all necessary gradle files and your good to go.
I fixed this issue by...
It should be something similar for you if you downloaded Gradle which you should have when you downloaded Android Studio. Be careful, the .gradle file may be hidden. I found it through the terminal, but "ls" didn't reveal it.
For me the solution to this error was to change the gradle wrapper version in ../gradle/wraper/gradle-wrapper.properties to a different/newer version.. I used:
distributionUrl=https://services.gradle.org/distributions/gradle-2.14.1-all.zip
Then call:
./gradlew --refresh-dependencies
This tells the wrapper to point to a new version and re-download all required dependencies. I suspect the error for me was caused by an interrupted download when first building the relevant project.