Caused by: java.lang.NullPointerException: getHeaderField(“Location”) must not be null 开发 idea plu
Caused by: java.lang.NullPointerException: getHeaderField(“Location”) must not be null
org.jetbrains.intellij.plugins/gradle-intellij-plugin/1.13.3/9565e720cd0443D2a32f5210d81bf97f3e6af43e/gradle-intellij-plugin-1.13.3-sources.jar!/org/jetbrains/intellij/utils/LatestVersionResolver.kt:23//定位到源代码fun fromGitHub(subject: String, url: String): String { debug(message = "Resolving latest $subject version") try { return URL("$url/releases/latest").openConnection().run { (this as HttpURLConnection).instanceFollowRedirects = false getHeaderField("Location").split('/').last().removePrefix("v") } } catch (e: Exception) { throw GradleException("Cannot resolve the latest $subject version", e) }}
网络不好或者离线开发的情况下会挂 然后就报错了。。。
https://github.com/JetBrains/gradle-intellij-plugin/issues/1309 【没用】
https://github.com/JetBrains/gradle-intellij-plugin/issues/960 【解决】
启用离线模式运行。。。
来源地址:https://blog.csdn.net/qq_30009669/article/details/131209866
--结束END--
本文标题: Caused by: java.lang.NullPointerException: getHeaderField(“Location“) must not be null
本文链接: https://lsjlt.com/news/403276.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
2024-04-01
2024-04-03
2024-04-03
2024-01-21
2024-01-21
2024-01-21
2024-01-21
2023-12-23
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0