每次 kotlin 更新完我好像都会遭遇一次 gradle build 失败的历程…请各位帮看一下…

2021-05-26 13:40:58 +08:00
 heavyrainn

前几天 kotlin 更新了 1.5.10 ,我也兴冲冲第一时间打开 idea,更新了插件,然后更新项目 kotlin 版本号,gradle build !然后…

E:\kotlinProject\untitled>gradle build
Could not resolve compiler classpath. Check if Kotlin Gradle plugin repository is configured in root project 'untitled'.

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':compileKotlin'.
> Could not resolve all files for configuration ':kotlinCompilerClasspath'.
   > Could not resolve org.jetbrains.kotlin:kotlin-compiler-embeddable:1.5.10.
     Required by:
         project :
      > Could not resolve org.jetbrains.kotlin:kotlin-compiler-embeddable:1.5.10.
         > Could not get resource 'https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-compiler-embeddable/1.5.10/kotlin-compiler-embeddable-1.5.10.pom'.
            > Could not HEAD 'https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-compiler-embeddable/1.5.10/kotlin-compiler-embeddable-1.5.10.pom'.
               > Connection reset

* 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

BUILD FAILED in 4s

嗯…感觉刚开始升 1.4.32 的时候也遇到过…当时是等了几天,然后好像就好了…请问大家,这个正常要咋搞呢…

1578 次点击
所在节点    程序员
6 条回复
ho121
2021-05-26 13:58:01 +08:00
Connection reset
heavyrainn
2021-05-26 14:00:03 +08:00
@ho121 没错,就是我们单位这个破网,我算搞清楚了…
zoharSoul
2021-05-26 14:48:47 +08:00
网的问题
sagaxu
2021-05-26 14:53:11 +08:00
因为你没配 maven 国内 mirror
coolmint
2021-05-26 15:39:20 +08:00
我也是刚更新到 1.5.10 ,结果有些类一直在 anylizing,没有代码提示没有任何跳转功能,和在记事本写代码一样。有些类却功能正常
windyboy
2021-05-26 16:01:31 +08:00
连接重制问题,每个语言都有

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/779311

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX