当我尝试添加依赖项时,出现认证问题。我只是尝试通过添加“ implementation'com.google.code.gson:gson:2.8.5'”来添加对GSON的依赖关系,但出现类似错误。
无法解决“:app @ releaseUnitTest / compileClasspath”的依赖项:无法解决com.google.code.gson:gson:2.8.5。打开文件显示详细信息
在点击显示详细信息时
Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.google.code.gson:gson:2.8.5.
无法解析com.google.code.gson:gson:2.8.5。 要求: 项目:app
无法解析com.google.code.gson:gson:2.8.5。 无法获取资源“ https://jcenter.bintray.com/com/google/code/gson/gson/2.8.5/gson-2.8.5.pom”。 无法获取'https://jcenter.bintray.com/com/google/code/gson/gson/2.8.5/gson-2.8.5.pom'。 sun.security.validator.ValidatorException:PKIX路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException:无法找到到请求目标的有效认证路径 PKIX路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException:无法找到到请求目标的有效认证路径 无法找到到请求目标的有效认证路径
未选中Gradle离线工作,