在以下任何来源中都找不到插件 \[id: 'org.springframework.boot', version: '2.2.4.RELEASE'\]:

新手上路,请多包涵

我刚刚从 http://start.spring.io/ 下载了 springboot 项目。运行后我得到了这个错误。

 * What went wrong:
Plugin [id: 'org.springframework.boot', version: '2.2.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.2.4.RELEASE')
  Searched in the following repositories:
    Gradle Central Plugin Repository

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

任何人都可以建议什么是根本原因。

原文由 rohit kesarvani 发布,翻译遵循 CC BY-SA 4.0 许可协议

阅读 1.1k
1 个回答

我建议您在终端中运行 gradle build 命令。在此之后,进行 gradle 同步。

你的IDE一定有问题。

希望这可以解决您的问题。

原文由 Harshith Patte 发布,翻译遵循 CC BY-SA 4.0 许可协议

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进