【发布时间】:2021-09-14 14:54:10
【问题描述】:
我将项目 Gradle 版本从 5.4.1 升级到 6.8.3,并将自定义存储库更改为 https。
我在 maven 上遇到了类似的问题,但在镜像解决之后。我可以使用 gradle 5.4.1 毫无问题地构建项目,但是当我将 gradle 升级到 6.8.3 时,出现以下错误:
The server may not support the client's requested TLS protocol versions: (TLSv1.2). You may need to configure the client to allow other protocols to be used.
See: https://docs.gradle.org/6.8.3/userguide/build_environment.html#gradle_system_properties
> sun.security.validator.ValidatorException:
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
【问题讨论】:
-
关于该问题的信息不足。我们需要有关该项目的全面信息。您正在使用 Docker 和容器。但是,您没有提供任何相关信息。运行时环境很重要,32 位或 64 位系统或软件很重要,JRE、JDK 如何容器化很重要。所以。请提供尽可能多的信息。谢谢
标签: java gradle java-8 android-gradle-plugin java-11