当前位置: 首页 > 知识库问答 >
问题:

Android:找不到所请求目标的有效证书路径

薛承志
2023-03-14

我刚刚安装了最新的Android Studio,我得到了标题中的错误;我尝试了互联网上的许多解决方案,但都不起作用。

所以请你帮我修一下好吗?

我收到此错误:

    Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    ... 104 more Cause 5: org.gradle.internal.resolve.ModuleVersionResolveException: Could not resolve **androidx.navigation:navigation-safe-args-gradle-plugin:2.3.5**.
Required by:
    project :
Caused by: org.gradle.internal.resolve.ModuleVersionResolveException: Could not resolve androidx.navigation:navigation-safe-args-gradle-plugin:2.3.5.
Caused by: org.gradle.api.resources.ResourceException: Could not get resource '**https://dl.google.com/dl/android/maven2/androidx/navigation/navigation-safe-args-gradle-plugin/2.3.5/navigation-safe-args-gradle-plugin-2.3.5.pom**'.
Caused by: org.gradle.internal.resource.transport.http.HttpRequestException: Could not GET '**https://dl.google.com/dl/android/maven2/androidx/navigation/navigation-safe-args-gradle-plugin/2.3.5/navigation-safe-args-gradle-plugin-2.3.5.pom'.**
    at org.gradle.internal.resource.transport.http.HttpClientHelper.performRequest(HttpClientHelper.java:130)

该项目是Android Studio中的基本项目示例。

共有1个答案

孟哲
2023-03-14

您似乎正在企业环境中执行此操作。你使用的是Artifactory吗?在我看来,您缺少证书,这就是您无法连接的原因。

 类似资料: