Eclipse Gradle Plugin 'could not fetch model of type'

You need to update Gradle Goto: Select 'Help > About Eclipse' (on Macs this is 'Eclipse > About Eclipse').

Click the 'Installation Details' button to display the installation details dialog. Look in the 'Installed Software' tab to see all the installed plugins.

Search for Gradle(Eclipse Plug-ins for Gradle) and Update.

It might take some time for first time after that.


I had the same error in Eclipse Neon (version numbers were different, but otherwise same error). It looks like several different things can cause this error, but for me it was an incorrect property in [MyProject]/.settings/org.eclipse.buildship.core.prefs.

I had

connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER)

but it needed to be

connection.gradle.distribution=GRADLE_DISTRIBUTION(VERSION(2.13))

2.13 should be replaced with whatever version number output you get from gradle -version.

Coming back to add this: It turns out, the actual root problem was an incompatibility between Gradle versions. My build.gradle file worked fine with an old version of Gradle, but uses things that were deprecated and removed in later versions.

Solution is to click Finish immediately in the wizard instead of Next, and then fix the issues in the build.gradle.


Bad reference in config.

Overwrite configuration:
Project -> Properties -> Gradle -> Override workspace settings ->
Specific Gradle version -> 4.x


The problem is for the java version configured by default on the IDE (Eclipse or Spring Tool Suite). The error is the following:

enter image description here

To fix it, you can set the Java version supported by the Gradle version in Configure Workspace Setting option.

enter image description here

enter image description here

Finally, you can refresh your project o continue with your creation. Later all will be perfect.

enter image description here