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.
when you import a project from external resources some files will be generated as it contains information specific to your local configuration, and one of them is gradle-wrapper.properties
, downgrade to a lower version and rebuild the project and the error should be gone
distributionUrl=https://services.gradle.org/distributions/gradle-5.1.1-all.zip
to
distributionUrl=https://services.gradle.org/distributions/gradle-4.4-all.zip