Gradle 包装器命令给出 'Could not resolve all artifacts for configuration ':classpath''

Graddle wrapper command gives 'Could not resolve all artifacts for configuration ':classpath''

我尝试了很多类似的解决方案 - 没有成功。

我正在使用 Ubuntu 20.04,按照 this Confluent 教程,我已经成功地获得所有内容 运行ning 好几次都没有任何问题,但是现在当我 运行 gradle wrapper 我得到:

  • What went wrong: A problem occurred configuring root project 'pmuStream01'.

Could not resolve all artifacts for configuration ':classpath'. Could not resolve org.apache.logging.log4j:log4j-core:2.13.3. Required by: project : > com.github.jengelman.gradle.plugins:shadow:6.1.0 > Could not resolve org.apache.logging.log4j:log4j-core:2.13.3. > Could not get resource 'https://repo.maven.apache.org/maven2/org/apache/logging/log4j/log4j-core/2.13.3/log4j-core-2.13.3.pom'. > java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext) > Could not resolve org.apache.logging.log4j:log4j-core:2.13.3. > Could not get resource 'https://plugins.gradle.org/m2/org/apache/logging/log4j/log4j-core/2.13.3/log4j-core-2.13.3.pom'. > java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext)

我可以轻松获取所有 pom 有问题的文件。 DNS、ping、网络——一切正常。 我已经将 java 8、gradle 和系统更新到最新。重新启动系统。我没有任何其他 java 版本。每次都删除 .gradle 文件夹 - 没有任何帮助。

我现在应该 似乎很愚蠢。

我删除并清除了 Java、Gradle 和 Maven 以及所有配置和依赖项。

之后我又安装了它们,现在构建正常了。