gpt4 book ai didi

spring-boot - Gradle无法同步Spring Boot项目

转载 作者:行者123 更新时间:2023-12-03 03:26:04 26 4
gpt4 key购买 nike

我正在尝试从intelij中的start.spring.io导入带有gradle的新项目,它无法下载任何依赖项或导入插件。我看到来源列表是空的。 enter image description here

知道如何解决吗?

   $ ./gradlew build

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\Jarek\Downloads\demo\build.gradle' line: 3

* What went wrong:
Plugin [id: 'org.springframework.boot', version: '2.2.2.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.2.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.

* Get more help at https://help.gradle.org

最佳答案

(Screenshot from Intellij IDE) The Toggle Offline mode button is the last to the right on the botton bottom tray
您可能已为gradle切换了OFFLINE MODE。请关闭离线模式并在IDE终端上运行./gradlew build

关于spring-boot - Gradle无法同步Spring Boot项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59323913/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com