No cached version of org.springframework.boot:spring-boot-gradle-plugin:1.5.10.RELEASE available for offline mode.

No cached version of org.springframework.boot:spring-boot-gradle-plugin:1.5.10.RELEASE available for offline mode.

 

 

在gradle+IDEA的项目中出现如下错误:

         Error:No cached version of org.springframework.boot:spring-boot-gradle-plugin:2.1.11.available for offline mode.

 

原因是,在settings中设置全局Gradle插件导致。

 修改方法:在File->Settings->Build,Execution,Deployment->Gradle中。找到Globel Gradle settings.你会发现Offline work被勾选了。你去除勾线后,保存。这样会重新拉取gradle plugin.

posted @ 2020-08-18 09:58  A汉克先生  阅读(1424)  评论(0编辑  收藏  举报