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

你知道怎么解决这个问题吗?
$ ./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发布于 2020-07-12 22:50:44
有可能你已经切换到你的gradle的离线模式。请关闭脱机模式,然后在集成开发环境终端上运行./gradlew build。
https://stackoverflow.com/questions/59323913
复制相似问题