When i am trying to compile a imported project from github, my gradle build always fails with the following exeption.
Unable to find method \'org.gradle.api.
change on gradle.wrapper.properties your value of distributionUrl=https://services.gradle.org/distributions/gradle-4.10.1-all.zip change to this and android studio will give you automatically update on your gradle and it should be fine