(已解决)错误:Plugin [id: ‘org.springframework.boot’, version: ‘2.1.4.RELEASE’] was not found

  • Post author:
  • Post category:其他




gradle构建springboot错误,详细如下:

gradle command throwing below Exception:

Where: Build file '/path_to_project_gradle/build.gradle' line: 21

What went wrong: Plugin [id: 'org.springframework.boot', version: '2.1.4.RELEASE'] was not found in any of the following sources:

Gradle Core Plugins (plugin is not in 'org.gradle' namespace)

Plugin Repositories (could not resolve plugin artifact 'org.springframework.boot:org.springframework.boot.gradle.plugin:2.1.4.RELEASE') Searched in the following repositories: Gradle Central Plugin Repository



解决办法

下载gradle所需版本到本地,根据下图所示进行设置
在这里插入图片描述

再次运行gradle,如下图所示,解决。

在这里插入图片描述



版权声明:本文为qq_27637361原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。