gpt4 book ai didi

maven - intellij IDEA 15.0.1 中未编入索引的远程 maven 资源库

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

在 Intellij Idea 15.0.1 中创建新的 Gradle 项目时,

我收到以下错误:
enter image description here

当我尝试更新存储库列表中的存储库时,出现以下异常:
enter image description here

当我搜索这个问题时,我看到一些帖子说这是一个已知问题,将在以前的版本 (14. something) 中修复,但显然它没有修复,或者它不是一个错误。
Some还建议在文件 -> 设置 -> maven -> 导入中取消选中“使用 maven3 导入项目”,但找不到该选项:
enter image description here

好像是网络连接的问题,当我使用我的移动热点共享手机的蜂窝数据时,更新开始了,但由于它必须同步大约260MB的数据,所以速度太慢了。但是当我使用学校提供的使用代理的局域网时,它会立即出现上述错误。

我已经在设置中配置了 http 代理,连接似乎没问题。

如果我能够下载依赖项,这个错误(找到未索引的远程 maven 存储库)是否值得担心?有任何解决这个问题的方法吗?

最佳答案

build.gradle , 代替:

repositories {
jcenter()
}

也许:
repositories {
maven {
url "http://repo1.maven.org/maven2/"
}
}

代替:
repositories {
mavenCentral()
}

关闭并重新打开您的 IDEA 项目。

关于maven - intellij IDEA 15.0.1 中未编入索引的远程 maven 资源库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33713598/

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