Gradle Could not resolve org.springframework.boot:spring-boot-gradle-plugin:1.4.2.RELEASE (repo1.maven.org: Nome o servizio sconosciuto)

As the error tells you Nome o servizio sconosciuto, repo1.maven.org cannot be resolved via DNS. So you have some networking problem or you need to use a proxy server which you did not configure for Gradle. Ask your IT support as to why you cannot resolve the hostname.


This is might be a network issue. If not then please try below steps as it solved my issue.

As I was also facing the same problem, I tried to solve it by changing the dependencies.

This value gives me an error.

compile("org.springframework.boot:spring-boot-starter-ws") 

This is what works

compile group: 'org.springframework.boot', name: 'spring-boot-starter-ws', version: '1.4.7.RELEASE'

Ref:https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-ws/1.1.8.RELEASE


I was getting spring-boot-starter dependency cant be resolved issue when i tried to run gradle first time on IntelliJ using gradle 3.5 using my laptop no proxy required.

The issue was missing:

apply plugin: 'org.springframework.boot'

from the build.gradle file. Once included it downloaded all the dependencies in a flash.