Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about Collectives
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about Teams
I'm getting the below error when I have imported a gradle project and tried refreshing it. I'm new to gradle and using gradle wrapper. also, the gradle distribution exists in the repository.
Could not fetch model of type 'BuildEnvironment' using Gradle distribution '
http://repository.xyz.com:8080/artifactory/gradle-distributions/gradle-4.8.1-all.zip
'.
The specified Gradle distribution '
http://repository.paychex.com:8081/artifactory/gradle-distributions/gradle-4.8.1-all.zip
' does not exist.
http://repository.xyz.com:8080/artifactory/gradle-distributions/gradle-4.8.1-all.zip
Identify the Gradle wrapper version. Eclipse must use the same version while importing the project. By default, the Gradle wrapper version should be selected while importing the project. Otherwise, specify the version of the Gradle that your project is using.
Check if there is a syntax error in the build.gradle file
If still, you are getting the same issue after selecting the appropriate version, then delete the .gradle folder from the project and reimport the project.
Thanks for contributing an answer to Stack Overflow!
-
Please be sure to
answer the question
. Provide details and share your research!
But
avoid
…
-
Asking for help, clarification, or responding to other answers.
-
Making statements based on opinion; back them up with references or personal experience.
To learn more, see our
tips on writing great answers
.