首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Gradle无法同步Spring Boot项目

Gradle无法同步Spring Boot项目
EN

Stack Overflow用户
提问于 2019-12-13 21:51:56
回答 1查看 594关注 0票数 2

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

你知道怎么解决这个问题吗?

代码语言:javascript
复制
   $ ./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
EN

回答 1

Stack Overflow用户

发布于 2020-07-12 22:50:44

(Screenshot from Intellij IDE) The Toggle Offline mode button is the last to the right on the botton bottom tray

有可能你已经切换到你的gradle的离线模式。请关闭脱机模式,然后在集成开发环境终端上运行./gradlew build

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/59323913

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档