HarmonyOS 鸿蒙Next 编译不过 一直提示PKIX path building failed sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid cert

HarmonyOS 鸿蒙Next 编译不过 一直提示PKIX path building failed sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid cert

A problem occurred configuring root project 'HMDemoApplication'.

> Could not resolve all files for configuration ':classpath'.

> Could not resolve com.huawei.ohos:hap:3.0.5.2.

> Required by:

>  project :

> Could not resolve com.huawei.ohos:hap:3.0.5.2.

> Could not get resource 'https://repo.huaweicloud.com/repository/maven/com/huawei/ohos/hap/3.0.5.2/hap-3.0.5.2.pom'.

> Could not GET 'https://repo.huaweicloud.com/repository/maven/com/huawei/ohos/hap/3.0.5.2/hap-3.0.5.2.pom'.

> The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.3/userguide/build_environment.html#gradle_system_properties

> PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

> Could not resolve com.huawei.ohos:hap:3.0.5.2.

> Could not get resource 'https://developer.huawei.com/repo/com/huawei/ohos/hap/3.0.5.2/hap-3.0.5.2.pom'.

> Could not GET 'https://developer.huawei.com/repo/com/huawei/ohos/hap/3.0.5.2/hap-3.0.5.2.pom'.

> The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.3/userguide/build_environment.html#gradle_system_properties

> PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

> Could not resolve com.huawei.ohos:decctest:1.2.7.2.

> Required by:

>  project :

> Could not resolve com.huawei.ohos:decctest:1.2.7.2.

> Could not get resource 'https://repo.huaweicloud.com/repository/maven/com/huawei/ohos/decctest/1.2.7.2/decctest-1.2.7.2.pom'.

> Could not GET 'https://repo.huaweicloud.com/repository/maven/com/huawei/ohos/decctest/1.2.7.2/decctest-1.2.7.2.pom'.

> The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.3/userguide/build_environment.html#gradle_system_properties

> PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

> Could not resolve com.huawei.ohos:decctest:1.2.7.2.

> Could not get resource 'https://developer.huawei.com/repo/com/huawei/ohos/decctest/1.2.7.2/decctest-1.2.7.2.pom'.

> Could not GET 'https://developer.huawei.com/repo/com/huawei/ohos/decctest/1.2.7.2/decctest-1.2.7.2.pom'.

> The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.3/userguide/build_environment.html#gradle_system_properties

> PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

mac java1.8环境

一直编译失败.

更多关于HarmonyOS 鸿蒙Next 编译不过 一直提示PKIX path building failed sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid cert的实战教程也可以访问 https://www.itying.com/category-93-b0.html

3 回复

你是不是网络有受限呀,感觉是访问不到这个网址额!

更多关于HarmonyOS 鸿蒙Next 编译不过 一直提示PKIX path building failed sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid cert的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html


亲爱的开发者您好,现在正值假期,您的问题相关人员会在节后,依次为您进行处理,请您耐心等待。谢谢您的谅解~

在鸿蒙系统开发中,虽然该错误表面上与Java相关,但实际上可能涉及到开发环境中的SSL/TLS证书配置。请检查以下几点:

  1. 证书导入:确保所有必要的SSL/TLS证书已正确导入到您的开发环境中。对于鸿蒙开发,这可能涉及到开发工具链或相关依赖的证书配置。

  2. 网络配置:检查开发机器的网络设置,确保能够访问到所需的证书颁发机构(CA)服务器。

  3. 代理设置:如果您在使用代理服务器,请确保代理配置正确,且代理服务器能够转发SSL/TLS证书请求。

  4. 系统时间:验证系统日期和时间设置是否正确,因为证书验证过程中会检查证书的有效期。

如果问题依旧没法解决请联系官网客服,官网地址是:https://www.itying.com/category-93-b0.html

回到顶部