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.
Working fine with the following line with AndroidStudio 3.5
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip