我刚刚从 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 许可协议
我建议您在终端中运行
gradle build
命令。在此之后,进行 gradle 同步。你的IDE一定有问题。
希望这可以解决您的问题。